Open Inventor Reference
SoMFRotation Class Reference

Multiple-value field containing any number of SbRotations. More...

#include <Inventor/fields/SoMFRotation.h>

Inheritance diagram for SoMFRotation:
SoMField SoField

List of all members.

Public Member Functions

void setValues (int start, int num, const float q[][4])
 Sets num values starting at index start to the values in newValues.
void set1Value (int index, float q0, float q1, float q2, float q3)
 Sets the index'th value to the given quaternion.
void set1Value (int index, const float q[4])
 Sets the index'th value to the given quaternion.
void set1Value (int index, const SbVec3f &axis, float angle)
 Sets the index'th value to the given axis/angle.
void setValue (float q0, float q1, float q2, float q3)
 Makes this field have exactly one value, given by the quaternion.
void setValue (const float q[4])
 Set to one value from 4 floats in array.
void setValue (const SbVec3f &axis, float angle)
 Makes this field have exactly one value, given by axis and angle.

Static Public Member Functions

static void initClass ()

Detailed Description

multiple-value field that contains any number of SbRotations.

SoMFRotations are written to file as one or more sets of four floating point values. Each set of 4 values is an axis of rotation followed by the amount of right-handed rotation about that axis, in radians.

When more than one value is present, all of the values are enclosed in square brackets and separated by commas; for example:

[ 1 0 0 0, -.707 -.707 0 1.57 ]
See Also
SbRotation

Definition at line 89 of file SoMFRotation.h.


Member Function Documentation

static void SoMFRotation::initClass ( ) [static]

Reimplemented from SoMField.

void SoMFRotation::set1Value ( int  index,
float  q0,
float  q1,
float  q2,
float  q3 
)
void SoMFRotation::set1Value ( int  index,
const SbVec3f axis,
float  angle 
)
void SoMFRotation::set1Value ( int  index,
const float  q[4] 
)
void SoMFRotation::setValue ( float  q0,
float  q1,
float  q2,
float  q3 
)
void SoMFRotation::setValue ( const SbVec3f axis,
float  angle 
)
void SoMFRotation::setValue ( const float  q[4])
void SoMFRotation::setValues ( int  start,
int  num,
const float  q[][4] 
)

The array will be automatically be made larger to accomodate the new values, if necessary.


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