Transformer3ds Methods |
The Transformer3ds type exposes the following members.
Name | Description | |
---|---|---|
ApplyTransformation |
Applies the newTransformation to the modelToApplyTransformtion.
If the model already has the same type of transformation than this transformation is replaced with the new one.
If this type of transformation is not already applied to the models than the transformation is added to model's Transform3DGroup
| |
ClearAllTransformations |
Clears all transformation in all objects in UsedReader3ds
| |
ClearTransformations(String) |
Clears all transformation in objectName (only MatrixTransformations are left because they are needed to represent the hierarchy of read 3ds file)
| |
ClearTransformations(Model3D) |
Clears all transformation in objectsGroup (only MatrixTransformations are left because they are needed to represent the hierarchy of read 3ds file)
| |
GetCenterPosition |
Returns a center point of a Model3D object
| |
GetChildren(String) |
Get Model3DCollection (Children) for objectName (Model3DGroup or GeometryModel3D) or null if model has no children.
GeometryModel3D can have children if for it there was a Model3DGroup created (becasue of a hierarchy).
In this case there is a (objectName + Reader3ds.GroupNameSuffix) in NamedObjects dictionary.
| |
GetChildren(Model3D) |
Get Model3DCollection (Children) for Model3DGroup or GeometryModel3D or null if model has no children.
GeometryModel3D can have children if for it there was a Model3DGroup created (becasue of a hierarchy).
In this case there is a (objectName + Reader3ds.GroupNameSuffix) in NamedObjects dictionary.
| |
GetObjectCenter |
Returns a center point of a Model3D object
| |
GetObjectName |
Gets the name of the object from UsedReader3ds.NamedObjects dictionary
| |
GetObjectOrItsGroup(String) |
If objectName from UsedReader3ds.NamedObjects is Model3DGroup or Light the same model is returned.
If objectName is GeometryModel3D and it has children (because of hierarchy there was a Model3DGroup created for it) than return the Model3DGroup.
If objectName is GeometryModel3D and has no children return model as GeometryModel3D.
| |
GetObjectOrItsGroup(Model3D) |
If model is Model3DGroup or Light the same model is returned.
If model is GeometryModel3D and it has children (because of hierarchy there was a Model3DGroup created for it) than return the Model3DGroup.
If model is GeometryModel3D and has no children return model as GeometryModel3D.
| |
GetObjectRotation(String) |
Gets a RotateTransform3D for the object with objectName - if there is a Transform3DGroup the RotateTransform3D is get from it
| |
GetObjectRotation(Model3D) |
Gets a RotateTransform3D for the model - if there is a Transform3DGroup the RotateTransform3D is get from it
| |
GetObjectScale(String) |
Gets a ScaleTransform3D for the object with objectName - if there is a Transform3DGroup the RotateTransform3D is get from it
| |
GetObjectScale(Model3D) |
Gets a ScaleTransform3D for the model - if there is a Transform3DGroup the RotateTransform3D is get from it
| |
GetObjectSize |
Gets the size of one Model3D - length of the diagonal of object's bounds
| |
GetObjectTranslation(String) |
Gets a TranslateTransform3D for the object with objectName - if there is a Transform3DGroup the RotateTransform3D is get from it
| |
GetObjectTranslation(Model3D) |
Gets a TranslateTransform3D for the model - if there is a Transform3DGroup the RotateTransform3D is get from it
| |
GetParentGroup(String) |
Gets the parent Model3DGroup of the NamedObject. If the objectName is already a Model3DGroup than the same object is returned, else the parent group is returned.
Used when you get a GeometryModel3D from Reader3ds's NamedObjects and would like to apply a transformation to the GeometryModel3D and all its child objects.
| |
GetParentGroup(GeometryModel3D) |
Gets the parent Model3DGroup of the GeometryModel3D.
Used when you get a GeometryModel3D from Reader3ds's NamedObjects and would like to apply a transformation to the GeometryModel3D and all its child objects
| |
GetParentGroup(Model3DGroup, GeometryModel3D) |
Gets the parent Model3DGroup of the GeometryModel3D.
Used when you get a GeometryModel3D from Reader3ds's NamedObjects and would like to apply a transformation to the GeometryModel3D and all its child objects
| |
GetSize |
Gets the size of one Model3D - length of the diagonal of object's bounds
| |
HasChildren(String) |
Returns true if the objectName (Model3DGroup or GeometryModel3D) has children (at least one - empty collection returns false).
GeometryModel3D can have children if for it there was a Model3DGroup created (becasue of a hierarchy).
In this case there is a (objectName + Reader3ds.GroupNameSuffix) in NamedObjects dictionary.
| |
HasChildren(Model3D) |
Returns true if the Model3DGroup or GeometryModel3D has children (at least one - empty collection returns false).
GeometryModel3D can have children if for it there was a Model3DGroup created (becasue of a hierarchy).
In this case there is a (objectName + Reader3ds.GroupNameSuffix) in NamedObjects dictionary.
| |
RotateObject(AxisAngleRotation3D) |
Applies AxisAngleRotation3D to all objects and lights. The rotation is applied around objects center point.
| |
RotateObject(RotateTransform3D) |
Applies RotateTransform3D to all objects and lights. The rotation is applied around objects center point.
| |
RotateObject(String, AxisAngleRotation3D) |
Applies AxisAngleRotation3D to the object with objectName and to all its child objects. The rotation is applied around objects center point.
| |
RotateObject(String, RotateTransform3D) |
Applies RotateTransform3D to the object with objectName and to all its child objects - enables rotating object around custom center point.
| |
RotateObject(Vector3D, Double) |
Applies AxisAngleRotation3D to all objects and lights.
| |
RotateObject(String, Vector3D, Double) |
Applies AxisAngleRotation3D to the object with objectName and to all its child objects
| |
RotateObject(Vector3D, Double, Boolean) |
Applies AxisAngleRotation3D to all objects and lights. The rotation is applied around objects center point.
| |
RotateObject(String, Vector3D, Double, Boolean) |
Applies AxisAngleRotation3D to the object with objectName and to all its child objects. The rotation is applied around objects center point.
| |
ScaleObject(ScaleTransform3D) |
Applies scale transformation to all objects and lights.
| |
ScaleObject(String, ScaleTransform3D) |
Applies scale transformation to the object with objectName and to all its child objects
| |
ScaleObject(Double, Double, Double) |
Applies scale transformation to all objects and lights.
| |
ScaleObject(Double, Double, Double, Boolean) |
Applies scale transformation to all objects and lights.
| |
ScaleObject(String, Double, Double, Double) |
Applies scale transformation to the object with objectName and to all its child objects
| |
ScaleObject(String, Double, Double, Double, Boolean) |
Applies scale transformation to the object with objectName and to all its child objects
| |
TranslateObject(TranslateTransform3D) |
Applies scale transformation to all objects and lights.
| |
TranslateObject(String, TranslateTransform3D) |
Applies scale transformation to the object with objectName and to all its child objects
| |
TranslateObject(Double, Double, Double) |
Applies scale transformation to all objects and lights.
| |
TranslateObject(Double, Double, Double, Boolean) |
Applies scale transformation to all objects and lights.
| |
TranslateObject(String, Double, Double, Double) |
Applies scale transformation to the object with objectName and to all its child objects
| |
TranslateObject(String, Double, Double, Double, Boolean) |
Applies scale transformation to the object with objectName and to all its child objects
|