Open Inventor Reference
SoRotationXYZ Class Reference

Node representing a 3D rotation about the x-, y-, or z-axis. More...

#include <Inventor/nodes/SoRotationXYZ.h>

Inheritance diagram for SoRotationXYZ:
SoTransformation SoNode SoFieldContainer SoBase

List of all members.

Public Types

enum  Axis { X, Y, Z }
 Rotation axis. More...

Public Member Functions

 SoRotationXYZ ()
 Creates a rotation node with default settings.
SbRotation getRotation () const
 Returns an SbRotation equivalent to the specified rotation.
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
SoSFEnum axis
 Rotation axis.
SoSFFloat angle
 Rotation angle (in radians), using the right-hand rule.

Protected Member Functions

virtual ~SoRotationXYZ ()

Detailed Description

This node defines a 3D rotation about one of the three principal axes. The rotation is accumulated into the current transformation, which is applied to subsequent shapes.

File Format/Default
RotationXYZ {
  axis X
  angle 0
}
Action Behavior
SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction
Accumulates rotation transformation into the current transformation.
SoGetMatrixAction
Returns the matrix corresponding to the rotation.
See Also
SoRotation, SoTransform

Definition at line 95 of file SoRotationXYZ.h.


Member Enumeration Documentation

Enumerator:
X 

x-axis

Y 

y-axis

Z 

z-axis

Definition at line 101 of file SoRotationXYZ.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from SoNode.

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

The default implementation does nothing.

Reimplemented from SoNode.

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

Reimplemented from SoNode.

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

Reimplemented from SoNode.

SbRotation SoRotationXYZ::getRotation ( ) const
virtual void SoRotationXYZ::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoNode.

static void SoRotationXYZ::initClass ( ) [static]

Reimplemented from SoTransformation.

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

Reimplemented from SoNode.


Member Data Documentation

Definition at line 114 of file SoRotationXYZ.h.

Definition at line 111 of file SoRotationXYZ.h.


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