Click or drag to resize
AB4D logo

TransformationsHelper Class

TransformationsHelper class contain methods that help to work with transformations, for example GetModelTotalTransform(Model3D, Model3D, Boolean).
Inheritance Hierarchy
SystemObject
  Ab3d.UtilitiesTransformationsHelper

Namespace:  Ab3d.Utilities
Assembly:  Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 10.0.8000.1045
Syntax
C#
public static class TransformationsHelper

The TransformationsHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddTransformation(Model3D, Transform3D)
Adds the transform3D to the specified model3D. If model3D have no Transform set, set the transform3D to it. If model3D already have Transform set, the transform3D is added to existing or new Transform3DGroup.
Public methodStatic memberAddTransformation(Visual3D, Transform3D)
Adds the transform3D to the specified visual3D. If visual3D have no Transform set, set the transform3D to it. If visual3D already have Transform set, the transform3D is added to existing or new Transform3DGroup.
Public methodStatic memberCombineTransform3D
CombineTransform3D returns a Transform3D with combining firstTransform3D and secondTransform3D. When both firstTransform3D and secondTransform3D are null or Identity, then null is returned. When one of the input Transform3D object is null or Identity, then the other Transform3D is returned. Otherwise a new Transform3DGroup is created and transformations from firstTransform3D and then secondTransform3D are added.
Public methodStatic memberGetModelTotalTransform(Model3D, Model3D, Boolean)
GetModelTotalTransform returns a Transform3D that contains all the transformations from the rootModel to the finalModel. If no transformation is found, then null is returned.
Public methodStatic memberGetModelTotalTransform(Model3D, Model3D, Boolean, Boolean)
GetModelTotalTransform returns a Transform3D that contains all the transformations from the rootModel to the finalModel. If no transformation is found, then null is returned.
Public methodStatic memberGetModelTotalTransform(Model3D, Model3D, Boolean, Transform3D)
GetModelTotalTransform returns true when the specified finalModel can be reached from the rootModel. In this case the totalTransform3D out parameter is set to the a Transform3D that contains all the transformations from the rootModel to the finalModel. If no transformation is found, then totalTransform3D is set to null.
Public methodStatic memberGetVisual3DTotalTransform(Visual3D, Boolean, Boolean)
GetVisual3DTotalTransform returns a Transform3D that contains all the transformations from the Viewport3D to the finalVisual3D. If no transformation is found, then null is returned. The isVisual3DConnected out parameter is set to false, when the Viewport3D is not reached from the finalVisual3D.
Public methodStatic memberGetVisual3DTotalTransform(Visual3D, Boolean, Transform3D)
GetVisual3DTotalTransform returns true when the specified finalVisual3D can be reached from the Viewport3D. In this case the totalTransform3D out parameter is set to the a Transform3D that contains all the transformations from the Viewport3D to the finalVisual3D. If no transformation is found, then totalTransform3D is set to null.
Public methodStatic memberGetVisual3DTotalTransform(Visual3D, Visual3D, Boolean, Boolean)
GetVisual3DTotalTransform returns a Transform3D that contains all the transformations from the rootVisual3D to the finalVisual3D. When rootVisual3D is null, then transformation from Viewport3D to the finalVisual3D is returned. If no transformation is found, then null is returned. The isVisual3DConnected out parameter is set to false, when the rootVisual3D or Viewport3D is not reached from the finalVisual3D.
Public methodStatic memberGetVisual3DTotalTransform(Visual3D, Visual3D, Boolean, Transform3D)
GetVisual3DTotalTransform returns true when the specified finalVisual3D can be reached from the rootVisual3D. In this case the totalTransform3D out parameter is set to the a Transform3D that contains all the transformations from the rootVisual3D to the finalVisual3D. If no transformation is found, then totalTransform3D is set to null.
Top
See Also