Open Inventor Reference
SoResetTransform Class Reference

Node that resets the current transformation to identity. More...

#include <Inventor/nodes/SoResetTransform.h>

Inheritance diagram for SoResetTransform:
SoTransformation SoNode SoFieldContainer SoBase

List of all members.

Public Types

enum  ResetType { TRANSFORM = 0x01, BBOX = 0x02 }
 Which things get reset: More...

Public Member Functions

 SoResetTransform ()
 Creates a reset transformation node with default settings.
virtual void doAction (SoAction *action)
 This method performs the "typical" operation of a node for any action.
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 getBoundingBox (SoGetBoundingBoxAction *action)
virtual void getMatrix (SoGetMatrixAction *action)
virtual void pick (SoPickAction *action)

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFBitMask whatToReset
 Specifies which items to reset when the node is traversed.

Protected Member Functions

virtual ~SoResetTransform ()

Detailed Description

This node resets the current transformation to identity. It can be used to apply an absolute world space transformation afterwards, such as translating to a specific point from within a hierarchy. An SoResetTransform node should probably be used under an SoSeparator or SoTransformSeparator so it won't change transformations for the rest of the scene graph. An SoResetTransform node can also be used to reset the current bounding box to empty during traversal of an SoGetBoundingBoxAction, if the whatToReset field has the BBOX bit set.

File Format/Default
ResetTransform {
  whatToReset TRANSFORM
}
Action Behavior
SoGLRenderAction, SoCallbackAction, SoRayPickAction
If specified, resets current transformation matrix to identity.
SoGetBoundingBoxAction
If specified, resets current transformation matrix to identity and current computed bounding box to be empty.
SoGetMatrixAction
Returns identity matrix.
See Also
SoTransform

Definition at line 103 of file SoResetTransform.h.


Member Enumeration Documentation

Enumerator:
TRANSFORM 

Transformation.

BBOX 

Bounding box.

Definition at line 109 of file SoResetTransform.h.


Constructor & Destructor Documentation

SoResetTransform::SoResetTransform ( )
virtual SoResetTransform::~SoResetTransform ( ) [protected, virtual]

Member Function Documentation

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

Reimplemented from SoNode.

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

The default implementation does nothing.

Reimplemented from SoNode.

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

Reimplemented from SoNode.

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

Reimplemented from SoNode.

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

Reimplemented from SoNode.

static void SoResetTransform::initClass ( ) [static]

Reimplemented from SoTransformation.

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

Reimplemented from SoNode.


Member Data Documentation


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