Open Inventor Reference
|
Group node that traverses only when traversed along a given path. More...
#include <Inventor/nodes/SoPathSwitch.h>
Public Member Functions | |
SoPathSwitch () | |
Creates a path switch node with default settings. | |
SoPathSwitch (int nChildren) | |
Constructor that takes approximate number of children. | |
virtual void | doAction (SoAction *action) |
Implement actions. | |
virtual void | GLRender (SoGLRenderAction *action) |
These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing. | |
virtual void | pick (SoPickAction *action) |
virtual void | getBoundingBox (SoGetBoundingBoxAction *action) |
virtual void | handleEvent (SoHandleEventAction *action) |
virtual void | getMatrix (SoGetMatrixAction *action) |
virtual void | search (SoSearchAction *action) |
Static Public Member Functions | |
static void | initClass () |
Initializes base node class. | |
Public Attributes | |
Fields | |
SoSFPath | path |
The path that must match the current traversal path. | |
Protected Member Functions | |
virtual | ~SoPathSwitch () |
SoPathSwitch is a group node that traverses its children only if the current traversal path matches the SoPath in the path field. This can be used, for example, to affect only one instance of a subgraph. The path field contains the path up to (but not including) the SoPathSwitch. The path need not go all the way back to the root; if it does not, then only the number of ancestors that are in the path are compared to see if the children should be traversed. A NULL path means that the children are never traversed.
Definition at line 87 of file SoPathSwitch.h.
SoPathSwitch::SoPathSwitch | ( | ) |
SoPathSwitch::SoPathSwitch | ( | int | nChildren | ) |
virtual SoPathSwitch::~SoPathSwitch | ( | ) | [protected, virtual] |
virtual void SoPathSwitch::getBoundingBox | ( | SoGetBoundingBoxAction * | action | ) | [virtual] |
Reimplemented from SoGroup.
virtual void SoPathSwitch::getMatrix | ( | SoGetMatrixAction * | action | ) | [virtual] |
Reimplemented from SoGroup.
virtual void SoPathSwitch::GLRender | ( | SoGLRenderAction * | action | ) | [virtual] |
Reimplemented from SoGroup.
virtual void SoPathSwitch::handleEvent | ( | SoHandleEventAction * | action | ) | [virtual] |
Reimplemented from SoGroup.
static void SoPathSwitch::initClass | ( | ) | [static] |
Reimplemented from SoGroup.
virtual void SoPathSwitch::pick | ( | SoPickAction * | action | ) | [virtual] |
Reimplemented from SoGroup.
virtual void SoPathSwitch::search | ( | SoSearchAction * | action | ) | [virtual] |
Reimplemented from SoGroup.
Definition at line 96 of file SoPathSwitch.h.