Coin Logo http://www.sim.no
http://www.coin3d.org

SoTransformerDragger.h
1 #ifndef COIN_SOTRANSFORMERDRAGGER_H
2 #define COIN_SOTRANSFORMERDRAGGER_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/draggers/SoDragger.h>
28 #include <Inventor/fields/SoSFRotation.h>
29 #include <Inventor/fields/SoSFVec3f.h>
30 #include <Inventor/fields/SoSFFloat.h>
31 #include <Inventor/lists/SoNodeList.h>
32 
33 class SoSensor;
34 class SoFieldSensor;
35 
36 
37 class COIN_DLL_API SoTransformerDragger : public SoDragger {
38  typedef SoDragger inherited;
39 
40  SO_KIT_HEADER(SoTransformerDragger);
41 
42  SO_KIT_CATALOG_ENTRY_HEADER(axisFeedbackLocation);
43  SO_KIT_CATALOG_ENTRY_HEADER(axisFeedbackSep);
44  SO_KIT_CATALOG_ENTRY_HEADER(circleFeedbackAntiSquish);
45  SO_KIT_CATALOG_ENTRY_HEADER(circleFeedbackSep);
46  SO_KIT_CATALOG_ENTRY_HEADER(circleFeedbackTransform);
47  SO_KIT_CATALOG_ENTRY_HEADER(circleFeedbackTransformSwitch);
48  SO_KIT_CATALOG_ENTRY_HEADER(negXRoundWallFeedback);
49  SO_KIT_CATALOG_ENTRY_HEADER(negXWallFeedback);
50  SO_KIT_CATALOG_ENTRY_HEADER(negXWallFeedbackSwitch);
51  SO_KIT_CATALOG_ENTRY_HEADER(negYRoundWallFeedback);
52  SO_KIT_CATALOG_ENTRY_HEADER(negYWallFeedback);
53  SO_KIT_CATALOG_ENTRY_HEADER(negYWallFeedbackSwitch);
54  SO_KIT_CATALOG_ENTRY_HEADER(negZRoundWallFeedback);
55  SO_KIT_CATALOG_ENTRY_HEADER(negZWallFeedback);
56  SO_KIT_CATALOG_ENTRY_HEADER(negZWallFeedbackSwitch);
57  SO_KIT_CATALOG_ENTRY_HEADER(overallStyle);
58  SO_KIT_CATALOG_ENTRY_HEADER(posXRoundWallFeedback);
59  SO_KIT_CATALOG_ENTRY_HEADER(posXWallFeedback);
60  SO_KIT_CATALOG_ENTRY_HEADER(posXWallFeedbackSwitch);
61  SO_KIT_CATALOG_ENTRY_HEADER(posYRoundWallFeedback);
62  SO_KIT_CATALOG_ENTRY_HEADER(posYWallFeedback);
63  SO_KIT_CATALOG_ENTRY_HEADER(posYWallFeedbackSwitch);
64  SO_KIT_CATALOG_ENTRY_HEADER(posZRoundWallFeedback);
65  SO_KIT_CATALOG_ENTRY_HEADER(posZWallFeedback);
66  SO_KIT_CATALOG_ENTRY_HEADER(posZWallFeedbackSwitch);
67  SO_KIT_CATALOG_ENTRY_HEADER(radialFeedback);
68  SO_KIT_CATALOG_ENTRY_HEADER(radialFeedbackSwitch);
69  SO_KIT_CATALOG_ENTRY_HEADER(rotator1);
70  SO_KIT_CATALOG_ENTRY_HEADER(rotator1Active);
71  SO_KIT_CATALOG_ENTRY_HEADER(rotator1LocateGroup);
72  SO_KIT_CATALOG_ENTRY_HEADER(rotator1Switch);
73  SO_KIT_CATALOG_ENTRY_HEADER(rotator2);
74  SO_KIT_CATALOG_ENTRY_HEADER(rotator2Active);
75  SO_KIT_CATALOG_ENTRY_HEADER(rotator2LocateGroup);
76  SO_KIT_CATALOG_ENTRY_HEADER(rotator2Switch);
77  SO_KIT_CATALOG_ENTRY_HEADER(rotator3);
78  SO_KIT_CATALOG_ENTRY_HEADER(rotator3Active);
79  SO_KIT_CATALOG_ENTRY_HEADER(rotator3LocateGroup);
80  SO_KIT_CATALOG_ENTRY_HEADER(rotator3Switch);
81  SO_KIT_CATALOG_ENTRY_HEADER(rotator4);
82  SO_KIT_CATALOG_ENTRY_HEADER(rotator4Active);
83  SO_KIT_CATALOG_ENTRY_HEADER(rotator4LocateGroup);
84  SO_KIT_CATALOG_ENTRY_HEADER(rotator4Switch);
85  SO_KIT_CATALOG_ENTRY_HEADER(rotator5);
86  SO_KIT_CATALOG_ENTRY_HEADER(rotator5Active);
87  SO_KIT_CATALOG_ENTRY_HEADER(rotator5LocateGroup);
88  SO_KIT_CATALOG_ENTRY_HEADER(rotator5Switch);
89  SO_KIT_CATALOG_ENTRY_HEADER(rotator6);
90  SO_KIT_CATALOG_ENTRY_HEADER(rotator6Active);
91  SO_KIT_CATALOG_ENTRY_HEADER(rotator6LocateGroup);
92  SO_KIT_CATALOG_ENTRY_HEADER(rotator6Switch);
93  SO_KIT_CATALOG_ENTRY_HEADER(rotatorSep);
94  SO_KIT_CATALOG_ENTRY_HEADER(scale1);
95  SO_KIT_CATALOG_ENTRY_HEADER(scale1Active);
96  SO_KIT_CATALOG_ENTRY_HEADER(scale1LocateGroup);
97  SO_KIT_CATALOG_ENTRY_HEADER(scale1Switch);
98  SO_KIT_CATALOG_ENTRY_HEADER(scale2);
99  SO_KIT_CATALOG_ENTRY_HEADER(scale2Active);
100  SO_KIT_CATALOG_ENTRY_HEADER(scale2LocateGroup);
101  SO_KIT_CATALOG_ENTRY_HEADER(scale2Switch);
102  SO_KIT_CATALOG_ENTRY_HEADER(scale3);
103  SO_KIT_CATALOG_ENTRY_HEADER(scale3Active);
104  SO_KIT_CATALOG_ENTRY_HEADER(scale3LocateGroup);
105  SO_KIT_CATALOG_ENTRY_HEADER(scale3Switch);
106  SO_KIT_CATALOG_ENTRY_HEADER(scale4);
107  SO_KIT_CATALOG_ENTRY_HEADER(scale4Active);
108  SO_KIT_CATALOG_ENTRY_HEADER(scale4LocateGroup);
109  SO_KIT_CATALOG_ENTRY_HEADER(scale4Switch);
110  SO_KIT_CATALOG_ENTRY_HEADER(scale5);
111  SO_KIT_CATALOG_ENTRY_HEADER(scale5Active);
112  SO_KIT_CATALOG_ENTRY_HEADER(scale5LocateGroup);
113  SO_KIT_CATALOG_ENTRY_HEADER(scale5Switch);
114  SO_KIT_CATALOG_ENTRY_HEADER(scale6);
115  SO_KIT_CATALOG_ENTRY_HEADER(scale6Active);
116  SO_KIT_CATALOG_ENTRY_HEADER(scale6LocateGroup);
117  SO_KIT_CATALOG_ENTRY_HEADER(scale6Switch);
118  SO_KIT_CATALOG_ENTRY_HEADER(scale7);
119  SO_KIT_CATALOG_ENTRY_HEADER(scale7Active);
120  SO_KIT_CATALOG_ENTRY_HEADER(scale7LocateGroup);
121  SO_KIT_CATALOG_ENTRY_HEADER(scale7Switch);
122  SO_KIT_CATALOG_ENTRY_HEADER(scale8);
123  SO_KIT_CATALOG_ENTRY_HEADER(scale8Active);
124  SO_KIT_CATALOG_ENTRY_HEADER(scale8LocateGroup);
125  SO_KIT_CATALOG_ENTRY_HEADER(scale8Switch);
126  SO_KIT_CATALOG_ENTRY_HEADER(scaleBoxFeedback);
127  SO_KIT_CATALOG_ENTRY_HEADER(scaleBoxFeedbackSwitch);
128  SO_KIT_CATALOG_ENTRY_HEADER(scaleSep);
129  SO_KIT_CATALOG_ENTRY_HEADER(surroundScale);
130  SO_KIT_CATALOG_ENTRY_HEADER(translateBoxFeedback);
131  SO_KIT_CATALOG_ENTRY_HEADER(translateBoxFeedbackRotation);
132  SO_KIT_CATALOG_ENTRY_HEADER(translateBoxFeedbackSep);
133  SO_KIT_CATALOG_ENTRY_HEADER(translateBoxFeedbackSwitch);
134  SO_KIT_CATALOG_ENTRY_HEADER(translator1);
135  SO_KIT_CATALOG_ENTRY_HEADER(translator1Active);
136  SO_KIT_CATALOG_ENTRY_HEADER(translator1LocateGroup);
137  SO_KIT_CATALOG_ENTRY_HEADER(translator1Switch);
138  SO_KIT_CATALOG_ENTRY_HEADER(translator2);
139  SO_KIT_CATALOG_ENTRY_HEADER(translator2Active);
140  SO_KIT_CATALOG_ENTRY_HEADER(translator2LocateGroup);
141  SO_KIT_CATALOG_ENTRY_HEADER(translator2Switch);
142  SO_KIT_CATALOG_ENTRY_HEADER(translator3);
143  SO_KIT_CATALOG_ENTRY_HEADER(translator3Active);
144  SO_KIT_CATALOG_ENTRY_HEADER(translator3LocateGroup);
145  SO_KIT_CATALOG_ENTRY_HEADER(translator3Switch);
146  SO_KIT_CATALOG_ENTRY_HEADER(translator4);
147  SO_KIT_CATALOG_ENTRY_HEADER(translator4Active);
148  SO_KIT_CATALOG_ENTRY_HEADER(translator4LocateGroup);
149  SO_KIT_CATALOG_ENTRY_HEADER(translator4Switch);
150  SO_KIT_CATALOG_ENTRY_HEADER(translator5);
151  SO_KIT_CATALOG_ENTRY_HEADER(translator5Active);
152  SO_KIT_CATALOG_ENTRY_HEADER(translator5LocateGroup);
153  SO_KIT_CATALOG_ENTRY_HEADER(translator5Switch);
154  SO_KIT_CATALOG_ENTRY_HEADER(translator6);
155  SO_KIT_CATALOG_ENTRY_HEADER(translator6Active);
156  SO_KIT_CATALOG_ENTRY_HEADER(translator6LocateGroup);
157  SO_KIT_CATALOG_ENTRY_HEADER(translator6Switch);
158  SO_KIT_CATALOG_ENTRY_HEADER(translatorSep);
159  SO_KIT_CATALOG_ENTRY_HEADER(xAxisFeedbackActive);
160  SO_KIT_CATALOG_ENTRY_HEADER(xAxisFeedbackSelect);
161  SO_KIT_CATALOG_ENTRY_HEADER(xAxisFeedbackSwitch);
162  SO_KIT_CATALOG_ENTRY_HEADER(xCircleFeedback);
163  SO_KIT_CATALOG_ENTRY_HEADER(xCircleFeedbackSwitch);
164  SO_KIT_CATALOG_ENTRY_HEADER(xCrosshairFeedback);
165  SO_KIT_CATALOG_ENTRY_HEADER(yAxisFeedbackActive);
166  SO_KIT_CATALOG_ENTRY_HEADER(yAxisFeedbackSelect);
167  SO_KIT_CATALOG_ENTRY_HEADER(yAxisFeedbackSwitch);
168  SO_KIT_CATALOG_ENTRY_HEADER(yCircleFeedback);
169  SO_KIT_CATALOG_ENTRY_HEADER(yCircleFeedbackSwitch);
170  SO_KIT_CATALOG_ENTRY_HEADER(yCrosshairFeedback);
171  SO_KIT_CATALOG_ENTRY_HEADER(zAxisFeedbackActive);
172  SO_KIT_CATALOG_ENTRY_HEADER(zAxisFeedbackSelect);
173  SO_KIT_CATALOG_ENTRY_HEADER(zAxisFeedbackSwitch);
174  SO_KIT_CATALOG_ENTRY_HEADER(zCircleFeedback);
175  SO_KIT_CATALOG_ENTRY_HEADER(zCircleFeedbackSwitch);
176  SO_KIT_CATALOG_ENTRY_HEADER(zCrosshairFeedback);
177 
178 
179 public:
180  static void initClass(void);
181  SoTransformerDragger(void);
182 
187 
188  enum State {
189  INACTIVE,
190 
191  RIT_X_ROTATE,
192  TOP_Y_ROTATE,
193  FNT_Z_ROTATE,
194  LFT_X_ROTATE,
195  BOT_Y_ROTATE,
196  BAK_Z_ROTATE,
197 
198  PX_PY_PZ_3D_SCALE,
199  PX_PY_NZ_3D_SCALE,
200  PX_NY_PZ_3D_SCALE,
201  PX_NY_NZ_3D_SCALE,
202  NX_PY_PZ_3D_SCALE,
203  NX_PY_NZ_3D_SCALE,
204  NX_NY_PZ_3D_SCALE,
205  NX_NY_NZ_3D_SCALE,
206 
207  RIT_TRANSLATE,
208  TOP_TRANSLATE,
209  FNT_TRANSLATE,
210  LFT_TRANSLATE,
211  BOT_TRANSLATE,
212  BAK_TRANSLATE
213  };
214 
215  State getCurrentState(void);
216 
217  void unsquishKnobs(void);
218 
219  SbBool isLocateHighlighting(void);
220  void setLocateHighlighting(SbBool onoff);
221 
222  static void setColinearThreshold(int newval);
223  static int getColinearThreshold(void);
224 
225  SbVec3f getBoxPointInWorldSpace(const SbVec3f & pointonunitbox);
226  SbVec3f getBoxDirInWorldSpace(const SbVec3f & dironunitbox);
227  SbVec3f getWorldPointInBoxSpace(const SbVec3f & pointinworldspace);
228  SbVec2f getWorldPointInPixelSpace(const SbVec3f & thepoint);
229 
230  SbVec3f getInteractiveCenterInBoxSpace(void);
231 
232 protected:
234  virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways = FALSE);
235  virtual void setDefaultOnNonWritingFields(void);
236 
237  static void startCB(void * f, SoDragger * d);
238  static void motionCB(void * f, SoDragger * d);
239  static void finishCB(void * f, SoDragger * d);
240  static void metaKeyChangeCB(void *, SoDragger *);
241  static void fieldSensorCB(void * f, SoSensor * s);
242  static void valueChangedCB(void * f, SoDragger * d);
243 
244  void dragStart(void);
245  void drag(void);
246  void dragFinish(void);
247 
248  void updateAntiSquishList(void);
249  void setAllPartSwitches(int scalewhich, int rotatewhich, int translatewhich);
250  int getMouseGestureDirection(SbBool x_ok, SbBool y_ok, SbBool z_ok);
251  static int getIgnoreAxis(SbVec2f axis[3][2],
252  SbBool x_ok, SbBool y_ok, SbBool z_ok);
253  static void makeMinorAxisPerpendicularIfColinear(SbVec2f origin, SbVec2f axisends[3][2], int index_a, int index_b);
254  static SbBool isColinear(SbVec2f a1[2], SbVec2f a2[2], int pixels);
255 
260 
261 private:
262  void getSurroundScaleMatrices(SbMatrix &matrix, SbMatrix &inv);
263  SoNode *getNodeFieldNode(const char *fieldname);
264 
265  void build_catalog1(void);
266  void build_catalog2(void);
267  void build_catalog3(void);
268  void build_catalog4(void);
269  void build_catalog5(void);
270  void build_catalog6(void);
271 
272  SbMatrix getWorkingToWorldMatrix(void);
273  SbMatrix getWorldToWorkingMatrix(void);
274  SbVec3f localToWorking(const SbVec3f &v);
275  SbVec3f workingToLocal(const SbVec3f &v);
276  SbVec3f calcCtrlOffset(const SbVec3f &startpt);
277  void setSwitchValue(const char *str, const int which);
278 
279  SbBool setDynamicTranslatorSwitches(const SoEvent *event);
280  SbBool setDynamicRotatorSwitches(const SoEvent *event);
281  SbBool setDynamicScaleSwitches(const SoEvent *event);
282 
283  void dragTranslate();
284  void dragScale();
285  void dragRotate();
286 
287  class SbPlaneProjector *planeProj;
288  class SbLineProjector *lineProj;
289  class SbSphereProjector *sphereProj;
290  class SbCylinderProjector *cylProj;
291 
292  State state;
293 
294  class SoTransformerDraggerP * pimpl;
295  friend class SoTransformerDraggerP;
296 };
297 
298 #endif // !COIN_SOTRANSFORMERDRAGGER_H
SoSFVec3f
The SoSFVec3f class is a container for an SbVec3f vector.
Definition: SoSFVec3f.h:31
SbPList::getLength
int getLength(void) const
Definition: SbPList.h:94
SbRotation::getValue
const float * getValue(void) const
Definition: SbRotation.cpp:179
SbViewVolume::getPlanePoint
SbVec3f getPlanePoint(const float distFromEye, const SbVec2f &normPoint) const
Definition: SbViewVolume.cpp:319
SbRotation
The SbRotation class represents a rotation in 3D space.
Definition: SbRotation.h:33
SoTransformerDragger::finishCB
static void finishCB(void *f, SoDragger *d)
Definition: SoTransformerDragger.cpp:1074
SoSearchAction::setType
void setType(const SoType type, const SbBool chkderived=1)
Definition: SoSearchAction.cpp:175
SoDragger::workFieldsIntoTransform
void workFieldsIntoTransform(SbMatrix &mtx)
Definition: SoDragger.cpp:1123
SoRotation
The SoRotation class specifies a rotation transformation.
Definition: SoRotation.h:31
SoEvent::wasShiftDown
SbBool wasShiftDown(void) const
Definition: SoEvent.cpp:236
SoTransformerDragger::motionCB
static void motionCB(void *f, SoDragger *d)
Definition: SoTransformerDragger.cpp:1066
SbViewportRegion::getViewportSizePixels
const SbVec2s & getViewportSizePixels(void) const
Definition: SbViewportRegion.cpp:425
SoFieldContainer::getField
virtual SoField * getField(const SbName &name) const
Definition: SoFieldContainer.cpp:364
SoDragger::appendTranslation
static SbMatrix appendTranslation(const SbMatrix &mtx, const SbVec3f &translation, const SbMatrix *conversion=NULL)
Definition: SoDragger.cpp:1252
SbVec2f
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:36
SoAction::apply
virtual void apply(SoNode *root)
Definition: SoAction.cpp:476
SbSphereProjector::setWorkingSpace
virtual void setWorkingSpace(const SbMatrix &space)
Definition: SbSphereProjector.cpp:220
SbRotation::identity
static SbRotation identity(void)
Definition: SbRotation.cpp:674
SoDragger::getLocalStartingPoint
SbVec3f getLocalStartingPoint(void)
Definition: SoDragger.cpp:805
SbLine::getClosestPoint
SbVec3f getClosestPoint(const SbVec3f &point) const
Definition: SbLine.cpp:263
SbMatrix
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition: SbMatrix.h:37
SoSFRotation
The SoSFRotation class is a container for an SbRotation.
Definition: SoSFRotation.h:31
SbPlaneProjector
The SbPlaneProjector class projects 2D points to 3D points in a plane.
Definition: SbPlaneProjector.h:31
SbMatrix::print
void print(FILE *fp) const
Definition: SbMatrix.cpp:1448
SbCylinderPlaneProjector
The SbCylinderPlaneProjector class projects 2D points to a half-cylinder and a plane.
Definition: SbCylinderPlaneProjector.h:29
SoTransformerDragger::setDefaultOnNonWritingFields
virtual void setDefaultOnNonWritingFields(void)
Definition: SoTransformerDragger.cpp:913
SoNodeList::append
void append(SoNode *const ptr)
Definition: SoNodeList.cpp:80
SoTransformerDragger::getIgnoreAxis
static int getIgnoreAxis(SbVec2f axis[3][2], SbBool x_ok, SbBool y_ok, SbBool z_ok)
Definition: SoTransformerDragger.cpp:1893
SoBaseKit::getAnyPart
virtual SoNode * getAnyPart(const SbName &partname, SbBool makeifneeded, SbBool leafcheck=0, SbBool publiccheck=0)
Definition: SoBaseKit.cpp:1722
SbSphereProjector
The SbSphereProjector class is the abstract base class for mapping to spherical surfaces.
Definition: SbSphereProjector.h:31
SoSensor
The SoSensor class is the abstract base class for all sensors.
Definition: SoSensor.h:34
SbSphereProjector::isPointInFront
SbBool isPointInFront(const SbVec3f &point) const
Definition: SbSphereProjector.cpp:182
SoTransformerDragger::isColinear
static SbBool isColinear(SbVec2f a1[2], SbVec2f a2[2], int pixels)
Definition: SoTransformerDragger.cpp:1914
SoDragger::isAdequateConstraintMotion
SbBool isAdequateConstraintMotion(void)
Definition: SoDragger.cpp:1462
SoBaseKit::getPart
virtual SoNode * getPart(const SbName &partname, SbBool makeifneeded)
Definition: SoBaseKit.cpp:699
SoTransformerDragger::getCurrentState
State getCurrentState(void)
Definition: SoTransformerDragger.cpp:971
SoDragger::getLocaterPosition
SbVec2s getLocaterPosition(void)
Definition: SoDragger.cpp:1424
SoTransformerDragger::scaleFactor
SoSFVec3f scaleFactor
Definition: SoTransformerDragger.h:185
SbPlaneProjector::getPlane
const SbPlane & getPlane(void) const
Definition: SbPlaneProjector.cpp:193
SoTransformerDragger::drag
void drag(void)
Definition: SoTransformerDragger.cpp:1295
SoDragger::getFrontOnProjector
ProjectorFrontSetting getFrontOnProjector(void) const
Definition: SoDragger.cpp:1165
SoDragger::getEvent
const SoEvent * getEvent(void) const
Definition: SoDragger.cpp:962
SbMatrix::multVecMatrix
void multVecMatrix(const SbVec3f &src, SbVec3f &dst) const
Definition: SbMatrix.cpp:1357
SbPlane::getDistance
float getDistance(const SbVec3f &point) const
Definition: SbPlane.cpp:242
SoFieldSensor::getAttachedField
SoField * getAttachedField(void) const
Definition: SoFieldSensor.cpp:107
SbSphereProjector::setFront
void setFront(const SbBool infront)
Definition: SbSphereProjector.cpp:161
SoDragger::addOtherEventCallback
void addOtherEventCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:702
SoTransformerDragger::dragFinish
void dragFinish(void)
Definition: SoTransformerDragger.cpp:1762
SoTransformerDragger::fieldSensorCB
static void fieldSensorCB(void *f, SoSensor *s)
Definition: SoTransformerDragger.cpp:930
SoSearchAction
The SoSearchAction class provides methods for searching through scene graphs.
Definition: SoSearchAction.h:32
SbMatrix::multLeft
SbMatrix & multLeft(const SbMatrix &m)
Definition: SbMatrix.cpp:1280
SoTransformerDragger::translFieldSensor
SoFieldSensor * translFieldSensor
Definition: SoTransformerDragger.h:256
SoEvent::wasCtrlDown
SbBool wasCtrlDown(void) const
Definition: SoEvent.cpp:259
SoTransform::translation
SoSFVec3f translation
Definition: SoTransform.h:43
SoTransformerDragger::scaleFieldSensor
SoFieldSensor * scaleFieldSensor
Definition: SoTransformerDragger.h:257
SoSurroundScale
The SoSurroundScale class is used to automatically scale geometry to surround other geometry.
Definition: SoSurroundScale.h:34
SoFullPath
The SoFullPath class allows examination of hidden children in paths.
Definition: SoFullPath.h:29
SoTransformerDragger::getMouseGestureDirection
int getMouseGestureDirection(SbBool x_ok, SbBool y_ok, SbBool z_ok)
Definition: SoTransformerDragger.cpp:1882
SoSwitch
The SoSwitch class is a group node which selects one child subgraph for traversal.
Definition: SoSwitch.h:37
SoInteractionKit::setSwitchValue
static void setSwitchValue(SoNode *node, const int newVal)
Definition: SoInteractionKit.cpp:358
SoTransformerDragger::minDiscRotDot
SoSFFloat minDiscRotDot
Definition: SoTransformerDragger.h:186
SoDelayQueueSensor::setPriority
void setPriority(uint32_t pri)
Definition: SoDelayQueueSensor.cpp:108
SbPlane::transform
void transform(const SbMatrix &matrix)
Definition: SbPlane.cpp:203
SbProjector::project
virtual SbVec3f project(const SbVec2f &point)=0
SoPathList
The SoPathList class is a container for pointers to SoPath objects.
Definition: SoPathList.h:31
SbMatrix::multRight
SbMatrix & multRight(const SbMatrix &m)
Definition: SbMatrix.cpp:1240
SoDragger
The SoDragger class is the base class for all draggers.
Definition: SoDragger.h:53
SbString
The SbString class is a string class with convenience functions for string operations.
Definition: SbString.h:42
SoFullPath::getTail
SoNode * getTail(void) const
Definition: SoFullPath.cpp:74
SbViewVolume::getNearDist
float getNearDist(void) const
Definition: SbViewVolume.cpp:620
SoInteractionKit::readDefaultParts
static void readDefaultParts(const char *fileName, const char defaultBuffer[], int defBufSize)
Definition: SoInteractionKit.cpp:433
SoDragger::FRONT
@ FRONT
Definition: SoDragger.h:63
SoTransformerDragger::antiSquishList
SoNodeList antiSquishList
Definition: SoTransformerDragger.h:259
SoDragger::addFinishCallback
void addFinishCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:611
SoFieldSensor::detach
void detach(void)
Definition: SoFieldSensor.cpp:92
SoInteractionKit::setUpConnections
virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways=0)
Definition: SoInteractionKit.cpp:648
SbVec3f::length
float length(void) const
Definition: SbVec3f.cpp:356
SoDragger::appendRotation
static SbMatrix appendRotation(const SbMatrix &mtx, const SbRotation &rot, const SbVec3f &rotcenter, const SbMatrix *conversion=NULL)
Definition: SoDragger.cpp:1388
SoDragger::USE_PICK
@ USE_PICK
Definition: SoDragger.h:63
SoSurroundScale::invalidate
void invalidate(void)
Definition: SoSurroundScale.cpp:270
SbVec2s
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition: SbVec2s.h:37
SoDragger::getViewVolume
const SbViewVolume & getViewVolume(void)
Definition: SoDragger.cpp:1032
SbProjector::setWorkingSpace
virtual void setWorkingSpace(const SbMatrix &space)
Definition: SbProjector.cpp:133
SoDragger::addValueChangedCallback
void addValueChangedCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:634
SoDragger::setMotionMatrix
void setMotionMatrix(const SbMatrix &newmatrix)
Definition: SoDragger.cpp:905
SoPath::findNode
int findNode(const SoNode *const node) const
Definition: SoPath.cpp:587
SoField
The SoField class is the top-level abstract base class for fields.
Definition: SoField.h:38
SoPath
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:43
SoRotation::rotation
SoSFRotation rotation
Definition: SoRotation.h:40
SoField::setDefault
void setDefault(SbBool def)
Definition: SoField.cpp:650
SoLocateHighlight
The SoLocateHighlight class highlights geometry under the cursor.
Definition: SoLocateHighlight.h:35
SoAntiSquish::recalc
void recalc(void)
Definition: SoAntiSquish.cpp:151
SbPlane::getNormal
const SbVec3f & getNormal(void) const
Definition: SbPlane.cpp:254
SbLineProjector::setLine
void setLine(const SbLine &line)
Definition: SbLineProjector.cpp:131
SoTransformerDragger::~SoTransformerDragger
~SoTransformerDragger()
Definition: SoTransformerDragger.cpp:846
SbSphere
The SbSphere class is a representation of a sphere.
Definition: SbSphere.h:33
SoAntiSquish::sizing
SoSFEnum sizing
Definition: SoAntiSquish.h:47
SoTransformerDragger::setUpConnections
virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways=0)
Definition: SoTransformerDragger.cpp:857
SbMatrix::getTransform
void getTransform(SbVec3f &t, SbRotation &r, SbVec3f &s, SbRotation &so) const
Definition: SbMatrix.cpp:997
SbProjector::setViewVolume
virtual void setViewVolume(const SbViewVolume &vol)
Definition: SbProjector.cpp:112
SoAntiSquish::Sizing
Sizing
Definition: SoAntiSquish.h:42
SoTransformerDragger::dragStart
void dragStart(void)
Definition: SoTransformerDragger.cpp:1109
SoDragger::getWorldToLocalMatrix
SbMatrix getWorldToLocalMatrix(void)
Definition: SoDragger.cpp:791
SbMatrix::multDirMatrix
void multDirMatrix(const SbVec3f &src, SbVec3f &dst) const
Definition: SbMatrix.cpp:1411
SoTransformerDragger::startCB
static void startCB(void *f, SoDragger *d)
Definition: SoTransformerDragger.cpp:1058
SbSphereProjector::setSphere
void setSphere(const SbSphere &sph)
Definition: SbSphereProjector.cpp:121
SoDragger::appendScale
static SbMatrix appendScale(const SbMatrix &mtx, const SbVec3f &scale, const SbVec3f &scalecenter, const SbMatrix *conversion=NULL)
Definition: SoDragger.cpp:1271
SbSphereSectionProjector
The SbSphereSectionProjector projects 2D points to a sliced sphere.
Definition: SbSphereSectionProjector.h:30
SoDragger::isActive
SoSFBool isActive
Definition: SoDragger.h:61
SoDragger::saveStartParameters
virtual void saveStartParameters(void)
Definition: SoDragger.cpp:944
SoTranslation::translation
SoSFVec3f translation
Definition: SoTranslation.h:40
SoSearchAction::setInterest
void setInterest(const Interest interest)
Definition: SoSearchAction.cpp:249
SbVec3f
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
SbVec3f::dot
float dot(const SbVec3f &v) const
Definition: SbVec3f.cpp:282
SoDragger::setDefaultOnNonWritingFields
virtual void setDefaultOnNonWritingFields(void)
Definition: SoDragger.cpp:1743
SbString::sprintf
SbString & sprintf(const char *formatstr,...)
Definition: SbString.h:105
SoBaseKit::connectionsSetUp
SbBool connectionsSetUp
Definition: SoBaseKit.h:142
SoSearchAction::getPaths
SoPathList & getPaths(void)
Definition: SoSearchAction.cpp:331
SoDragger::getStartLocaterPosition
SbVec2s getStartLocaterPosition(void) const
Definition: SoDragger.cpp:1440
SoFieldSensor::attach
void attach(SoField *field)
Definition: SoFieldSensor.cpp:77
SoTransform::scaleFactor
SoSFVec3f scaleFactor
Definition: SoTransform.h:45
SbViewportRegion
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:31
SbViewVolume::projectToScreen
void projectToScreen(const SbVec3f &src, SbVec3f &dst) const
Definition: SbViewVolume.cpp:277
SoDragger::getMotionMatrix
const SbMatrix & getMotionMatrix(void)
Definition: SoDragger.cpp:688
SoDragger::getPartToLocalMatrix
void getPartToLocalMatrix(const SbName &partname, SbMatrix &parttolocalmatrix, SbMatrix &localtopartmatrix)
Definition: SoDragger.cpp:826
SoFieldSensor
The SoFieldSensor class detects changes to a field.
Definition: SoFieldSensor.h:29
SoInteractionKit
The SoInteractionKit class is a base class for draggers.
Definition: SoInteractionKit.h:41
SoSFNode
The SoSFNode class is a container for a single node.
Definition: SoSFNode.h:38
SbLine
The SbLine class represents a line in 3D space.
Definition: SbLine.h:32
SoTransformerDragger::translation
SoSFVec3f translation
Definition: SoTransformerDragger.h:184
SoSeparator
The SoSeparator class is a state-preserving group node.
Definition: SoSeparator.h:34
SbVec3f::normalize
float normalize(void)
Definition: SbVec3f.cpp:436
SoDragger::getViewportRegion
const SbViewportRegion & getViewportRegion(void)
Definition: SoDragger.cpp:1050
SoTransform
The SoTransform class is the "all-purpose" transformation node type.
Definition: SoTransform.h:34
SbViewVolume
The SbViewVolume class is a viewing volume in 3D space.
Definition: SbViewVolume.h:41
SoDragger::getNormalizedLocaterPosition
SbVec2f getNormalizedLocaterPosition(void)
Definition: SoDragger.cpp:1408
SoDragger::setStartingPoint
void setStartingPoint(const SoPickedPoint *newpoint)
Definition: SoDragger.cpp:1014
SoDragger::getPickPath
const SoPath * getPickPath(void) const
Definition: SoDragger.cpp:953
SbLineProjector::project
virtual SbVec3f project(const SbVec2f &point)
Definition: SbLineProjector.cpp:67
SoAntiSquish
The SoAntiSquish class is used to reset to uniform scaling.
Definition: SoAntiSquish.h:33
SoNodeList
The SoNodeList class is a container for pointers to SoNode objects.
Definition: SoNodeList.h:31
SoTransformerDragger::valueChangedCB
static void valueChangedCB(void *f, SoDragger *d)
Definition: SoTransformerDragger.cpp:940
SoDragger::getStartMotionMatrix
const SbMatrix & getStartMotionMatrix(void)
Definition: SoDragger.cpp:930
SbCylinderProjector
The SbCylinderProjector class is the abstract base class for mapping to cylindrical surfaces.
Definition: SbCylinderProjector.h:30
SoSFFloat
The SoSFFloat class is a container for a floating point value.
Definition: SoSFFloat.h:30
SoBaseKit
The SoBaseKit class is the toplevel superclass for nodekits.
Definition: SoBaseKit.h:57
SoNode
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
SoTranslation
The SoTranslation class is a node type for specifying geometry translations.
Definition: SoTranslation.h:31
SoTransformerDragger::metaKeyChangeCB
static void metaKeyChangeCB(void *, SoDragger *)
Definition: SoTransformerDragger.cpp:1082
SoDragger::addStartCallback
void addStartCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:570
SoDragger::getSurrogatePartPickedName
const SbName & getSurrogatePartPickedName(void) const
Definition: SoDragger.cpp:995
SoGroup
The SoGroup class is a node which managed other node instances.
Definition: SoGroup.h:31
SoDragger::setStartLocaterPosition
void setStartLocaterPosition(SbVec2s p)
Definition: SoDragger.cpp:1450
SoTransformerDragger::rotateFieldSensor
SoFieldSensor * rotateFieldSensor
Definition: SoTransformerDragger.h:258
SoTransformerDragger::makeMinorAxisPerpendicularIfColinear
static void makeMinorAxisPerpendicularIfColinear(SbVec2f origin, SbVec2f axisends[3][2], int index_a, int index_b)
Definition: SoTransformerDragger.cpp:1904
SoField::isOfType
SbBool isOfType(const SoType type) const
Definition: SoField.cpp:690
SoInteractionKit::fieldSensorCB
static void fieldSensorCB(void *, SoSensor *)
Definition: SoInteractionKit.cpp:725
SbMatrix::identity
static SbMatrix identity(void)
Definition: SbMatrix.cpp:748
SoEvent
The SoEvent class is the base class for all Coin events.
Definition: SoEvent.h:34
SoTransformerDragger::State
State
Definition: SoTransformerDragger.h:188
SoDragger::addMotionCallback
void addMotionCallback(SoDraggerCB *func, void *data=NULL)
Definition: SoDragger.cpp:591
SbString::getString
const char * getString(void) const
Definition: SbString.h:71
SbVec3f::sqrLength
float sqrLength() const
Definition: SbVec3f.cpp:367
SbPlaneProjector::setPlane
void setPlane(const SbPlane &plane)
Definition: SbPlaneProjector.cpp:183
SoTransformerDragger
The SoTransformerDragger provides geometry for translation, scaling and rotations.
Definition: SoTransformerDragger.h:37
SbPlane
The SbPlane class represents a plane in 3D space.
Definition: SbPlane.h:34
SoDragger::initClass
static void initClass(void)
Definition: SoDragger.cpp:388
SbLineProjector
The SbLineProjector class projects 2D points to 3D points along a line.
Definition: SbLineProjector.h:32
SoTransformerDragger::rotation
SoSFRotation rotation
Definition: SoTransformerDragger.h:183
SoInteractionKit::setPartAsDefault
virtual SbBool setPartAsDefault(const SbName &partname, SoNode *node, SbBool onlyifdefault=1)
Definition: SoInteractionKit.cpp:271
SoTransformerDragger::SoTransformerDragger
SoTransformerDragger(void)
Definition: SoTransformerDragger.cpp:696
SoSearchAction::setSearchingAll
void setSearchingAll(const SbBool searchall)
Definition: SoSearchAction.cpp:278
SbPlaneProjector::project
virtual SbVec3f project(const SbVec2f &point)
Definition: SbPlaneProjector.cpp:101
SoDragger::BACK
@ BACK
Definition: SoDragger.h:63
SoDragger::getLocalToWorldMatrix
SbMatrix getLocalToWorldMatrix(void)
Definition: SoDragger.cpp:776

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Mon Jul 27 2020 for Coin by Doxygen. 1.8.18