|
TransformationsHelperGetVisual3DTotalTransform(Visual3D, Visual3D, Boolean, Boolean) Method |
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.
Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static Transform3D GetVisual3DTotalTransform(
Visual3D rootVisual3D,
Visual3D finalVisual3D,
bool addFinalVisualTransformation,
out bool isVisual3DConnected
)
Parameters
- rootVisual3D Visual3D
- The Visual3D object that is the root of the hierarchy where the finalVisual3D is (if null then Viewport3D is considered the root object).
- finalVisual3D Visual3D
- The Visual3D object for witch the Transform3D is created
- addFinalVisualTransformation Boolean
- if true then the returned Transform3D also contains the transform of the finalVisual3D
- isVisual3DConnected Boolean
- out Boolean parameter that is set to true, when finalVisual3D is connected to the rootVisual3D or Viewport3D; false when finalVisual3D is not reached from the finalVisual3D or Viewport3D.
Return Value
Transform3DTransform3D or null if no transformation is found
Remarks GetModelTotalTransform 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 when finalVisual3D is connected to the rootVisual3D or Viewport3D; false when finalVisual3D is not reached from the finalVisual3D or Viewport3D.
GetVisual3DTotalTransform can be used when we want to get the transformation of a Visual3D that is inside a hierarchy of other Visual3D objects.
See Also