Debian Codegraph @

doc/man/man3/ivm/draggers/SoDragPointDragger.ivm

raw
1 NAME SoDragPointDragger SoDragPtDrag "" { object you can translate in 3D by dragging with the mouse }
2
3 INCLUDE draggers/SoDragPointDragger.h
4
5 DESC { \cSoDragPointDragger\.
6 is a compound dragger that translates
7 in all three dimensions when dragged with the mouse.
8 \p
9 It is made up of six smaller draggers, which it displays two at a time.
10 Each pair has one \eplane\. dragger and one \eline\. dragger. The line dragger
11 is oriented perpendicular to the plane, so
12 together the \eplane/line pair\. lets you move through all of 3-space.
13 \p
14 DragPoint has a total of three such pairs, oriented along the x, y, and z
15 axes of its local space. You can cycle through the three pairs by hitting
16 the \k<Control>\. key with the cursor over the dragger. (You need not press the
17 mouse button.)
18 \p
19 The line draggers are \cSoTranslate1Draggers\. and
20 the plane draggers are \cSoTranslate2Draggers\.. So you can use the
21 \k<Shift>\. key to constrain the motion of a plane dragger along one of the
22 two axes within the plane, as described in the \cSoTranslate2Draggers\. man
23 page.
24 \p
25 DragPoint adds extra feedback parts to provide a more intuitive idea of
26 where you are placed in three-space. There are three \efeedback planes\.
27 and three \efeedback axes\.; each corresponds to one of the plane or
28 line draggers, but spans a much greater distance. When you drag along a
29 line, that line's larger feedback axis is displayed, and remains
30 anchored in space while the dragger slides along it. This helps
31 establish the motion of the dragger relative to the rest of the scene.
32 Similarly, when you drag within a plane, the larger (but transparent)
33 feedback plane establishes a ground plane for you to move upon. The
34 location of the dragger within the plane is pinpointed by two
35 intersecting axes that always cross below the cursor and extend to the
36 edges of the plane. When you move dragPoint to the edge of the feedback
37 plane (or line), the feedback will jump to a new location in that
38 direction, so that the dragger never leaves the feedback behind.
39 \p
40 The primary directions of motion are given by the local space of the dragger.
41 Transforms earlier in the scene will affect the dragger, its children,
42 and the orientation of its directions of motion.
43 \p
44 This node has a \vtranslation\. field
45 which always reflects its position in local space.
46 Setting the field moves the dragger to that point.
47 You can also connect fields of other nodes or engines from
48 this one to make them follow the dragger's motion.
49 \p
50 Although the child draggers each have their own resources defining
51 default part geometries, the dragPoint dragger overrides these
52 with a new set of resources. It also defines resources for the feedback
53 parts that it adds. These are detailed in the Dragger Resources
54 section of the online reference page for this class.
55 You can change the parts in any instance of this dragger using
56 \m\+setPart()\.\-SoDraggerSetPart()\.\..
57 \p
58 You can make your program use different default resources for the parts
59 by copying the file
60 \v/usr/share/data/draggerDefaults/dragPointDragger.iv\.
61 into your own directory, editing the file, and then
62 setting the environment variable \vSO_DRAGGER_DIR\. to be a path to that directory.
63 }
64
65
66 METHOD "" SoDragPointDragger() {
67 Constructor.
68 }
69
70 FIELD translation { Position of the dragger. }
71
72 METHOD "" void setJumpLimit(float limit) {}
73 METHOD "" float getJumpLimit() const {
74 Set and get the point at which the feedback axes will jump to a new
75 position. For example, if set to .1 (the default), the
76 feedback axes will jump when the dragger gets within
77 10% of the end of the axis.
78 }
79
80 METHOD "" void showNextDraggerSet() {
81 The dragPoint dragger contains three pairs of draggers, each containing
82 a plane dragger and a line dragger (see the Description above).
83 The dragger starts with the (y-line/xz-plane) pair displayed.
84 Calling this method will cycle next through the (z-line/xy-plane), then
85 the (x-line/yz-plane).
86 }
87
88 METHOD getClassNkitCat static
89 const SoNodekitCatalog *getClassNodekitCatalog() const
90 { Returns an \cSoNodekitCatalog\. for this class }
91
92 METHOD "" static SoType getClassTypeId() {
93 Returns type identifier for this class.
94 }
95
96
97 DRAGGER_RESOURCE {
98 dragPointXTranslatorTranslator,
99 xTranslator.translator,
100 "white cylinder with axis aligned in X direction",
101 "picking this initiates linear motion in X direction"
102 }
103
104 DRAGGER_RESOURCE {
105 dragPointXTranslatorTranslatorActive,
106 xTranslator.translatorActive,
107 "yellow cylinder with axis aligned in X direction",
108 "shown when moving in X direction"
109 }
110
111 DRAGGER_RESOURCE {
112 dragPointYTranslatorTranslator,
113 yTranslator.translator,
114 "white cylinder with axis aligned in Y direction",
115 "picking this initiates linear motion in Y direction"
116 }
117
118 DRAGGER_RESOURCE {
119 dragPointYTranslatorTranslatorActive,
120 yTranslator.translatorActive,
121 "yellow cylinder with axis aligned in Y direction",
122 "shown when moving in Y direction"
123 }
124
125 DRAGGER_RESOURCE {
126 dragPointZTranslatorTranslator,
127 zTranslator.translator,
128 "white cylinder with axis aligned in Z direction",
129 "picking this initiates linear motion in Z direction"
130 }
131
132 DRAGGER_RESOURCE {
133 dragPointZTranslatorTranslatorActive,
134 zTranslator.translatorActive,
135 "yellow cylinder with axis aligned in Z direction",
136 "shown when moving in Z direction"
137 }
138
139 DRAGGER_RESOURCE {
140 dragPointYZTranslatorTranslator,
141 yzTranslator.translator,
142 "white flattened cube within the yz plane of motion",
143 "picking this initiates planar motion in yz plane"
144 }
145
146 DRAGGER_RESOURCE {
147 dragPointYZTranslatorTranslatorActive,
148 yzTranslator.translatorActive,
149 "yellow flattened cube within the yz plane of motion",
150 "shown when moving in yz plane"
151 }
152
153 DRAGGER_RESOURCE {
154 dragPointXZTranslatorTranslator,
155 xzTranslator.translator,
156 "white flattened cube within the xz plane of motion",
157 "picking this initiates planar motion in xz plane"
158 }
159
160 DRAGGER_RESOURCE {
161 dragPointXZTranslatorTranslatorActive,
162 xzTranslator.translatorActive,
163 "yellow flattened cube within the xz plane of motion",
164 "shown when moving in xz plane"
165 }
166
167 DRAGGER_RESOURCE {
168 dragPointXYTranslatorTranslator,
169 xyTranslator.translator,
170 "white flattened cube within the xy plane of motion",
171 "picking this initiates planar motion in xy plane"
172 }
173
174 DRAGGER_RESOURCE {
175 dragPointXYTranslatorTranslatorActive,
176 xyTranslator.translatorActive,
177 "yellow flattened cube within the xy plane of motion",
178 "shown when moving in xy plane"
179 }
180
181 DRAGGER_RESOURCE {
182 dragPointXFeedback,
183 xFeedback,
184 "douple-headed purple arrow",
185 "feedback for motion in x direction"
186 }
187
188 DRAGGER_RESOURCE {
189 dragPointYFeedback,
190 yFeedback,
191 "douple-headed purple arrow",
192 "feedback for motion in y direction"
193 }
194
195 DRAGGER_RESOURCE {
196 dragPointZFeedback,
197 zFeedback,
198 "douple-headed purple arrow",
199 "feedback for motion in z direction"
200 }
201
202 DRAGGER_RESOURCE {
203 dragPointYZFeedback,
204 yzFeedback,
205 "semi-transparent green square in yz plane",
206 "feedback for motion in yz plane"
207 }
208
209 DRAGGER_RESOURCE {
210 dragPointXZFeedback,
211 xzFeedback,
212 "semi-transparent green square in yz plane",
213 "feedback for motion in xz plane"
214 }
215
216 DRAGGER_RESOURCE {
217 dragPointXYFeedback,
218 xyFeedback,
219 "semi-transparent green square in yz plane",
220 "feedback for motion in xy plane"
221 }
222
223 ALSO {
224 SoInteractionKit,
225 SoDragger,
226 SoCenterballDragger,
227 SoDragPointDragger,
228 SoHandleBoxDragger,
229 SoJackDragger,
230 SoPointLightDragger,
231 SoRotateCylindricalDragger,
232 SoRotateDiscDragger,
233 SoRotateSphericalDragger,
234 SoScale1Dragger,
235 SoScale2Dragger,
236 SoScale2UniformDragger,
237 SoScaleUniformDragger,
238 SoSpotLightDragger,
239 SoTabBoxDragger,
240 SoTabPlaneDragger,
241 SoTrackballDragger,
242 SoTransformBoxDragger,
243 SoTransformerDragger,
244 SoTranslate1Dragger,
245 SoTranslate2Dragger
246 }
247