Click or drag to resize
AB4D logo

TransformationsHelperGetVisual3DTotalTransform(Visual3D, Visual3D, Boolean, Transform3D) Method

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.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static bool GetVisual3DTotalTransform(
	Visual3D rootVisual3D,
	Visual3D finalVisual3D,
	bool addFinalVisualTransformation,
	out Transform3D totalTransform3D
)

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
totalTransform3D  Transform3D
Transform3D or null if no transformation is found

Return Value

Boolean
returns true, when finalVisual3D is connected to the rootVisual3D or Viewport3D; false when finalVisual3D is not reached from the finalVisual3D or Viewport3D.
Remarks

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.

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