Inventor/nodes/SoSwitch.h File Reference

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)

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.


Define Documentation

#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.


Open Inventor Toolkit reference manual, generated on 18 Apr 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/