public class SoPathSwitch extends SoGroup
SoPathSwitch
is a group node that traverses its children only if the current traversal path matches the SoPath
in the path
field.
This can be used, for example, to affect only one instance of a subgraph. The path
field contains the path up to (but not including) the SoPathSwitch
. The path need not go all the way back to the root; if it does not, then only the number of ancestors that are in the path are compared to see if the children should be traversed.
An empty path (the default) means that no children are traversed.
There is an extended version of this node, SoMultiPathSwitch
, that traverses its children if the current path matches any of the paths in a list of paths.
Note: This node disables the bounding box cache for all SoSeparator
nodes above it in the scene graph. This may reduce performance when moving the camera and the viewer's auto clip plane adjustment is enabled (the default). (It does not affect render caching.)
File format/default:
PathSwitch {
path | NULL |
Action behavior:
SoGetBoundingBoxAction
Traverses the children if the paths match. Disables bounding box caches.
SoGLRenderAction
, SoCallbackAction
, SoGetBoundingBoxAction
, SoRayPickAction
, SoHandleEventAction
Traverses the children if the paths match.
See also:
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFPath |
path
The path that must match the current traversal path.
|
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoPathSwitch()
Creates a path switch node with default settings.
|
SoPathSwitch(int nChildren)
Constructor that takes approximate number of children.
|
addChild, findChild, getChild, getNumChildren, insertChild, removeAllChildren, removeChild, removeChild, replaceChild, replaceChild
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFPath path
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com