Click or drag to resize
SoExtSelectionSetTriangleFilterCallback Method (SoExtSelectionTriangleCB)

Note: This API is now obsolete.

Use TriangleFilterCallback property instead. Sets the triangle filter delegate.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("Use TriangleFilterCallback property instead.")]
public void SetTriangleFilterCallback(
	SoExtSelectionTriangleCB cb
)

Parameters

cb
Type: OIV.Inventor.NodesSoExtSelectionTriangleCB
Remarks

Sets the triangle filter delegate. The primitive filter delegates 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 delegates are called while traversing the scene graph shapes with an SoCallbackAction started by the SoExtSelection node. Whenever a shape primitive is surrounded by the lasso, the delegate is called and receives as argument the action and the primitive. Depending on the shape type, the point, line or triangle delegate will be called. See SoCallbackAction.

When a delegate returns 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 delegate returns FALSE, the action continues normally to process the remaining shape's primitives, allowing you to filter or collect additional primitives.

The primitive filter delegates are called only when the #LassoPolicy is set to SoExtSelection::PART and the #LassoMode is set to SoExtSelection::ALL_SHAPES.

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

See Also