Debian Codegraph @

doc/man/man3/ivm/nodes/SoPendulum.ivm

raw
1 NAME SoPendulum SoPendulum "" { animated oscillating rotation node }
2
3 INCLUDE nodes/SoPendulum.h
4
5 DESC {
6 The \cSoPendulum\. class is derived from \cSoRotation\., so it applies
7 a rotation to the current transformation. Using engines connected to
8 the \vrealTime\. global field, the rotation value is animated over
9 time between two fixed rotations, achieving the effect of a swinging
10 pendulum. The period of the swing can be adjusted by changing the
11 \vspeed\. field. The current rotation at any time is available in
12 the \vrotation\. field, inherited from \cSoRotation\.
13 }
14
15 FIELD rotation0 {}
16 FIELD rotation1 {
17 These define the two fixed rotations that are interpolated to create
18 the pendular motion.
19 }
20
21 FIELD speed { Defines the speed of the pendulum, in cycles per second. }
22
23 FIELD on { Allows applications to enable or disable the motion easily. }
24
25 METHOD "" SoPendulum() {
26 Creates a pendulum node with default settings.
27 }
28
29 METHOD "" static SoType getClassTypeId() {
30 Returns type identifier for this class.
31 }
32
33 ACTION SoGLRenderAction, SoCallbackAction,
34 SoGetBoundingBoxAction, SoRayPickAction {
35 Concatenates interpolated rotation value with the current
36 transformation matrix.
37 }
38
39 ACTION SoGetMatrixAction {
40 Returns transformation matrix specified by the interpolated rotation.
41 }
42
43 ALSO { SoRotor, SoShuttle }