52 SO_KIT_CATALOG_ENTRY_HEADER(axisFeedbackLocation);
53 SO_KIT_CATALOG_ENTRY_HEADER(axisFeedbackSep);
54 SO_KIT_CATALOG_ENTRY_HEADER(circleFeedbackAntiSquish);
55 SO_KIT_CATALOG_ENTRY_HEADER(circleFeedbackSep);
56 SO_KIT_CATALOG_ENTRY_HEADER(circleFeedbackTransform);
57 SO_KIT_CATALOG_ENTRY_HEADER(circleFeedbackTransformSwitch);
58 SO_KIT_CATALOG_ENTRY_HEADER(negXRoundWallFeedback);
59 SO_KIT_CATALOG_ENTRY_HEADER(negXWallFeedback);
60 SO_KIT_CATALOG_ENTRY_HEADER(negXWallFeedbackSwitch);
61 SO_KIT_CATALOG_ENTRY_HEADER(negYRoundWallFeedback);
62 SO_KIT_CATALOG_ENTRY_HEADER(negYWallFeedback);
63 SO_KIT_CATALOG_ENTRY_HEADER(negYWallFeedbackSwitch);
64 SO_KIT_CATALOG_ENTRY_HEADER(negZRoundWallFeedback);
65 SO_KIT_CATALOG_ENTRY_HEADER(negZWallFeedback);
66 SO_KIT_CATALOG_ENTRY_HEADER(negZWallFeedbackSwitch);
67 SO_KIT_CATALOG_ENTRY_HEADER(overallStyle);
68 SO_KIT_CATALOG_ENTRY_HEADER(posXRoundWallFeedback);
69 SO_KIT_CATALOG_ENTRY_HEADER(posXWallFeedback);
70 SO_KIT_CATALOG_ENTRY_HEADER(posXWallFeedbackSwitch);
71 SO_KIT_CATALOG_ENTRY_HEADER(posYRoundWallFeedback);
72 SO_KIT_CATALOG_ENTRY_HEADER(posYWallFeedback);
73 SO_KIT_CATALOG_ENTRY_HEADER(posYWallFeedbackSwitch);
74 SO_KIT_CATALOG_ENTRY_HEADER(posZRoundWallFeedback);
75 SO_KIT_CATALOG_ENTRY_HEADER(posZWallFeedback);
76 SO_KIT_CATALOG_ENTRY_HEADER(posZWallFeedbackSwitch);
77 SO_KIT_CATALOG_ENTRY_HEADER(radialFeedback);
78 SO_KIT_CATALOG_ENTRY_HEADER(radialFeedbackSwitch);
79 SO_KIT_CATALOG_ENTRY_HEADER(rotator1);
80 SO_KIT_CATALOG_ENTRY_HEADER(rotator1Active);
81 SO_KIT_CATALOG_ENTRY_HEADER(rotator1LocateGroup);
82 SO_KIT_CATALOG_ENTRY_HEADER(rotator1Switch);
83 SO_KIT_CATALOG_ENTRY_HEADER(rotator2);
84 SO_KIT_CATALOG_ENTRY_HEADER(rotator2Active);
85 SO_KIT_CATALOG_ENTRY_HEADER(rotator2LocateGroup);
86 SO_KIT_CATALOG_ENTRY_HEADER(rotator2Switch);
87 SO_KIT_CATALOG_ENTRY_HEADER(rotator3);
88 SO_KIT_CATALOG_ENTRY_HEADER(rotator3Active);
89 SO_KIT_CATALOG_ENTRY_HEADER(rotator3LocateGroup);
90 SO_KIT_CATALOG_ENTRY_HEADER(rotator3Switch);
91 SO_KIT_CATALOG_ENTRY_HEADER(rotator4);
92 SO_KIT_CATALOG_ENTRY_HEADER(rotator4Active);
93 SO_KIT_CATALOG_ENTRY_HEADER(rotator4LocateGroup);
94 SO_KIT_CATALOG_ENTRY_HEADER(rotator4Switch);
95 SO_KIT_CATALOG_ENTRY_HEADER(rotator5);
96 SO_KIT_CATALOG_ENTRY_HEADER(rotator5Active);
97 SO_KIT_CATALOG_ENTRY_HEADER(rotator5LocateGroup);
98 SO_KIT_CATALOG_ENTRY_HEADER(rotator5Switch);
99 SO_KIT_CATALOG_ENTRY_HEADER(rotator6);
100 SO_KIT_CATALOG_ENTRY_HEADER(rotator6Active);
101 SO_KIT_CATALOG_ENTRY_HEADER(rotator6LocateGroup);
102 SO_KIT_CATALOG_ENTRY_HEADER(rotator6Switch);
103 SO_KIT_CATALOG_ENTRY_HEADER(rotatorSep);
104 SO_KIT_CATALOG_ENTRY_HEADER(scale1);
105 SO_KIT_CATALOG_ENTRY_HEADER(scale1Active);
106 SO_KIT_CATALOG_ENTRY_HEADER(scale1LocateGroup);
107 SO_KIT_CATALOG_ENTRY_HEADER(scale1Switch);
108 SO_KIT_CATALOG_ENTRY_HEADER(scale2);
109 SO_KIT_CATALOG_ENTRY_HEADER(scale2Active);
110 SO_KIT_CATALOG_ENTRY_HEADER(scale2LocateGroup);
111 SO_KIT_CATALOG_ENTRY_HEADER(scale2Switch);
112 SO_KIT_CATALOG_ENTRY_HEADER(scale3);
113 SO_KIT_CATALOG_ENTRY_HEADER(scale3Active);
114 SO_KIT_CATALOG_ENTRY_HEADER(scale3LocateGroup);
115 SO_KIT_CATALOG_ENTRY_HEADER(scale3Switch);
116 SO_KIT_CATALOG_ENTRY_HEADER(scale4);
117 SO_KIT_CATALOG_ENTRY_HEADER(scale4Active);
118 SO_KIT_CATALOG_ENTRY_HEADER(scale4LocateGroup);
119 SO_KIT_CATALOG_ENTRY_HEADER(scale4Switch);
120 SO_KIT_CATALOG_ENTRY_HEADER(scale5);
121 SO_KIT_CATALOG_ENTRY_HEADER(scale5Active);
122 SO_KIT_CATALOG_ENTRY_HEADER(scale5LocateGroup);
123 SO_KIT_CATALOG_ENTRY_HEADER(scale5Switch);
124 SO_KIT_CATALOG_ENTRY_HEADER(scale6);
125 SO_KIT_CATALOG_ENTRY_HEADER(scale6Active);
126 SO_KIT_CATALOG_ENTRY_HEADER(scale6LocateGroup);
127 SO_KIT_CATALOG_ENTRY_HEADER(scale6Switch);
128 SO_KIT_CATALOG_ENTRY_HEADER(scale7);
129 SO_KIT_CATALOG_ENTRY_HEADER(scale7Active);
130 SO_KIT_CATALOG_ENTRY_HEADER(scale7LocateGroup);
131 SO_KIT_CATALOG_ENTRY_HEADER(scale7Switch);
132 SO_KIT_CATALOG_ENTRY_HEADER(scale8);
133 SO_KIT_CATALOG_ENTRY_HEADER(scale8Active);
134 SO_KIT_CATALOG_ENTRY_HEADER(scale8LocateGroup);
135 SO_KIT_CATALOG_ENTRY_HEADER(scale8Switch);
136 SO_KIT_CATALOG_ENTRY_HEADER(scaleBoxFeedback);
137 SO_KIT_CATALOG_ENTRY_HEADER(scaleBoxFeedbackSwitch);
138 SO_KIT_CATALOG_ENTRY_HEADER(scaleSep);
139 SO_KIT_CATALOG_ENTRY_HEADER(surroundScale);
140 SO_KIT_CATALOG_ENTRY_HEADER(translateBoxFeedback);
141 SO_KIT_CATALOG_ENTRY_HEADER(translateBoxFeedbackRotation);
142 SO_KIT_CATALOG_ENTRY_HEADER(translateBoxFeedbackSep);
143 SO_KIT_CATALOG_ENTRY_HEADER(translateBoxFeedbackSwitch);
144 SO_KIT_CATALOG_ENTRY_HEADER(translator1);
145 SO_KIT_CATALOG_ENTRY_HEADER(translator1Active);
146 SO_KIT_CATALOG_ENTRY_HEADER(translator1LocateGroup);
147 SO_KIT_CATALOG_ENTRY_HEADER(translator1Switch);
148 SO_KIT_CATALOG_ENTRY_HEADER(translator2);
149 SO_KIT_CATALOG_ENTRY_HEADER(translator2Active);
150 SO_KIT_CATALOG_ENTRY_HEADER(translator2LocateGroup);
151 SO_KIT_CATALOG_ENTRY_HEADER(translator2Switch);
152 SO_KIT_CATALOG_ENTRY_HEADER(translator3);
153 SO_KIT_CATALOG_ENTRY_HEADER(translator3Active);
154 SO_KIT_CATALOG_ENTRY_HEADER(translator3LocateGroup);
155 SO_KIT_CATALOG_ENTRY_HEADER(translator3Switch);
156 SO_KIT_CATALOG_ENTRY_HEADER(translator4);
157 SO_KIT_CATALOG_ENTRY_HEADER(translator4Active);
158 SO_KIT_CATALOG_ENTRY_HEADER(translator4LocateGroup);
159 SO_KIT_CATALOG_ENTRY_HEADER(translator4Switch);
160 SO_KIT_CATALOG_ENTRY_HEADER(translator5);
161 SO_KIT_CATALOG_ENTRY_HEADER(translator5Active);
162 SO_KIT_CATALOG_ENTRY_HEADER(translator5LocateGroup);
163 SO_KIT_CATALOG_ENTRY_HEADER(translator5Switch);
164 SO_KIT_CATALOG_ENTRY_HEADER(translator6);
165 SO_KIT_CATALOG_ENTRY_HEADER(translator6Active);
166 SO_KIT_CATALOG_ENTRY_HEADER(translator6LocateGroup);
167 SO_KIT_CATALOG_ENTRY_HEADER(translator6Switch);
168 SO_KIT_CATALOG_ENTRY_HEADER(translatorSep);
169 SO_KIT_CATALOG_ENTRY_HEADER(xAxisFeedbackActive);
170 SO_KIT_CATALOG_ENTRY_HEADER(xAxisFeedbackSelect);
171 SO_KIT_CATALOG_ENTRY_HEADER(xAxisFeedbackSwitch);
172 SO_KIT_CATALOG_ENTRY_HEADER(xCircleFeedback);
173 SO_KIT_CATALOG_ENTRY_HEADER(xCircleFeedbackSwitch);
174 SO_KIT_CATALOG_ENTRY_HEADER(xCrosshairFeedback);
175 SO_KIT_CATALOG_ENTRY_HEADER(yAxisFeedbackActive);
176 SO_KIT_CATALOG_ENTRY_HEADER(yAxisFeedbackSelect);
177 SO_KIT_CATALOG_ENTRY_HEADER(yAxisFeedbackSwitch);
178 SO_KIT_CATALOG_ENTRY_HEADER(yCircleFeedback);
179 SO_KIT_CATALOG_ENTRY_HEADER(yCircleFeedbackSwitch);
180 SO_KIT_CATALOG_ENTRY_HEADER(yCrosshairFeedback);
181 SO_KIT_CATALOG_ENTRY_HEADER(zAxisFeedbackActive);
182 SO_KIT_CATALOG_ENTRY_HEADER(zAxisFeedbackSelect);
183 SO_KIT_CATALOG_ENTRY_HEADER(zAxisFeedbackSwitch);
184 SO_KIT_CATALOG_ENTRY_HEADER(zCircleFeedback);
185 SO_KIT_CATALOG_ENTRY_HEADER(zCircleFeedbackSwitch);
186 SO_KIT_CATALOG_ENTRY_HEADER(zCrosshairFeedback);
224 State getCurrentState(
void);
226 void unsquishKnobs(
void);
228 SbBool isLocateHighlighting(
void);
229 void setLocateHighlighting(SbBool onoff);
231 static void setColinearThreshold(
int newval);
232 static int getColinearThreshold(
void);
236 SbVec3f getWorldPointInBoxSpace(
const SbVec3f & pointinworldspace);
239 SbVec3f getInteractiveCenterInBoxSpace(
void);
246 static void startCB(
void * f,
SoDragger * d);
247 static void motionCB(
void * f,
SoDragger * d);
248 static void finishCB(
void * f,
SoDragger * d);
249 static void metaKeyChangeCB(
void *,
SoDragger *);
251 static void valueChangedCB(
void * f,
SoDragger * d);
253 void dragStart(
void);
255 void dragFinish(
void);
257 void updateAntiSquishList(
void);
258 void setAllPartSwitches(
int scalewhich,
int rotatewhich,
int translatewhich);
259 int getMouseGestureDirection(SbBool x_ok, SbBool y_ok, SbBool z_ok);
260 static int getIgnoreAxis(
SbVec2f axis[3][2],
261 SbBool x_ok, SbBool y_ok, SbBool z_ok);
262 static void makeMinorAxisPerpendicularIfColinear(
SbVec2f origin,
SbVec2f axisends[3][2],
int index_a,
int index_b);
263 static SbBool isColinear(
SbVec2f a1[2],
SbVec2f a2[2],
int pixels);
272 SoNode *getNodeFieldNode(
const char *fieldname);
274 void build_catalog1(
void);
275 void build_catalog2(
void);
276 void build_catalog3(
void);
277 void build_catalog4(
void);
278 void build_catalog5(
void);
279 void build_catalog6(
void);
281 SbMatrix getWorkingToWorldMatrix(
void);
282 SbMatrix getWorldToWorkingMatrix(
void);
288 SbBool setDynamicTranslatorSwitches(
const SoEvent *event);
289 SbBool setDynamicRotatorSwitches(
const SoEvent *event);
290 SbBool setDynamicScaleSwitches(
const SoEvent *event);
292 void dragTranslate();
305 friend class SoTransformerDraggerP;