Click or drag to resize
SoExtSelectionSelectionEventCallback Delegate

This is the declaration to use for selection event callback functions.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public delegate bool SelectionEventCallback(
	SbVec2s position,
	SbVec3f scenePosition,
	SoExtSelection selection
)

Parameters

position
Type: OIV.InventorSbVec2s

The position of the event in pixel coordinates (0,0 is lower left corner).

scenePosition
Type: OIV.InventorSbVec3f

The position of the event in normalized -1..1 3D coordinates.

selection
Type: OIV.Inventor.NodesSoExtSelection

The selection node that called the function.

Return Value

Type: Boolean

If the callback handles the event it must return true, else return false.

Remarks

See OIV.Inventor.Nodes.SoExtSelection.StartSelectionCallback, OIV.Inventor.Nodes.SoExtSelection.EndSelectionCallback, and OIV.Inventor.Nodes.SoExtSelection.MovingSelectionCallback. These callbacks are useful to modify the selection scene graph (see setSelectionSceneGraph) to implement dynamically changing selection feedback.

Note: These callbacks can only be used in FastEdit mode.

See Also