SoExtSelectionTriangleFilterCallback Property |
Sets the triangle filter delegate.
Namespace: OIV.Inventor.Nodes
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 SoCallbackAction started by the 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 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 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.