本文整理汇总了C#中Shape3D类的典型用法代码示例。如果您正苦于以下问题:C# Shape3D类的具体用法?C# Shape3D怎么用?C# Shape3D使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Shape3D类属于命名空间,在下文中一共展示了Shape3D类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetAppearance
private void SetAppearance(Shape3D shape, AppearanceNode appearance)
{
shape.Material.DiffuseColor = TestConvColor(((MaterialNode)appearance.material.node).diffuseColor);
shape.Material.SpecularColor = TestConvColor(((MaterialNode)appearance.material.node).specularColor);
shape.Material.AmbientIntensity = ((MaterialNode)appearance.material.node).ambientIntensity.value;
shape.Material.Shininess = ((MaterialNode)appearance.material.node).shininess.value;
shape.Material.EmmisiveColor = TestConvColor(((MaterialNode)appearance.material.node).emissiveColor);
}
示例2: DropToFloorAction
/// <summary>
/// Constructor
/// </summary>
/// <param name="shapes"></param>
/// <param name="mode"></param>
/// <param name="includeShapes"></param>
public DropToFloorAction(ShapeCollection shapes, Shape3D.DropToFloorMode mode, Vector3F axis, bool includeShapes)
: base("Drop to Floor")
{
_shapes = shapes;
_mode = mode;
_axis = axis;
_includeShapes = includeShapes;
}
示例3: LinkTargetConstraint
/// <summary>
/// Constructor
/// </summary>
/// <param name="ownerShape"></param>
/// <param name="primaryStringId"></param>
public LinkTargetConstraint(Shape3D ownerShape, string primaryStringId)
: base(ownerShape,"affected by",primaryStringId)
{
}
示例4: DropToFloorPivotAction
public DropToFloorPivotAction(Shape3D shape, Vector3F axis, bool includeShapes)
: base(shape, Shape3D.DropToFloorMode.Pivot, axis, includeShapes)
{
}
示例5: HotSpotPlayButton
public HotSpotPlayButton(Shape3D owner, string bitmapfile, uint iColorNormal, uint iColorHigh, float fSize)
: base(owner, bitmapfile, iColorNormal, PickType.Square, fSize)
{
_iColNrml = iColorNormal;
_iColHigh = iColorHigh;
}
示例6: LinkSourceHavokConstraint
/// <summary>
/// Default constructor used by the factory class
/// </summary>
/// <param name="ownerShape"></param>
/// <param name="linkName"></param>
/// <param name="primaryStringId"></param>
public LinkSourceHavokConstraint(Shape3D ownerShape, string linkName, string primaryStringId)
: base(ownerShape, linkName, primaryStringId)
{
}
示例7: GetCustomDropToFloorAction
public override IAction GetCustomDropToFloorAction(Shape3D.DropToFloorMode mode, Vector3F axis, ShapeCollection colliderShapes)
{
if (!HasEngineInstance() || Instances.Length < 1)
return base.GetCustomDropToFloorAction(mode, axis, colliderShapes);
return new BillboardDropToFloorAction(this, null, mode, axis, colliderShapes); // all instances
}
示例8: DecorationModelResource
public DecorationModelResource(Shape3D terrain, int iID)
{
_ownerTerrain = terrain;
ID = iID;
}
示例9: DetailTextureResource
public DetailTextureResource(Shape3D ownerTerrain, int iID)
{
_ownerTerrain = ownerTerrain;
ID = iID;
}
示例10: BidirectionalNodeLink
public BidirectionalNodeLink(Shape3D ownerShape)
: base(ownerShape,"links to", "NodeSource_1")
{
}
示例11: LinkSourceVisiblity
/// <summary>
/// Default constructor used by the factory class
/// </summary>
/// <param name="ownerShape"></param>
/// <param name="linkName"></param>
/// <param name="primaryStringId"></param>
public LinkSourceVisiblity(Shape3D ownerShape, string linkName, string primaryStringId)
: base(ownerShape, linkName, primaryStringId)
{
}
示例12: LinkTargetVisiblity
/// <summary>
/// Constructor
/// </summary>
/// <param name="ownerShape"></param>
/// <param name="primaryStringId"></param>
public LinkTargetVisiblity(Shape3D ownerShape, string primaryStringId) : base(ownerShape,"visibility determined by",primaryStringId)
{
}
示例13: LinkSourceConstraint
/// <summary>
/// Constructor
/// </summary>
/// <param name="ownerShape"></param>
/// <param name="primaryStringId"></param>
public LinkSourceConstraint(Shape3D ownerShape, string primaryStringId)
: base(ownerShape,"affects",primaryStringId)
{
}
示例14: DoDropToFloor
/// <summary>
/// Helper function
/// </summary>
/// <param name="mode"></param>
private void DoDropToFloor(Shape3D.DropToFloorMode mode, Vector3F axis)
{
Cursor = Cursors.WaitCursor;
ShapeCollection shapes = EditorApp.ActiveView.Gizmo.Shapes;
EditorManager.Actions.Add(new DropToFloorAction(shapes, mode, axis, true));
EditorManager.ActiveView.UpdateView(false);
Cursor = Cursors.Default;
}
示例15: PerformScalingTest
void PerformScalingTest(Shape3D parent)
{
Shape3D child = (Shape3D)parent.ChildCollection[0];
Vector3F pos = child.Position;
// modify scaling
parent.UniformScaling = 3.0f;
// now children should be affected as well
Assert.AreEqual(child.UniformScaling, parent.UniformScaling, "Children must be affected by scaling");
Assert.IsFalse(child.Position == pos, "Position must have changed through scaling");
}