Debian Codegraph @

doc/man/man3/ivm/draggers/SoRotateDiscDragger.ivm

raw
1 NAME SoRotateDiscDragger SoRotDiscDrag "" { object you can rotate like a knob by dragging With the mouse }
2
3 INCLUDE draggers/SoRotateDiscDragger.h
4
5 DESC { \cSoRotateDiscDragger\.
6 is a simple dragger that rotates about the z axis of its local space.
7 The feel of the rotation is as if you were spinning a record on a turntable
8 or rotating the volume knob of a radio.
9 The local space is determined by its location in the scene graph.
10 Transformation nodes placed before it will
11 affect both the dragger and the direction of motion.
12 \p
13 This node has a \vrotation\. field
14 which always reflects
15 its orientation in local space.
16 If you set the field, the dragger will rotate accordingly.
17 You can also connect fields of other nodes or engines from
18 this one
19 to make them follow the dragger's rotation.
20 \p
21 This dragger contains four parts, \erotator\., \erotatorActive\.,
22 \efeedback\., and \efeedbackActive\..
23 \p
24 Each of these is set by default from a resource described in the Dragger
25 Resources section of the online reference page for this class. You can
26 change the parts in any instance of this dragger using
27 \m\+setPart()\.\-SoDraggerSetPart()\.\..
28 \p
29 You can make your program use different default resources for the parts
30 by copying the file
31 \v/usr/share/data/draggerDefaults/rotateDiscDragger.iv\. into your own
32 directory, editing the file, and then setting the environment variable
33 \vSO_DRAGGER_DIR\. to be a path to that directory.
34 }
35
36 METHOD "" SoRotateDiscDragger() {
37 Constructor.
38 }
39
40 METHOD getClassNkitCat static
41 const SoNodekitCatalog *getClassNodekitCatalog() const
42 { Returns an \cSoNodekitCatalog\. for this class }
43
44 METHOD "" static SoType getClassTypeId() {
45 Returns type identifier for this class.
46 }
47
48 FIELD rotation { Orientation of the dragger. }
49
50 DRAGGER_RESOURCE {
51 rotateDiscRotator,
52 rotator,
53 "white cylinder (with axis along z-direction) made of lines",
54 "picking this initiates rotation"
55 }
56
57 DRAGGER_RESOURCE {
58 rotateDiscRotatorActive,
59 rotatorActive,
60 "yellow version of rotator, with added yellow cube",
61 "displayed while in motion instead of the rotator"
62 }
63
64 DRAGGER_RESOURCE {
65 rotateDiscFeedback,
66 feedback,
67 "thin purple line along local z-axis",
68 "shows center of rotation when not moving"
69 }
70
71 DRAGGER_RESOURCE {
72 rotateDiscFeedbackActive,
73 feedbackActive,
74 "thin, slightly brighter purple line along local z-axis",
75 "shows center of rotation when moving"
76 }
77
78 ALSO {
79 SoInteractionKit,
80 SoDragger,
81 SoCenterballDragger,
82 SoDirectionalLightDragger,
83 SoDragPointDragger,
84 SoHandleBoxDragger,
85 SoJackDragger,
86 SoPointLightDragger,
87 SoRotateCylindricalDragger,
88 SoRotateSphericalDragger,
89 SoScale1Dragger,
90 SoScale2Dragger,
91 SoScale2UniformDragger,
92 SoScaleUniformDragger,
93 SoSpotLightDragger,
94 SoTabBoxDragger,
95 SoTabPlaneDragger,
96 SoTrackballDragger,
97 SoTransformBoxDragger,
98 SoTransformerDragger,
99 SoTranslate1Dragger,
100 SoTranslate2Dragger
101 }
102