55#ifndef  _SO_SF_ROTATION_ 
   56#define  _SO_SF_ROTATION_ 
   95        { 
evaluate(); value.getValue(axis, angle); }
 
 
   98    void        setValue(
float q0, 
float q1, 
float q2, 
float q3);
 
 
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
 
#define SO_SFIELD_HEADER(className, valueType, valueRef)
This macro is all that is needed for most single-value field classes.
 
Class for representing a rotation.
 
void evaluate() const
Evaluates the field from whatever it's connected to.
 
Field containing a rotation.
 
void setValue(const float q[4])
Set value from array of 4 floats defining rotation quaternion.
 
void setValue(float q0, float q1, float q2, float q3)
Set the field to the given quaternion.
 
void setValue(const SbVec3f &axis, float angle)
Set the field to the rotation given by axis/angle.
 
void getValue(SbVec3f &axis, float &angle) const
Some additional convenience functions: