Open Inventor Reference
SoSFRotation Class Reference

Field containing a rotation. More...

#include <Inventor/fields/SoSFRotation.h>

Inheritance diagram for SoSFRotation:
SoSField SoField

List of all members.

Public Member Functions

void getValue (SbVec3f &axis, float &angle) const
 Some additional convenience functions:
void setValue (float q0, float q1, float q2, float q3)
 Set the field to the given quaternion.
void setValue (const float q[4])
 Set value from array of 4 floats defining rotation quaternion.
void setValue (const SbVec3f &axis, float angle)
 Set the field to the rotation given by axis/angle.

Static Public Member Functions

static void initClass ()

Detailed Description

A field containing a single SbRotation (an arbitrary rotation).

SoSFRotations are written to file as four floating point values separated by whitespace. The 4 values represent an axis of rotation followed by the amount of right-handed rotation about that axis, in radians. For example, a 180 degree rotation about the Y axis is:

0 1 0  3.14159265
See Also
SbRotation, SoField, SoSField, SoMFRotation

Definition at line 84 of file SoSFRotation.h.


Member Function Documentation

void SoSFRotation::getValue ( SbVec3f axis,
float &  angle 
) const [inline]

Return value as axis and angle

Definition at line 94 of file SoSFRotation.h.

References SoField::evaluate().

static void SoSFRotation::initClass ( ) [static]

Reimplemented from SoSField.

void SoSFRotation::setValue ( const SbVec3f axis,
float  angle 
)
void SoSFRotation::setValue ( const float  q[4])
void SoSFRotation::setValue ( float  q0,
float  q1,
float  q2,
float  q3 
)

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