public class SoMultiSwitch extends SoGroup
SoSwitch
node.
The whichChildren
field specifies a list of children (by index) to traverse, where the first child has index 0. The traversalMode
field can specify to traverse none of the children, all of the children, the children in the list or all the children not in the list.
NOTES:
traversalMode
is NONE, meaning that nothing is displayed by default.
SoGroup
, NOT an SoSeparator
, and therefore does not provide render caching. Generally if the children contain geometry, it is good practice to make each child an SoSeparator
to make render caching more effective.
File format/default:
MultiSwitch {
whichChildren | [ ] |
traversalMode | NONE |
inherit | NO |
Action behavior:
SoGLRenderAction
, SoCallbackAction
, SoGetBoundingBoxAction
, SoGetMatrixAction
, SoHandleEventAction
, SoRayPickAction
Traverses the chosen child or children. Sets: SoSwitchElement
SoSearchAction
If the action's Searching-All flag is set, always traverses all children. Otherwise, traverses just the chosen child or children.
See also:
SoArray
, SoLevelOfDetail
, SoMultipleCopy
, SoPathSwitch
, SoMultiPathSwitch
, SoSwitch
, SoInteractiveSwitch
Modifier and Type | Class and Description |
---|---|
static class |
SoMultiSwitch.InheritModes
Inheritance Mode enumerated values.
|
static class |
SoMultiSwitch.TraversalModes
Traversal Mode enumerated values.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFEnum<SoMultiSwitch.InheritModes> |
inheritMode
Defines the way this node inherit values from the state.
|
SoSFEnum<SoMultiSwitch.TraversalModes> |
traversalMode
Defines the way the children list must be managed.
|
SoMFInt32 |
whichChildren
Indices of the children to traverse.
|
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoMultiSwitch()
Creates a multi-switch node with default settings.
|
SoMultiSwitch(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 SoMFInt32 whichChildren
public final SoSFEnum<SoMultiSwitch.TraversalModes> traversalMode
public final SoSFEnum<SoMultiSwitch.InheritModes> inheritMode
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com