28 #ifndef __VTKViewer_InteractorStyle_h 
   29 #define __VTKViewer_InteractorStyle_h 
   31 #include <vtkInteractorStyle.h> 
   35 class vtkTDxInteractorStyle;
 
   53 #define VTK_INTERACTOR_STYLE_CAMERA_NONE    0 
   54 #define VTK_INTERACTOR_STYLE_CAMERA_ROTATE  1 
   55 #define VTK_INTERACTOR_STYLE_CAMERA_PAN     2 
   56 #define VTK_INTERACTOR_STYLE_CAMERA_ZOOM    3 
   57 #define VTK_INTERACTOR_STYLE_CAMERA_SPIN    4 
   58 #define VTK_INTERACTOR_STYLE_CAMERA_FIT        5 
   59 #define VTK_INTERACTOR_STYLE_CAMERA_SELECT     6 
   60 #define VTK_INTERACTOR_STYLE_CAMERA_GLOBAL_PAN 7 
   63 #pragma warning ( disable:4251 ) 
   79   void setGUIWindow(
QWidget* theWindow);
 
   82   void setPreselectionProp(
const double& theRed = 0, 
const double& theGreen = 1,
 
   83                            const double& theBlue = 1, 
const int& theWidth = 5);
 
   86   void OnMouseMove  (
int ctrl, 
int shift, 
int x, 
int y);
 
   87   void OnLeftButtonDown(
int ctrl, 
int shift, 
int x, 
int y);
 
   88   void OnLeftButtonUp  (
int ctrl, 
int shift, 
int x, 
int y);
 
   89   void OnMiddleButtonDown(
int ctrl, 
int shift, 
int x, 
int y);
 
   90   void OnMiddleButtonUp  (
int ctrl, 
int shift, 
int x, 
int y);
 
   91   void OnRightButtonDown(
int ctrl, 
int shift, 
int x, 
int y);
 
   92   void OnRightButtonUp  (
int ctrl, 
int shift, 
int x, 
int y);
 
   94   void OnSelectionModeChanged();
 
   97   void ViewFitSelection();
 
  101   bool                     IsFilterPresent( 
const int );
 
  102   void                     RemoveFilter( 
const int );
 
  105                                     const bool    theIsNode = 
false );
 
  107   void                     IncrementalPan   ( 
const int incrX, 
const int incrY );
 
  108   void                     IncrementalZoom  ( 
const int incr );
 
  109   void                     IncrementalRotate( 
const int incrX, 
const int incrY );
 
  119   void RotateXY(
int dx, 
int dy);
 
  120   void PanXY(
int x, 
int y, 
int oldX, 
int oldY);
 
  121   void DollyXY(
int dx, 
int dy);
 
  122   void SpinXY(
int dx, 
int dy, 
int oldX, 
int oldY);
 
  123   void fitRect(
const int left, 
const int top, 
const int right, 
const int bottom);
 
  124   void Place(
const int theX, 
const int theY);
 
  125   void TranslateView(
int toX, 
int toY, 
int fromX, 
int fromY);
 
  126   bool IsInRect(vtkActor* theActor, 
 
  127                 const int left, 
const int top, 
 
  128                 const int right, 
const int bottom);
 
  129   bool IsInRect(vtkCell* theCell, 
 
  130                 const int left, 
const int top, 
 
  131                 const int right, 
const int bottom);
 
  132   bool IsInRect(
double* thePoint, 
 
  133                 const int left, 
const int top, 
 
  134                 const int right, 
const int bottom);
 
  151   void startGlobalPan();
 
  156   bool needsRedrawing();
 
  160   void startOperation(
int operation);
 
  161   virtual void onStartOperation();
 
  162   virtual void onFinishOperation();
 
  163   virtual void onOperation(QPoint mousePos);
 
  164   virtual void onCursorMove(QPoint mousePos);
 
  165   virtual void setCursor(
const int operation);
 
  202 #pragma warning ( default:4251 )