Switch group node: traverses only the child indicated by integer "whichChild" field. More...
#include <Inventor/fields/SoSFInt32.h>
#include <Inventor/nodes/SoGroup.h>
Go to the source code of this file.
Classes | |
class | SoSwitch |
Group node that traverses one chosen child. More... | |
Defines | |
#define | SO_SWITCH_NONE (-1) |
#define | SO_SWITCH_INHERIT (-2) |
#define | SO_SWITCH_ALL (-3) |
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.
#define SO_SWITCH_ALL (-3) |
Possible value of SoSwitch::whichChild : Traverse all children.
#define SO_SWITCH_INHERIT (-2) |
Possible value of SoSwitch::whichChild : Inherit value from state.
#define SO_SWITCH_NONE (-1) |
Possible value of SoSwitch::whichChild : Don't traverse any children.