1 #ifndef SMALLCHANGE_SMEXAMINEREVENTHANDLER_H 2 #define SMALLCHANGE_SMEXAMINEREVENTHANDLER_H 37 #include <SmallChange/basic.h> 38 #include <Inventor/SbTime.h> 39 #include <Inventor/SbVec2f.h> 40 #include <Inventor/SbVec2s.h> 41 #include <Inventor/SbRotation.h> 42 #include <Inventor/SbPlane.h> 43 #include <Inventor/fields/SoSFBool.h> 67 virtual float clampZoom(
const float val);
68 void enableButton3Movement(
const SbBool onoff);
71 void setMotion3OnCamera(SbBool enable);
72 SbBool getMotion3OnCamera(
void)
const;
74 float rotXWheelMotion(
float value,
float old);
75 float rotYWheelMotion(
float value,
float old);
77 void reorientCamera(
const SbRotation & rotation);
78 void spin(
const SbVec2f & mousepos);
80 void zoom(
SoCamera * camera,
const float diffvalue);
81 void zoomByCursor(
const SbVec2f & mousepos,
const SbVec2f & prevpos);
83 float aspectratio,
const SbPlane & panningplane,
89 SbBool spinanimatingallowed;
91 int spinsamplecounter;
97 SbBool axiscrossEnabled;
118 SbBool ctrldown, shiftdown;
125 SbBool motion3OnCamera;
138 ViewerMode currentmode;
139 void setMode(
const ViewerMode mode);
141 void setCursorRepresentation(
int mode);
143 SbBool button3enabled;
147 #endif // SMALLCHANGE_SMEXAMINEREVENTHANDLER_H
The SmEventHandler class...FIXME: doc.
Definition: SmEventHandler.h:50
The SmExaminerEventHandler class...FIXME: doc.
Definition: SmExaminerEventHandler.h:48
#define SO_NODE_HEADER(classname)
SbVec2s * position
Definition: SmExaminerEventHandler.h:104
virtual void preRender(SoGLRenderAction *action)
Definition: SmEventHandler.cpp:129
virtual SbBool isAnimating(void)
Definition: SmEventHandler.cpp:141
static SbSphereSheetProjector * spinprojector
Definition: cameracontrol.cpp:18
virtual void resetCameraFocalDistance(const SbViewportRegion &vpr)
Definition: SmEventHandler.cpp:147
short historysize
Definition: SmExaminerEventHandler.h:103
SbTime * time
Definition: SmExaminerEventHandler.h:105
SoSFBool enableSpin
Definition: SmExaminerEventHandler.h:57
short size
Definition: SmExaminerEventHandler.h:102
virtual void handleEvent(SoHandleEventAction *action)
static void initClass(void)
Definition: SmEventHandler.cpp:65