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.
|
Inventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
static int |
ALL
Deprecated.
Use
SoMultiSwitch.TraversalModes.ALL instead. |
static int |
ANY
Deprecated.
Use
SoMultiSwitch.InheritModes.ANY instead. |
static int |
EXCLUDE
Deprecated.
Use
SoMultiSwitch.TraversalModes.EXCLUDE instead. |
static int |
INCLUDE
Deprecated.
Use
SoMultiSwitch.TraversalModes.INCLUDE instead. |
SoSFEnum<SoMultiSwitch.InheritModes> |
inheritMode
Defines the way this node inherit values from the state.
|
static int |
LIST
Deprecated.
Use
SoMultiSwitch.InheritModes.LIST instead. |
static int |
MODE
Deprecated.
Use
SoMultiSwitch.InheritModes.MODE instead. |
static int |
NO
Deprecated.
Use
SoMultiSwitch.InheritModes.NO instead. |
static int |
NONE
Deprecated.
Use
SoMultiSwitch.TraversalModes.NONE instead. |
SoSFEnum<SoMultiSwitch.TraversalModes> |
traversalMode
Defines the way the children list must be managed.
|
SoMFInt32 |
whichChildren
Indices of the children to traverse.
|
boundingBoxIgnoringVERBOSE_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, replaceChildaffectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizablegetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int NONE
SoMultiSwitch.TraversalModes.NONE instead.@Deprecated public static final int ALL
SoMultiSwitch.TraversalModes.ALL instead.@Deprecated public static final int INCLUDE
SoMultiSwitch.TraversalModes.INCLUDE instead.@Deprecated public static final int EXCLUDE
SoMultiSwitch.TraversalModes.EXCLUDE instead.@Deprecated public static final int NO
SoMultiSwitch.InheritModes.NO instead.@Deprecated public static final int MODE
SoMultiSwitch.InheritModes.MODE instead.@Deprecated public static final int LIST
SoMultiSwitch.InheritModes.LIST instead.@Deprecated public static final int ANY
SoMultiSwitch.InheritModes.ANY instead.public final SoMFInt32 whichChildren
public final SoSFEnum<SoMultiSwitch.TraversalModes> traversalMode
public final SoSFEnum<SoMultiSwitch.InheritModes> inheritMode
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com