man SoSFRotation () - field containing a rotation

NAME

SoSFRotation - field containing a rotation

INHERITS FROM

SoField > SoSField > SoSFRotation

SYNOPSIS

#include <Inventor/fields/SoSFRotation.h> Methods from class SoSFRotation: c } c } getValue(const SbVec3f &axis, float &angle) const

c } c } setValue(float q0, float q1, float q2, float q3)

c } c } setValue(float q[4])

c } c } setValue(const SbVec3f &axis, float angle)

c } c } getClassTypeId()

c } c } getTypeId() const

c } c } getValue() const

c } c } operator =(const SbRotation & newValue)

c } c } setValue(const SbRotation & newValue)

c } c } operator ==(const SoSFRotation &f) const

c } c } operator !=(const SoSFRotation &f) const Methods from class SoField: c } c } setIgnored(SbBool ignore)

c } c } isIgnored() const

c } c } isDefault() const

c } c } isOfType(SoType type) const

c } c } set(const char *valueString)

c } c } get(SbString &valueString)

c } c } touch()

c } c } connectFrom(SoField *fromField)

c } c } connectFrom(SoEngineOutput *fromEngine)

c } c } disconnect()

c } c } isConnected() const

c } c } isConnectedFromField() const

c } c } getConnectedField(SoField *&writingField) const

c } c } isConnectedFromEngine() const

c } c } getConnectedEngine(SoEngineOutput *&engineOutput) const

c } c } enableConnection(SbBool flag)

c } c } isConnectionEnabled() const

c } c } getForwardConnections(SoFieldList &list) const

c } c } getContainer() const

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

METHODS

c } c } getValue(const SbVec3f &axis, float &angle) const

Gets the value of the field as an axis/angle. c } c } setValue(float q0, float q1, float q2, float q3)

c } c } setValue(float q[4])

Set the field to the given quaternion. c } c } setValue(const SbVec3f &axis, float angle)

Set the field to the rotation given by axis/angle. c } c } getClassTypeId()

c } c } getTypeId() const

Returns the type for this class or a particular object of this class. c } c } getValue() const

Returns this field's value. c } c } operator =(const SbRotation & newValue)

c } c } setValue(const SbRotation & newValue)

Sets this field to newValue. c } c } operator ==(const SoSFRotation &f) const

c } c } operator !=(const SoSFRotation &f) const

Returns TRUE if f is of the same type and has the same value as this field.

SEE ALSO

SbRotation, SoField, SoSField, SoMFRotation