1SoPendulum(3IV)()                                            SoPendulum(3IV)()
2
3
4

NAME

6       SoPendulum — animated oscillating rotation node
7

INHERITS FROM

9       SoBase  >  SoFieldContainer  > SoNode > SoTransformation > SoRotation >
10       SoPendulum
11

SYNOPSIS

13       #include <Inventor/nodes/SoPendulum.h>
14
15          Fields from class SoPendulum:
16
17     SoSFRotation        rotation0
18     SoSFRotation        rotation1
19     SoSFFloat           speed
20     SoSFBool            on
21
22          Fields from class SoRotation:
23
24     SoSFRotation        rotation
25
26          Methods from class SoPendulum:
27
28                         SoPendulum()
29     static SoType       getClassTypeId()
30
31          Methods from class SoNode:
32
33     void                setOverride(SbBool state)
34     SbBool              isOverride() const
35     SoNode *            copy(SbBool copyConnections = FALSE) const
36     virtual SbBool      affectsState() const
37     static SoNode *     getByName(const SbName &name)
38     static int          getByName(const SbName &name, SoNodeList &list)
39
40          Methods from class SoFieldContainer:
41
42     void                setToDefaults()
43     SbBool              hasDefaultValues() const
44     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
45     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
46                              copyConnections = FALSE)
47     SbBool              set(const char *fieldDataString)
48     void                get(SbString &fieldDataString)
49     virtual int         getFields(SoFieldList &resultList) const
50     virtual SoField *   getField(const SbName &fieldName) const
51     SbBool              getFieldName(const SoField *field, SbName &fieldName)
52                              const
53     SbBool              isNotifyEnabled() const
54     SbBool              enableNotify(SbBool flag)
55
56          Methods from class SoBase:
57
58     void                ref()
59     void                unref() const
60     void                unrefNoDelete() const
61     void                touch()
62     virtual SoType      getTypeId() const
63     SbBool              isOfType(SoType type) const
64     virtual void        setName(const SbName &name)
65     virtual SbName      getName() const
66
67

DESCRIPTION

69       The SoPendulum class is derived from SoRotation, so it applies a  rota‐
70       tion  to  the  current  transformation.  Using engines connected to the
71       realTime global field, the rotation value is animated over time between
72       two  fixed  rotations, achieving the effect of a swinging pendulum. The
73       period of the swing can be adjusted by changing the  speed  field.  The
74       current rotation at any time is available in the rotation field, inher‐
75       ited from SoRotation
76

FIELDS

78     SoSFRotation        rotation0
79     SoSFRotation        rotation1
80          These define the two fixed rotations that are interpolated to create
81          the pendular motion.
82
83     SoSFFloat           speed
84          Defines the speed of the pendulum, in cycles per second.
85
86     SoSFBool            on
87          Allows applications to enable or disable the motion easily.
88
89

METHODS

91                         SoPendulum()
92          Creates a pendulum node with default settings.
93
94     static SoType       getClassTypeId()
95          Returns type identifier for this class.
96
97

ACTION BEHAVIOR

99       SoGLRenderAction,  SoCallbackAction, SoGetBoundingBoxAction, SoRayPick‐
100       Action
101          Concatenates interpolated rotation value with the current  transfor‐
102          mation matrix.
103
104     SoGetMatrixAction
105          Returns  transformation  matrix  specified by the interpolated rota‐
106          tion.
107
108

FILE FORMAT/DEFAULTS

110       Pendulum {
111          rotation   0 0 1  0
112          rotation0  0 0 1  0
113          rotation1  0 0 1  0
114          speed      1
115          on         TRUE
116     }
117

SEE ALSO

119       SoRotor, SoShuttle
120
121
122
123
124                                                             SoPendulum(3IV)()
Impressum