Click or drag to resize
SoExtSelectionSelect Method (SoNode, Int32, SbVec2f, SbViewportRegion, Boolean)

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public void Select(
	SoNode root,
	int numCoord,
	SbVec2f[] lassoCoord,
	SbViewportRegion viewport,
	bool shiftPressed
)

Parameters

root
Type: OIV.Inventor.NodesSoNode
numCoord
Type: SystemInt32
lassoCoord
Type: OIV.InventorSbVec2f
viewport
Type: OIV.InventorSbViewportRegion
shiftPressed
Type: SystemBoolean
Remarks

Simulates interactive selection starting from the root node with the given lasso contour, updating the selection list and triggering any associated delegate. Even though the selection operation may not involve a window per se, some nodes need the viewport information to determine their size and placement.

NOTE: The root node must be the root of a scene graph that includes the camera node. For example, when using an Open Inventor viewer, use getSceneManager()->getSceneGraph().

Setting shiftPressed true simulates the effect of pressing the shift key while selecting, consistent with the SoSelection.Shift policy.

The lasso type can be set using the lassoType field, but the lasso will not be drawn when using this method. The lasso coordinates are given in normalized device coordinates ranging from -1 to +1 in the X and Y directions.

Note: When the lassoType is set to LASSO the objects are selected according to the points defined by the lasso coordinates so the segments between those points are not part of the lasso!.

See Also