Group node that traverses one chosen child depending on scene interaction. More...
#include <Inventor/nodes/SoInteractiveSwitch.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoInteractiveSwitch () | |
SoInteractiveSwitch (int nChildren) | |
virtual SbBool | affectsState () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFInt32 | whichInteractiveChild |
Group node that traverses one chosen child depending on scene interaction.
This group node has the same base behavior as the SoSwitch node for its inherited whichChild field.
It has the additional feature of (optionally) traversing a different (or no) child during an "interaction". This allows the application to provide higher performance during an interaction by switching to a less complex version of a geomtry or not rendering the geometry at all. Interaction includes moving the camera (navigating around the scene) and interacting with a dragger (see SoDragger), for example dragging a slice through a volume data set.
The whichInteractiveChild field specifies the index of the child to traverse (where the first child has index 0), when a user interaction, for example moving the camera, is in progress. This means that while the camera is moving, the traversed children will be the children defined by the whichInteractiveChild field, and when interaction is stopped, the standard SoSwitch whichChild field value will again be used as the index to traverse.
NOTES:
whichChild | -1 |
whichInteractiveChild | -1 |
SoArray, SoLevelOfDetail, SoMultiPathSwitch, SoMultipleCopy, SoPathSwitch, SoSwitch
SoInteractiveSwitch::SoInteractiveSwitch | ( | ) |
Creates an interactive-switch node with default settings.
SoInteractiveSwitch::SoInteractiveSwitch | ( | int | nChildren | ) |
Constructor that takes approximate number of children.
virtual SbBool SoInteractiveSwitch::affectsState | ( | ) | const [virtual] |
static SoType SoInteractiveSwitch::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSwitch.
virtual SoType SoInteractiveSwitch::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoSwitch.
Index of the child to traverse during interaction, (or one of SO_SWITCH_NONE, SO_SWITCH_INHERIT, or SO_SWITCH_ALL).