Open Inventor Reference
SoTransformSeparator Class Reference

Group node that saves and restores transformation state. More...

#include <Inventor/nodes/SoTransformSeparator.h>

Inheritance diagram for SoTransformSeparator:
SoGroup SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoTransformSeparator ()
 Creates a transform separator node with default settings.
 SoTransformSeparator (int nChildren)
 Constructor that takes approximate number of children.
virtual void doAction (SoAction *action)
 Implement actions.
virtual void callback (SoCallbackAction *action)
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 getMatrix (SoGetMatrixAction *action)

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Protected Member Functions

virtual ~SoTransformSeparator ()

Detailed Description

This group node is similar to the SoSeparator node in that it saves state before traversing its children and restores it afterwards. However, it saves only the current transformation; all other state is left as is. This node can be useful for positioning a camera, since the transformations to the camera will not affect the rest of the scene, even through the camera will view the scene. Similarly, this node can be used to isolate transformations to light sources or other objects.

File Format/Default
TransformSeparator {
}
Action Behavior
SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoGetMatrixAction, SoRayPickAction
Saves the current transformation state, traverses all children, and restores the previous transformation state.
See Also
SoResetTransform, SoTransformation

Definition at line 93 of file SoTransformSeparator.h.


Constructor & Destructor Documentation

SoTransformSeparator::SoTransformSeparator ( )
SoTransformSeparator::SoTransformSeparator ( int  nChildren)
virtual SoTransformSeparator::~SoTransformSeparator ( ) [protected, virtual]

Member Function Documentation

virtual void SoTransformSeparator::callback ( SoCallbackAction action) [virtual]

Reimplemented from SoGroup.

virtual void SoTransformSeparator::doAction ( SoAction action) [virtual]

Reimplemented from SoGroup.

virtual void SoTransformSeparator::getBoundingBox ( SoGetBoundingBoxAction action) [virtual]

Reimplemented from SoGroup.

virtual void SoTransformSeparator::getMatrix ( SoGetMatrixAction action) [virtual]

Reimplemented from SoGroup.

virtual void SoTransformSeparator::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoGroup.

static void SoTransformSeparator::initClass ( ) [static]

Reimplemented from SoGroup.

virtual void SoTransformSeparator::pick ( SoPickAction action) [virtual]

Reimplemented from SoGroup.


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