Debian Codegraph @

doc/man/man3/ivm/draggers/SoJackDragger.ivm

raw
1 NAME SoJackDragger SoJackDrag "" { jack-shaped object you rotate, translate, or scale by dragging with the mouse }
2
3 INCLUDE draggers/SoJackDragger.h
4
5
6 DESC { \cSoJackDragger\.
7 is a composite dragger in the shape of a jack from the children's game
8 jacks. Three lines along the x, y, and z axes form the central star
9 shape, which you can drag with the mouse to rotate the jack.
10 Dragging any of the small cubes mounted at the end of the axes will scale
11 the jack uniformly in all 3 dimensions.
12 At the core of the jack is an \cSoDragPointDragger\. for translating the
13 jack.
14 \p
15 Each of these shapes is a different dragger with the default geometry
16 changed. All of them are parts of the
17 jack dragger, which keeps them moving together.
18 The star is an \cSoRotateSphericalDragger\., and dragging it updates the
19 \vrotation\. field of the jack dragger. The small cubes are an
20 \cSoScaleUniformDragger\., tied to the \vscaleFactor\. field.
21 The position of the \cSoDragPointDragger\. is given by the \vtranslation\.
22 field. As with all draggers, if you change the fields the dragger will
23 move to match the new settings.
24 \p
25 \eRemember:\. This is \enot\. an \cSoTransform!\..
26 If you want to move other objects with this dragger, you can either:
27 \p
28 [a] Use an \cSoJackManip\., which is subclassed from \cSoTransform\..
29 It creates one of
30 these draggers and uses it as the interface to change its fields.
31 (see the \cSoJackManip\. man page).
32 \p
33 [b] Use field-to-field connections to connect the fields of this dragger to
34 those of any \cSoTransformation\. node.
35 \p
36 You can change the parts in any instance of this dragger using
37 \m\+setPart()\.\-SoDraggerSetPart()\.\..
38 The default part geometries are defined as resources for this
39 \cSoJackDragger\. class. They are detailed in the
40 Dragger Resources section of the online reference page for this class.
41 You can make your program use different default resources for the parts
42 by copying the file
43 \v/usr/share/data/draggerDefaults/jackDragger.iv\.
44 into your own directory, editing the file, and then
45 setting the environment variable \vSO_DRAGGER_DIR\. to be a path to that directory.
46 }
47
48 METHOD "" SoJackDragger() {
49 Constructor.
50 }
51
52 METHOD getClassNkitCat static
53 const SoNodekitCatalog *getClassNodekitCatalog() const
54 { Returns an \cSoNodekitCatalog\. for this class }
55
56 METHOD "" static SoType getClassTypeId() {
57 Returns type identifier for this class.
58 }
59
60
61 FIELD rotation { Orientation of the dragger. }
62 FIELD scaleFactor { Scale of the dragger. }
63 FIELD translation { Position of the dragger. }
64
65 DRAGGER_RESOURCE {
66 jackRotatorRotator,
67 rotator.rotator,
68 "The 'star' of the jack. Set of 3 white axes (lines)",
69 "Picking star begins rotational dragging of the jackDragger."
70 }
71
72 DRAGGER_RESOURCE {
73 jackRotatorRotatorActive,
74 rotator.rotatorActive,
75 "Yellow version of the rotator.rotator part.",
76 "Displayed while the jackDragger is being rotated"
77 }
78
79 DRAGGER_RESOURCE {
80 jackRotatorFeedback,
81 rotator.feedback,
82 "Empty separator",
83 "Removes any feedback geometry created in the constructor of the
84 \cSoRotateSphericalDragger\.."
85 }
86
87 DRAGGER_RESOURCE {
88 jackRotatorFeedbackActive,
89 rotator.feedbackActive,
90 "Empty separator",
91 "Removes any feedbackActive geometry created in the constructor of the
92 \cSoRotateSphericalDragger\.."
93 }
94
95 DRAGGER_RESOURCE {
96 jackScalerScaler,
97 scaler.scaler,
98 "Six small white cubes, the tips of the rotator star",
99 "Picking this initiates uniform 3D scaling of the
100 dragger."
101 }
102
103 DRAGGER_RESOURCE {
104 jackScalerScalerActive,
105 scaler.scalerActive,
106 "Yellow version of the scaler.scaler resource.",
107 "Displayed while the dragger is being scaled."
108 }
109
110 DRAGGER_RESOURCE {
111 jackScalerFeedback,
112 scaler.feedback,
113 "Empty separator",
114 "Removes any feedback geometry created in the constructor of the
115 \cSoScaleUniformDragger\.."
116 }
117
118 DRAGGER_RESOURCE {
119 jackScalerFeedbackActive,
120 scaler.feedbackActive,
121 "Empty separator",
122 "Removes any feedbackActive geometry created in the constructor of the
123 \cSoScaleUniformDragger\.."
124 }
125
126 DRAGGER_RESOURCE {
127 jackTranslatorLineTranslator,
128 translator.xTranslator.translator
129 translator.yTranslator.translator
130 translator.zTranslator.translator,
131 "Skinny white cylinder aligned with axies of motion",
132 "Picking these parts initiates dragging
133 in the x, y, and z linear draggers respectively."
134 }
135
136 DRAGGER_RESOURCE {
137 jackTranslatorLineTranslatorActive,
138 translator.xTranslator.translatorActive
139 translator.yTranslator.translatorActive
140 translator.zTranslator.translatorActive,
141 "Skinny yellow cylinder aligned with axies of motion",
142 "Shown during linear dragging in the x, y,
143 and z directions respectively."
144 }
145
146 DRAGGER_RESOURCE {
147 jackTranslatorPlaneTranslator,
148 translator.yzTranslator.translator
149 translator.xzTranslator.translator
150 translator.xyTranslator.translator,
151 "White flattened cube, drawn in wireframe",
152 "Picking these parts initiates dragging
153 by the yz, xz, and xy planar draggers
154 respectively."
155 }
156
157 DRAGGER_RESOURCE {
158 jackTranslatorPlaneTranslatorActive,
159 translator.yzTranslator.translatorActive
160 translator.xzTranslator.translatorActive
161 translator.xyTranslator.translatorActive,
162 "Yellow flattened cube, drawn in wireframe",
163 "Shown during planar dragging in the yz, xz,
164 and xy planes respectively."
165 }
166
167 DRAGGER_RESOURCE {
168 jackTranslatorXFeedback,
169 xFeedback,
170 "Double-headed purple arrow",
171 "Feedback for motion in x direction"
172 }
173
174 DRAGGER_RESOURCE {
175 jackTranslatorYFeedback,
176 yFeedback,
177 "Double-headed purple arrow",
178 "Feedback for motion in y direction"
179 }
180
181 DRAGGER_RESOURCE {
182 jackTranslatorZFeedback,
183 zFeedback,
184 "Double-headed purple arrow",
185 "Feedback for motion in z direction"
186 }
187
188 DRAGGER_RESOURCE {
189 jackTranslatorYZFeedback,
190 yzFeedback,
191 "Semi-transparent green square in yz plane",
192 "Feedback for motion in yz plane"
193 }
194
195 DRAGGER_RESOURCE {
196 jackTranslatorXZFeedback,
197 xzFeedback,
198 "Semi-transparent green square in yz plane",
199 "Feedback for motion in xz plane"
200 }
201
202 DRAGGER_RESOURCE {
203 jackTranslatorXYFeedback,
204 xyFeedback,
205 "Semi-transparent green square in yz plane",
206 "Feedback for motion in xy plane"
207 }
208
209 ALSO {
210 SoInteractionKit,
211 SoDragger,
212 SoCenterballDragger,
213 SoDirectionalLightDragger,
214 SoDragPointDragger,
215 SoHandleBoxDragger,
216 SoPointLightDragger,
217 SoRotateCylindricalDragger,
218 SoRotateDiscDragger,
219 SoRotateSphericalDragger,
220 SoScale1Dragger,
221 SoScale2Dragger,
222 SoScale2UniformDragger,
223 SoScaleUniformDragger,
224 SoSpotLightDragger,
225 SoTabBoxDragger,
226 SoTabPlaneDragger,
227 SoTrackballDragger,
228 SoTransformBoxDragger,
229 SoTransformerDragger,
230 SoTranslate1Dragger,
231 SoTranslate2Dragger
232 }
233