Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoSwitch.h File Reference

Switch group node: traverses only the child indicated by integer "whichChild" field. More...

Go to the source code of this file.

Classes

class  SoSwitch
 Group node that traverses one chosen child. More...
 

Macros

#define SO_SWITCH_NONE   (-1)
 Possible value of SoSwitch::whichChild : Don't traverse any children.
 
#define SO_SWITCH_INHERIT   (-2)
 Possible value of SoSwitch::whichChild : Inherit value from state

 
#define SO_SWITCH_ALL   (-3)
 Possible value of SoSwitch::whichChild : Traverse all children

 

Detailed Description

Switch group node: traverses only the child indicated by integer "whichChild" field.

If this field is SO_SWITCH_NONE, no children are traversed, while SO_SWITCH_INHERIT means inherit the index from the current switch state, doing a modulo operation to make sure the child index is within the correct bounds of the switch node.

Definition in file SoSwitch.h.

Macro Definition Documentation

◆ SO_SWITCH_ALL

#define SO_SWITCH_ALL   (-3)

Possible value of SoSwitch::whichChild : Traverse all children

Definition at line 75 of file SoSwitch.h.

◆ SO_SWITCH_INHERIT

#define SO_SWITCH_INHERIT   (-2)

Possible value of SoSwitch::whichChild : Inherit value from state

Definition at line 72 of file SoSwitch.h.

◆ SO_SWITCH_NONE

#define SO_SWITCH_NONE   (-1)

Possible value of SoSwitch::whichChild : Don't traverse any children.

Definition at line 69 of file SoSwitch.h.