Click or drag to resize
SoGetMatrixAction Constructor

Constructor.

Namespace: OIV.Inventor.Actions
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public SoGetMatrixAction(
	SbViewportRegion newRegion
)

Parameters

newRegion
Type: OIV.InventorSbViewportRegion
Remarks

Even though the bounding box computation may not involve a window per se, some nodes need the size of the viewport to determine their size in 3D coordinates. For example the size of an OIV.Inventor.Nodes.SoText2 is a fixed value in device coordinates, but the corresponding size in 3D depends on the current camera.

Usually it is convenient to get the actual viewport region from the viewer as shown in the example above. However if the scene graph does not contain any viewport dependent nodes then any values can be used.

See Also