55 static void initClass(
void);
59 virtual void handleEvent(SoHandleEventAction * action);
60 virtual SbBool isAnimating(
void);
61 virtual void preRender(SoGLRenderAction * action);
62 virtual void resetCameraFocalDistance(
const SbViewportRegion & vpr);
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);
79 void pan(
const SbVec2f & mousepos,
const SbVec2f & prevpos);
80 void zoom(SoCamera * camera,
const float diffvalue);
81 void zoomByCursor(
const SbVec2f & mousepos,
const SbVec2f & prevpos);
82 void pan(SoCamera * cam,
83 float aspectratio,
const SbPlane & panningplane,
84 const SbVec2f & currpos,
const SbVec2f & prevpos);
86 SbVec2f lastmouseposition;
89 SbBool spinanimatingallowed;
90 SbVec2f lastspinposition;
91 int spinsamplecounter;
92 SbRotation spinincrement;
93 SbSphereSheetProjector * spinprojector;
95 SbRotation spinRotation;
97 SbBool axiscrossEnabled;
118 SbBool ctrldown, shiftdown;
121 void addToLog(
const SbVec2s pos,
const SbTime time);
123 SbTime prevRedrawTime;
125 SbBool motion3OnCamera;
138 ViewerMode currentmode;
139 void setMode(
const ViewerMode mode);
141 void setCursorRepresentation(
int mode);
143 SbBool button3enabled;