SoMultiSwitch Class Reference

Group node that traverses a set of chosen children. More...

#include <Inventor/nodes/SoMultiSwitch.h>

Inheritance diagram for SoMultiSwitch:
SoGroup SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  TraversalMode {
  NONE = 0,
  ALL = 1,
  INCLUDE = 2,
enum  InheritMode {
  NO = 1 << 0,
  MODE = 1 << 1,
  LIST = 1 << 2,

Public Member Functions

virtual SoType getTypeId () const
 SoMultiSwitch ()
 SoMultiSwitch (int nChildren)
virtual SbBool affectsState () const

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoMFInt32 whichChildren
SoSFEnum traversalMode
SoSFEnum inheritMode

Detailed Description

Group node that traverses a set of chosen children.

This group node traverses none, all or a specified list of its children. Effectively it is an extended version of the 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.





SoArray, SoLevelOfDetail, SoMultipleCopy, SoPathSwitch, SoMultiPathSwitch, SoSwitch, SoInteractiveSwitch

See related examples:

InteractiveSwitch, MultiPathSwitch, MultiSwitch, PathSwitch

Member Enumeration Documentation

Inheritance Mode enumerated values.


Current SoMultiSwitch node does not inherit its behavior from state value.


traversalMode field value is inherited from the state.


whichChildren field value is inherited from the state.


whichChildren and traversalMode fields values are inherited from the state.

Traversal Mode enumerated values.


None of the children are traversed.


All the children are traversed.


Traverse children defined by the whichChildren field.


Traverse all children except those defined by the whichChildren field.

Constructor & Destructor Documentation

SoMultiSwitch::SoMultiSwitch (  ) 

Creates a multi-switch node with default settings.

SoMultiSwitch::SoMultiSwitch ( int  nChildren  ) 

Constructor that takes approximate number of children.

Member Function Documentation

virtual SbBool SoMultiSwitch::affectsState (  )  const [virtual]

Overrides method in SoNode to return FALSE if there is no selected child or the selected child does not affect the state.

Reimplemented from SoNode.

static SoType SoMultiSwitch::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoGroup.

virtual SoType SoMultiSwitch::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoGroup.

Member Data Documentation

Defines the way this node inherit values from the state.

Use enum InheritMode. Default is NO.

Defines the way the children list must be managed.

Use enum TraversalMode. Default is NONE.

Indices of the children to traverse.

Default is empty.

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Sep 2022
Copyright © Thermo Fisher Scientific All rights reserved.