Click or drag to resize
AB4D logo

TransformationsHelperGetVisual3DTotalTransform(Visual3D, Boolean, Boolean) Method

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.

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

Parameters

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

Transform3D
Transform3D or null if no transformation is found
Remarks

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.

GetVisual3DTotalTransform can be used when we want to get the transformation of a Visual3D that is inside a hierarchy of other Visual3D objects.

This method is the same as GetVisual3DTotalTransform(Visual3D, Visual3D, Boolean, Boolean) is called with first parameter (rootVisual3D) set to null.

See Also