27 #ifndef __SVTK_InteractorStyle_h
28 #define __SVTK_InteractorStyle_h
34 #include <boost/shared_ptr.hpp>
36 #include <vtkInteractorStyle.h>
37 #include <vtkSmartPointer.h>
44 #include <vtkObject.h>
47 #pragma warning ( disable:4251 )
62 void SetStartValue(
const int );
68 virtual int Increase();
71 virtual int Decrease();
128 class vtkPointPicker;
129 class vtkTDxInteractorStyle;
139 #define VTK_INTERACTOR_STYLE_CAMERA_NONE 0
140 #define VTK_INTERACTOR_STYLE_CAMERA_ROTATE 1
141 #define VTK_INTERACTOR_STYLE_CAMERA_PAN 2
142 #define VTK_INTERACTOR_STYLE_CAMERA_ZOOM 3
143 #define VTK_INTERACTOR_STYLE_CAMERA_SPIN 4
144 #define VTK_INTERACTOR_STYLE_CAMERA_FIT 5
145 #define VTK_INTERACTOR_STYLE_CAMERA_SELECT 6
146 #define VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN 7
147 #define VTK_INTERACTOR_STYLE_CAMERA_SELECT_ROTATION_POINT 8
176 virtual void Render();
179 virtual void OnTimer();
182 virtual void OnConfigure();
185 virtual void OnMouseMove();
188 virtual void OnLeftButtonDown();
191 virtual void OnLeftButtonUp();
194 virtual void OnMiddleButtonDown();
197 virtual void OnMiddleButtonUp();
200 virtual void OnRightButtonDown();
203 virtual void OnRightButtonUp();
206 virtual void OnMouseWheelForward();
209 virtual void OnMouseWheelBackward();
212 virtual void OnMouseButtonDoubleClick();
215 virtual void OnChar();
221 void SetIncrementSpeed(
const int,
const int = 0);
227 virtual void OnKeyDown();
230 void ActionPicking();
243 { myPoligonState = thePolygonState; }
259 virtual void OnMouseMove (
int ctrl,
int shift,
int x,
int y);
260 virtual void OnLeftButtonDown(
int ctrl,
int shift,
int x,
int y);
261 virtual void OnLeftButtonUp (
int ctrl,
int shift,
int x,
int y);
262 virtual void OnMiddleButtonDown(
int ctrl,
int shift,
int x,
int y);
263 virtual void OnMiddleButtonUp (
int ctrl,
int shift,
int x,
int y);
264 virtual void OnRightButtonDown(
int ctrl,
int shift,
int x,
int y);
265 virtual void OnRightButtonUp (
int ctrl,
int shift,
int x,
int y);
267 void RotateXY(
int dx,
int dy);
268 void PanXY(
int x,
int y,
int oldX,
int oldY);
269 void DollyXY(
int dx,
int dy);
270 void SpinXY(
int dx,
int dy,
int oldX,
int oldY);
271 void fitRect(
const int left,
const int top,
const int right,
const int bottom);
272 void Place(
const int theX,
const int theY);
273 void TranslateView(
int toX,
int toY,
int fromX,
int fromY);
276 IncrementalPan(
const int incrX,
const int incrY );
279 IncrementalZoom(
const int incr );
282 IncrementalRotate(
const int incrX,
const int incrY );
299 void startGlobalPan();
304 void startPointSelection();
305 void startFocalPointSelection();
309 void startOperation(
int operation);
310 void onStartOperation();
311 virtual void onFinishOperation();
312 void onOperation(QPoint mousePos);
313 void onCursorMove(QPoint mousePos);
314 void setCursor(
const int operation);
316 void onSpaceMouseMove(
double* data );
317 virtual void onSpaceMouseButton(
int button );
319 void DominantCombinedSwitch();
324 void endDrawPolygon();
371 double myBBCenter[3];
383 #pragma warning ( default:4251 )