1SoSFRotation(3IV)()                                        SoSFRotation(3IV)()
2
3
4

NAME

6       SoSFRotation — field containing a rotation
7

INHERITS FROM

9       SoField > SoSField > SoSFRotation
10

SYNOPSIS

12       #include <Inventor/fields/SoSFRotation.h>
13
14          Methods from class SoSFRotation:
15
16     void                getValue(const SbVec3f &axis, float &angle) const
17     void                setValue(float q0, float q1, float q2, float q3)
18                         setValue(float q[4])
19     void                setValue(const SbVec3f &axis, float angle)
20     static SoType       getClassTypeId()
21     virtual void        getTypeId() const
22     const SbRotation &  getValue() const
23     const SbRotation &  operator =(const SbRotation & newValue)
24     void                setValue(const SbRotation & newValue)
25     int                 operator ==(const SoSFRotation &f) const
26     int                 operator !=(const SoSFRotation &f) const
27
28          Methods from class SoField:
29
30     void                setIgnored(SbBool ignore)
31     SbBool              isIgnored() const
32     SbBool              isDefault() const
33     virtual SbBool      isOfType(SoType type) const
34     SbBool              set(const char *valueString)
35     void                get(SbString &valueString)
36     void                touch()
37     SbBool              connectFrom(SoField *fromField)
38     SbBool              connectFrom(SoEngineOutput *fromEngine)
39     void                disconnect()
40     SbBool              isConnected() const
41     SbBool              isConnectedFromField() const
42     SbBool              getConnectedField(SoField *&writingField) const
43     SbBool              isConnectedFromEngine() const
44     SbBool              getConnectedEngine(SoEngineOutput     *&engineOutput)
45                              const
46     void                enableConnection(SbBool flag)
47     SbBool              isConnectionEnabled() const
48     int                 getForwardConnections(SoFieldList &list) const
49     SoFieldContainer *  getContainer() const
50
51

DESCRIPTION

53       A field containing a single SbRotation (an arbitrary rotation).
54
55       SoSFRotations are written to file as four floating point  values  sepa‐
56       rated  by  whitespace.  The 4 values represent an axis of rotation fol‐
57       lowed by the amount of right-handed rotation about that axis, in  radi‐
58       ans. For example, a 180 degree rotation about the Y axis is:
59
60          0 1 0  3.14159265
61
62
63

METHODS

65     void                getValue(const SbVec3f &axis, float &angle) const
66          Gets the value of the field as an axis/angle.
67
68     void                setValue(float q0, float q1, float q2, float q3)
69                         setValue(float q[4])
70          Set the field to the given quaternion.
71
72     void                setValue(const SbVec3f &axis, float angle)
73          Set the field to the rotation given by axis/angle.
74
75     static SoType       getClassTypeId()
76     virtual void        getTypeId() const
77          Returns  the  type  for  this  class  or a particular object of this
78          class.
79
80     const SbRotation &  getValue() const
81          Returns this field's value.
82
83     const SbRotation &  operator =(const SbRotation & newValue)
84     void                setValue(const SbRotation & newValue)
85          Sets this field to newValue.
86
87     int                 operator ==(const SoSFRotation &f) const
88     int                 operator !=(const SoSFRotation &f) const
89          Returns TRUE if f is of the same type and has the same value as this
90          field.
91
92

SEE ALSO

94       SbRotation, SoField, SoSField, SoMFRotation
95
96
97
98
99                                                           SoSFRotation(3IV)()
Impressum