SoSFRotation — field containing a rotation
Contents
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
Inherits From
SoField > SoSField > SoSFRotation
Methods
voidgetValue(constSbVec3f&axis,float&angle)const
Gets the value of the field as an axis/angle.
voidsetValue(floatq0,floatq1,floatq2,floatq3)setValue(floatq[4])
Set the field to the given quaternion.
voidsetValue(constSbVec3f&axis,floatangle)
Set the field to the rotation given by axis/angle.
staticSoTypegetClassTypeId()virtualvoidgetTypeId()const
Returns the type for this class or a particular object of this class.
constSbRotation&getValue()const
Returns this field's value.
constSbRotation&operator=(constSbRotation&newValue)voidsetValue(constSbRotation&newValue)
Sets this field to newValue.
intoperator==(constSoSFRotation&f)constintoperator!=(constSoSFRotation&f)const
Returns TRUE if f is of the same type and has the same value as this field.
Name
SoSFRotation — field containing a rotation
See Also
SbRotation,SoField,SoSField,SoMFRotationSoSFRotation(3IV)()
Synopsis
#include<Inventor/fields/SoSFRotation.h>
Methods from class SoSFRotation:
voidgetValue(constSbVec3f&axis,float&angle)constvoidsetValue(floatq0,floatq1,floatq2,floatq3)setValue(floatq[4])voidsetValue(constSbVec3f&axis,floatangle)staticSoTypegetClassTypeId()virtualvoidgetTypeId()constconstSbRotation&getValue()constconstSbRotation&operator=(constSbRotation&newValue)voidsetValue(constSbRotation&newValue)intoperator==(constSoSFRotation&f)constintoperator!=(constSoSFRotation&f)const
Methods from class SoField:
voidsetIgnored(SbBoolignore)SbBoolisIgnored()constSbBoolisDefault()constvirtualSbBoolisOfType(SoTypetype)constSbBoolset(constchar*valueString)voidget(SbString&valueString)voidtouch()SbBoolconnectFrom(SoField*fromField)SbBoolconnectFrom(SoEngineOutput*fromEngine)voiddisconnect()SbBoolisConnected()constSbBoolisConnectedFromField()constSbBoolgetConnectedField(SoField*&writingField)constSbBoolisConnectedFromEngine()constSbBoolgetConnectedEngine(SoEngineOutput*&engineOutput)constvoidenableConnection(SbBoolflag)SbBoolisConnectionEnabled()constintgetForwardConnections(SoFieldList&list)constSoFieldContainer*getContainer()const