1 #ifndef COIN_SODRAGGER_H 2 #define COIN_SODRAGGER_H 36 #include <Inventor/nodekits/SoInteractionKit.h> 37 #include <Inventor/tools/SbPimplPtr.h> 38 #include <Inventor/fields/SoSFBool.h> 40 #include <Inventor/SbMatrix.h> 41 #include <Inventor/SbVec3f.h> 42 #include <Inventor/SbVec2s.h> 43 #include <Inventor/SbViewVolume.h> 44 #include <Inventor/SbViewportRegion.h> 47 #include <Inventor/nodes/SoScale.h> 48 #endif // !COIN_INTERNAL 68 SO_KIT_CATALOG_ENTRY_HEADER(motionMatrix);
84 void setProjectorEpsilon(
const float epsilon);
85 float getProjectorEpsilon(
void)
const;
87 void addStartCallback(
SoDraggerCB * func,
void * data = NULL);
88 void removeStartCallback(
SoDraggerCB * func,
void * data = NULL);
89 void addMotionCallback(
SoDraggerCB * func,
void * data = NULL);
90 void removeMotionCallback(
SoDraggerCB * func,
void * data = NULL);
91 void addFinishCallback(
SoDraggerCB * func,
void * data = NULL);
92 void removeFinishCallback(
SoDraggerCB * func,
void * data = NULL);
93 void addValueChangedCallback(
SoDraggerCB * func,
void * data = NULL);
94 void removeValueChangedCallback(
SoDraggerCB * func,
void * data = NULL);
95 void setMinGesture(
int pixels);
96 int getMinGesture(
void)
const;
97 SbBool enableValueChangedCallbacks(SbBool newval);
98 const SbMatrix & getMotionMatrix(
void);
99 void addOtherEventCallback(
SoDraggerCB * func,
void * data = NULL);
100 void removeOtherEventCallback(
SoDraggerCB * func,
void * data = NULL);
101 void registerChildDragger(
SoDragger * child);
102 void unregisterChildDragger(
SoDragger * child);
103 void registerChildDraggerMovingIndependently(
SoDragger * child);
104 void unregisterChildDraggerMovingIndependently(
SoDragger * child);
105 SbMatrix getLocalToWorldMatrix(
void);
106 SbMatrix getWorldToLocalMatrix(
void);
107 SbVec3f getLocalStartingPoint(
void);
108 SbVec3f getWorldStartingPoint(
void);
109 void getPartToLocalMatrix(
const SbName & partname,
SbMatrix & parttolocalmatrix,
SbMatrix & localtopartmatrix);
110 void transformMatrixLocalToWorld(
const SbMatrix & frommatrix,
SbMatrix & tomatrix);
111 void transformMatrixWorldToLocal(
const SbMatrix & frommatrix,
SbMatrix & tomatrix);
112 void transformMatrixToLocalSpace(
const SbMatrix & frommatrix,
SbMatrix & tomatrix,
const SbName & fromspacepartname);
113 virtual void setMotionMatrix(
const SbMatrix & newmatrix);
114 void valueChanged(
void);
115 const SbMatrix & getStartMotionMatrix(
void);
116 virtual void saveStartParameters(
void);
117 const SoPath * getPickPath(
void)
const;
118 const SoEvent * getEvent(
void)
const;
119 SoPath * createPathToThis(
void);
120 const SoPath * getSurrogatePartPickedOwner(
void)
const;
121 const SbName & getSurrogatePartPickedName(
void)
const;
122 const SoPath * getSurrogatePartPickedPath(
void)
const;
124 void setStartingPoint(
const SbVec3f & newpoint);
131 void setTempPathToThis(
const SoPath * somethingclose);
134 void workFieldsIntoTransform(
SbMatrix & mtx);
135 void setFrontOnProjector(ProjectorFrontSetting newval);
136 ProjectorFrontSetting getFrontOnProjector(
void)
const;
138 static void setMinScale(
float newminscale);
139 static float getMinScale(
void);
146 static void initClass(
void);
153 SbVec2f getNormalizedLocaterPosition(
void);
154 SbVec2s getLocaterPosition(
void);
155 SbVec2s getStartLocaterPosition(
void)
const;
156 void setStartLocaterPosition(
SbVec2s p);
157 SbBool isAdequateConstraintMotion(
void);
158 virtual SbBool shouldGrabBasedOnSurrogate(
const SoPath * pickpath,
const SoPath * surrogatepath);
159 void setCameraInfo(
SoAction * action);
162 void setIgnoreInBbox(SbBool newval);
163 SbBool isIgnoreInBbox(
void);
165 void setActiveChildDragger(
SoDragger * newchilddragger);
166 SoDragger * getActiveChildDragger(
void)
const;
169 static void childTransferMotionAndValueChangedCB(
void *,
SoDragger *);
170 static void childValueChangedCB(
void *,
SoDragger *);
171 static void childStartCB(
void *,
SoDragger *);
172 static void childMotionCB(
void *,
SoDragger *);
173 static void childFinishCB(
void *,
SoDragger *);
174 static void childOtherEventCB(
void *,
SoDragger *);
179 void updateDraggerCache(
const SoPath * path);
184 void updateElements(
class SoState * state);
185 SbBool isPicked(
SoPath * path);
187 static float minscale;
197 #endif // !COIN_SODRAGGER_H The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:49
virtual void search(SoSearchAction *action)
Definition: SoBaseKit.cpp:1099
SoSFBool isActive
Definition: SoDragger.h:71
The SoRayPickAction class does ray intersection with scene graphs.
Definition: SoRayPickAction.h:50
The SoGetMatrixAction class is an action for accumulating the transformation matrix of a subgraph...
Definition: SoGetMatrixAction.h:46
The SoSearchAction class provides methods for searching through scene graphs.
Definition: SoSearchAction.h:44
virtual void handleEvent(SoHandleEventAction *action)
Definition: SoBaseKit.cpp:1075
static void initClasses(void)
Definition: SoNode.cpp:555
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoBaseKit.cpp:1391
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:44
The SoInteractionKit class is a base class for draggers.
Definition: SoInteractionKit.h:50
void SoDraggerCB(void *data, SoDragger *dragger)
Definition: SoDragger.h:62
The SoSFBool class is a container for an SbBool value.
Definition: SoSFBool.h:39
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:52
virtual void getMatrix(SoGetMatrixAction *action)
Definition: SoBaseKit.cpp:1053
The SoDragger class is the base class for all draggers.
Definition: SoDragger.h:64
The SbRotation class represents a rotation in 3D space.
Definition: SbRotation.h:44
virtual void GLRender(SoGLRenderAction *action)
Definition: SoBaseKit.cpp:1023
The SoAction class is the base class for all traversal actions.
Definition: SoAction.h:77
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:51
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition: SbMatrix.h:47
The SoHandleEventAction class distributes user events to the scene.
Definition: SoHandleEventAction.h:46
ProjectorFrontSetting
Definition: SoDragger.h:73
The SoGetPrimitiveCountAction class counts the primitives in a scene.
Definition: SoGetPrimitiveCountAction.h:44
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.
Definition: SoGetBoundingBoxAction.h:45
The SbViewVolume class is a viewing volume in 3D space.
Definition: SbViewVolume.h:50
The SoPickedPoint class is used for specifying picked points.
Definition: SoPickedPoint.h:48
The SoCallbackAction class invokes callbacks at specific nodes.
Definition: SoCallbackAction.h:80
The SoWriteAction class writes a scene graph to file.
Definition: SoWriteAction.h:42
The SoEvent class is the base class for all Coin events.
Definition: SoEvent.h:45
virtual void callback(SoCallbackAction *action)
Definition: SoBaseKit.cpp:1016
virtual void grabEventsSetup(void)
Definition: SoNode.cpp:1327
virtual void grabEventsCleanup(void)
Definition: SoNode.cpp:1336
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:40
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Definition: SoBaseKit.cpp:1030
virtual void write(SoWriteAction *action)
Definition: SoBaseKit.cpp:1131
virtual void rayPick(SoRayPickAction *action)
Definition: SoBaseKit.cpp:1082
virtual void setDefaultOnNonWritingFields()
Definition: SoInteractionKit.cpp:714
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition: SbVec2s.h:51
The SbName class stores strings by reference.
Definition: SbName.h:40
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:50