File: SoShuttle.ivm

package info (click to toggle)
inventor 2.1.5-10-14
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 32,892 kB
  • ctags: 21,729
  • sloc: ansic: 33,867; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 76; csh: 35; sed: 11
file content (43 lines) | stat: -rw-r--r-- 1,334 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
NAME SoShuttle SoShuttle "" { animated oscillating translation node }

INCLUDE nodes/SoShuttle.h

DESC {
The \cSoShuttle\. class is derived from \cSoTranslation\., so it
applies a translation to the current transformation.  Using engines
connected to the \vrealTime\. global field, the translation value is
animated over time between two fixed translations, achieving a
shuttling effect. The period of the motion can be adjusted by changing
the \vspeed\. field. The current translation at any time is available
in the \vtranslation\. field, inherited from \cSoTranslation\.
}

FIELD translation0 {}
FIELD translation1 {
These define the two fixed translations that are interpolated to
create the shuttling motion.
}

FIELD speed { Defines the speed of the shuttle, in cycles per second. }

FIELD on { Allows applications to enable or disable the motion easily. }

METHOD "" SoShuttle() {
Creates a shuttle node with default settings.
}

METHOD "" static SoType getClassTypeId() {
Returns type identifier for this class.
}

ACTION SoGLRenderAction, SoCallbackAction,
       SoGetBoundingBoxAction, SoRayPickAction {
Concatenates interpolated translation value with the current
transformation matrix.
}

ACTION SoGetMatrixAction {
Returns transformation matrix specified by the interpolated translation.
}

ALSO { SoPendulum, SoRotor }