Click or drag to resize
SoExtSelectionTriangleFilterCallback Property

Sets the triangle filter delegate.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public SoExtSelectionTriangleCB TriangleFilterCallback { get; set; }

Property Value

Type: SoExtSelectionTriangleCB
Remarks

The primitive filter callbacks can be used to retrieve information about the selected primitives of traversed shape nodes - points, line segments, or triangles - and to filter the shape selection based on the selected primitives. These callbacks are called while traversing the scene graph shapes with an OIV.Inventor.Actions.SoCallbackAction started by the OIV.Inventor.Nodes.SoExtSelection node. Whenever a shape primitive is surrounded by the lasso, the delegateis called and receives as argument the action and the primitive. Depending on the shape type, the point, line or triangle delegatewill be called. See OIV.Inventor.Actions.SoCallbackAction.

When a delegatereturns true, the corresponding shape is selected according to the selection policy. Then the selection stops processing the current shape's primitives and continues with the next shape in the scene graph. When a delegatereturns false, the action continues normally to process the remaining shape's primitives, allowing you to filter or collect additional primitives.

The primitive filter callbacks are called only when the OIV.Inventor.Nodes.SoExtSelection.lassoPolicy is set to OIV.Inventor.Nodes.SoExtSelection.LassoPolicies.PART and the OIV.Inventor.Nodes.SoExtSelection.lassoMode is set to OIV.Inventor.Nodes.SoExtSelection.LassoModes.ALL_SHAPES.

It is the responsibility of the application to manage the primitive selection policy. Exactly like OIV.Inventor.Nodes.SoSelection, the node selection list can only handle paths to nodes and cannot store primitive detail information.

See Also