Debian Codegraph @

doc/man/man3/ivm/draggers/SoCenterballDragger.ivm

raw
1 NAME SoCenterballDragger SoCballDrag "" { striped ball you rotate and re-center by dragging with the mouse }
2
3 INCLUDE draggers/SoCenterballDragger.h
4
5 DESC { \cSoCenterballDragger\.
6 is a composite dragger. Its shape is a sphere defined by three intersecting
7 circles. Where the circles intersect (at the ends of the x, y and z axes)
8 there are sets of small green crosshairs.
9 Dragging a pair of crosshairs translates the entire centerball within the plane
10 of the crosshairs.
11 The interface of the sphere and circles is just like \cSoTrackballDragger\..
12 Dragging a circle rotates about a constrained axis and dragging the
13 areas between them rotates the sphere freely about the center.
14 An invisible but pickable sphere initiates the free-rotation dragging.
15 \p
16 When you drag the crosshairs, the
17 \vcenter\. field is updated; there is no \vtranslation\. field.
18 Dragging other parts of the centerball updates the
19 \vrotation\. field. As with all draggers, if you change the
20 fields the dragger moves in response.
21 \p
22 The draggers used for the crosshair parts are \cSoTranslate2Draggers\.,
23 so pressing the \k<Shift>\. key allows you to constrain motion to slide along
24 either the local \vx axis\. or \vy axis\. of that crosshair.. The direction is determined by your initial
25 mouse gesture after pressing the key. Releasing the key removes the constraint.
26 \p
27 \eRemember:\. This is \enot\. an \cSoTransform\.!
28 If you want to move other objects with this dragger, you can either:
29 \p
30 [a] Use an \cSoCenterballManip\., which is subclassed from \cSoTransform\..
31 The manipulator creates one of
32 these draggers and uses it as the interface to edit the manipulator's fields.
33 (See the \cSoCenterballManip\. man page.)
34 \p
35 [b] Use field-to-field connections to connect the fields of this dragger to
36 those of any \cSoTransformation\. node.
37 \p
38 You can change the parts in any instance of this dragger using
39 \m\+setPart()\.\-SoDraggerSetPart()\.\..
40 The default part geometries are defined as resources for this
41 \cSoCenterballDragger\. class. They are detailed in the
42 Dragger Resources section of the online reference page for this
43 class.
44 You can make your program use different default resources for the parts
45 by copying the file
46 \v/usr/share/data/draggerDefaults/centerballDragger.iv\.
47 into your own directory, editing the file, and then
48 setting the environment variable \vSO_DRAGGER_DIR\. to be a path to that directory.
49 }
50
51 FIELD rotation { Orientation of the centerball dragger. }
52 FIELD center { Center of rotation and scale of the centerball dragger. }
53
54 METHOD "" SoCenterballDragger() {
55 Constructor.
56 }
57
58 METHOD getClassNkitCat static
59 const SoNodekitCatalog *getClassNodekitCatalog() const
60 { Returns an \cSoNodekitCatalog\. for this class. }
61
62 METHOD "" static SoType getClassTypeId() {
63 Returns type identifier for this class.
64 }
65
66 DRAGGER_RESOURCE {
67 centerballRotator,
68 rotator.rotator,
69 "Invisible but pickable sphere",
70 "When picked, initiates free rotation about the center point.
71 Slightly smaller radius than the
72 stripes, so you must pick between the stripes to use it."
73 }
74
75 DRAGGER_RESOURCE {
76 centerballRotatorActive,
77 rotator.rotatorActive,
78 "Invisible sphere",
79 "Displayed during unconstrained 3D rotation instead of centerballRotator."
80 }
81
82 DRAGGER_RESOURCE {
83 centerballStripe,
84 XRotator.rotator
85 YRotator.rotator
86 ZRotator.rotator,
87 "White circle aligned with rotation axis.",
88 "When picked, initiates constrained rotation.
89 Each rotator rotates locally about its Y axis. The centerball contains
90 private transform parts that orient the draggers along three different
91 axes."
92 }
93
94 DRAGGER_RESOURCE {
95 centerballStripeActive,
96 XRotator.rotatorActive
97 YRotator.rotatorActive
98 ZRotator.rotatorActive,
99 "White circle aligned with the rotation axis.",
100 "Displayed during constrained rotation instead of the rotator part.
101 The centerball orients
102 the draggers along three different axes."
103 }
104
105 DRAGGER_RESOURCE {
106 centerballCenterChanger,
107 XCenterChanger.translator
108 YCenterChanger.translator
109 ZCenterChanger.translator,
110 "Two sets of small green crosshairs, one located at each
111 intersection of axis and ball.",
112 "When picked, initiates 2D translation of ball through space.
113 Edits the \vcenter\. field,
114 which becomes center for subsequent rotations.
115 Each translator works locally in its X-Y plane. The centerball contains
116 private transform parts that place the draggers along three different
117 axes."
118 }
119
120 DRAGGER_RESOURCE {
121 centerballCenterChangerActive,
122 XCenterChanger.translatorActive
123 YCenterChanger.translatorActive
124 ZCenterChanger.translatorActive,
125 "Yellow version of centerballCenterChanger.",
126 "Displayed during 2D translation instead of regular translator part.
127 The centerball places
128 the draggers along three different axes."
129 }
130
131 DRAGGER_RESOURCE {
132 centerballCenterXAxisFeedback,
133 XCenterChanger.xAxisFeedback
134 YCenterChanger.xAxisFeedback
135 ZCenterChanger.xAxisFeedback,
136 "Double-headed purple arrows, one located at each
137 intersection of axis and ball. Located atop X axis of crosshair.",
138 "Only shown if dragger is moving and the axis is a
139 permitted direction of motion.
140 When pressing <shift>, motion is constrained, and this is
141 displayed only if the primary motion is in the X direction of the
142 child dragger's local space.
143 The centerball places the draggers along three different axes; so
144 not all of these parts aligns with the X axis in centerball space."
145 }
146
147 DRAGGER_RESOURCE {
148 centerballCenterYAxisFeedback,
149 XCenterChanger.yAxisFeedback
150 YCenterChanger.yAxisFeedback
151 ZCenterChanger.yAxisFeedback,
152 "Double-headed purple arrows, one located at each
153 intersection of axis and ball. Located atop Y axis of crosshair.",
154 "Only shown if dragger is moving and the axis is a
155 permitted direction of motion.
156 When pressing <shift>, motion is constrained, and this is
157 displayed only if the primary motion is in the Y direction of the
158 child dragger's local space.
159 The centerball places the draggers along three different axes; so
160 not all of these parts aligns with the Y axis in centerball space."
161 }
162
163 DRAGGER_RESOURCE {
164 centerballXAxis,
165 XAxis,
166 "Thin yellow line connecting left and right crosshairs.",
167 "Feedback shown alone during rotation about X axis; displayed with
168 centerballYAxis and centerballZAxis while center is dragged."
169 }
170
171 DRAGGER_RESOURCE {
172 centerballYAxis,
173 YAxis,
174 "Thin yellow line connecting lower and upper crosshairs.",
175 "Feedback shown alone during rotation about Y axis; displayed with
176 centerballXAxis and centerballZAxis while center is dragged."
177 }
178
179 DRAGGER_RESOURCE {
180 centerballZAxis,
181 ZAxis,
182 "Thin yellow line connecting near and far crosshairs.",
183 "Feedback shown alone during rotation about Z axis; displayed with
184 centerballXAxis and centerballYAxis while center is dragged."
185 }
186
187 ALSO {
188 SoInteractionKit,
189 SoDragger,
190 SoDirectionalLightDragger,
191 SoDragPointDragger,
192 SoHandleBoxDragger,
193 SoJackDragger,
194 SoPointLightDragger,
195 SoRotateCylindricalDragger,
196 SoRotateDiscDragger,
197 SoRotateSphericalDragger,
198 SoScale1Dragger,
199 SoScale2Dragger,
200 SoScale2UniformDragger,
201 SoScaleUniformDragger,
202 SoSpotLightDragger,
203 SoTabBoxDragger,
204 SoTabPlaneDragger,
205 SoTrackballDragger,
206 SoTransformBoxDragger,
207 SoTranslate1Dragger,
208 SoTranslate2Dragger
209 }
210
211