16 #ifndef __vtkThreeDViewInteractorStyle_h 17 #define __vtkThreeDViewInteractorStyle_h 24 #include "vtkObject.h" 25 #include "vtkInteractorStyle.h" 26 #include "vtkSmartPointer.h" 28 #include "vtkMRMLDisplayableManagerExport.h" 52 public vtkInteractorStyle
57 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
61 virtual void OnChar() VTK_OVERRIDE;
62 virtual
void OnKeyPress() VTK_OVERRIDE;
63 virtual
void OnKeyRelease() VTK_OVERRIDE;
68 virtual
void OnMouseMove() VTK_OVERRIDE;
69 virtual
void OnLeave() VTK_OVERRIDE;
70 virtual
void OnLeftButtonDown() VTK_OVERRIDE;
71 virtual
void OnLeftButtonUp() VTK_OVERRIDE;
72 virtual
void OnMiddleButtonDown() VTK_OVERRIDE;
73 virtual
void OnMiddleButtonUp() VTK_OVERRIDE;
74 virtual
void OnRightButtonDown() VTK_OVERRIDE;
75 virtual
void OnRightButtonUp() VTK_OVERRIDE;
76 virtual
void OnMouseWheelForward() VTK_OVERRIDE;
77 virtual
void OnMouseWheelBackward() VTK_OVERRIDE;
83 virtual
void Rotate() VTK_OVERRIDE;
84 virtual
void Spin() VTK_OVERRIDE;
85 virtual
void Pan() VTK_OVERRIDE;
86 virtual
void Dolly() VTK_OVERRIDE;
87 virtual
void Dolly(
double factor);
89 virtual
void OnExpose() VTK_OVERRIDE;
94 vtkSetObjectMacro ( CameraNode, vtkMRMLCameraNode );
98 virtual
void SetInteractor(vtkRenderWindowInteractor *interactor) VTK_OVERRIDE;
103 virtual
void SetModelDisplayableManager(vtkMRMLModelDisplayableManager *modelDisplayableManager);
107 ~vtkThreeDViewInteractorStyle();
109 bool Pick(
int x,
int y,
double pickPoint[3]);
111 vtkMRMLCameraNode *CameraNode;
117 bool ShiftKeyUsedForPreviousAction;
126 int NumberOfTransientPlaces;
130 vtkMRMLModelDisplayableManager * ModelDisplayableManager;
133 vtkSmartPointer<vtkCellPicker> CellPicker;
136 vtkThreeDViewInteractorStyle(const vtkThreeDViewInteractorStyle&);
137 void operator=(const vtkThreeDViewInteractorStyle&);
Manage display nodes with polydata in 3D views.
Interactive manipulation of the camera.
MRML node to represent camera node.