SoPathSwitch Class Reference
[Groups]

Group node that traverses only when traversed along a given path. More...

#include <Inventor/nodes/SoPathSwitch.h>

Inheritance diagram for SoPathSwitch:
SoGroup SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoPathSwitch ()
 SoPathSwitch (int nChildren)

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFPath path

Detailed Description

Group node that traverses only when traversed along a given path.

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.

An empty path (the default) means that no children are traversed.

There is an extended version of this node, SoMultiPathSwitch, that traverses its children if the current path matches any of the paths in a list of paths.

Note: This node disables the bounding box cache for all SoSeparator nodes above it in the scene graph. This may reduce performance when moving the camera and the viewer's auto clip plane adjustment is enabled (the default). (It does not affect render caching.)

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoPath, SoMultiPathSwitch, SoMultiSwitch, SoSwitch

See related examples:

InteractiveSwitch, MultiPathSwitch, MultiSwitch, PathSwitch


Constructor & Destructor Documentation

SoPathSwitch::SoPathSwitch (  ) 

Creates a path switch node with default settings.

SoPathSwitch::SoPathSwitch ( int  nChildren  ) 

Constructor that takes approximate number of children.


Member Function Documentation

static SoType SoPathSwitch::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoGroup.

virtual SoType SoPathSwitch::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoGroup.


Member Data Documentation

The path that must match the current traversal path.

Default is empty.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/