59 #ifndef vtkInteractorStyleImage_h 60 #define vtkInteractorStyleImage_h 62 #include "vtkInteractionStyleModule.h" 67 #define VTKIS_WINDOW_LEVEL 1024 68 #define VTKIS_PICK 1025 69 #define VTKIS_SLICE 1026 73 #define VTKIS_IMAGE2D 2 74 #define VTKIS_IMAGE3D 3 75 #define VTKIS_IMAGE_SLICING 4 90 vtkGetVector2Macro(WindowLevelStartPosition,
int);
91 vtkGetVector2Macro(WindowLevelCurrentPosition,
int);
100 void OnLeftButtonDown() VTK_OVERRIDE;
101 void OnLeftButtonUp() VTK_OVERRIDE;
102 void OnMiddleButtonDown() VTK_OVERRIDE;
103 void OnMiddleButtonUp() VTK_OVERRIDE;
104 void OnRightButtonDown() VTK_OVERRIDE;
105 void OnRightButtonUp() VTK_OVERRIDE;
111 void OnChar() VTK_OVERRIDE;
117 virtual
void WindowLevel();
119 virtual
void Slice();
122 virtual
void StartWindowLevel();
123 virtual
void EndWindowLevel();
124 virtual
void StartPick();
125 virtual
void EndPick();
126 virtual
void StartSlice();
127 virtual
void EndSlice();
137 vtkGetMacro(InteractionMode,
int);
138 void SetInteractionModeToImage2D() {
151 vtkSetVector3Macro(XViewRightVector,
double);
152 vtkGetVector3Macro(XViewRightVector,
double);
153 vtkSetVector3Macro(XViewUpVector,
double);
154 vtkGetVector3Macro(XViewUpVector,
double);
155 vtkSetVector3Macro(YViewRightVector,
double);
156 vtkGetVector3Macro(YViewRightVector,
double);
157 vtkSetVector3Macro(YViewUpVector,
double);
158 vtkGetVector3Macro(YViewUpVector,
double);
159 vtkSetVector3Macro(ZViewRightVector,
double);
160 vtkGetVector3Macro(ZViewRightVector,
double);
161 vtkSetVector3Macro(ZViewUpVector,
double);
162 vtkGetVector3Macro(ZViewUpVector,
double);
174 void SetImageOrientation(
const double leftToRight[3],
175 const double bottomToTop[3]);
187 virtual void SetCurrentImageNumber(
int i);
197 return this->CurrentImageProperty; }
203 int WindowLevelStartPosition[2];
204 int WindowLevelCurrentPosition[2];
205 double WindowLevelInitial[2];
207 int CurrentImageNumber;
210 double XViewRightVector[3];
211 double XViewUpVector[3];
212 double YViewRightVector[3];
213 double YViewUpVector[3];
214 double ZViewRightVector[3];
215 double ZViewUpVector[3];
int GetCurrentImageNumber()
vtkImageProperty * GetCurrentImageProperty()
Get the current image property, which is set when StartWindowLevel is called immediately before Start...
void SetInteractionModeToImage3D()
Set/Get current mode to 2D or 3D.
static vtkInteractorStyleTrackballCamera * New()
interactive manipulation of the camera specialized for images
a simple class to control print indentation
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
#define VTKIS_IMAGE_SLICING
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
interactive manipulation of the camera
void SetInteractionModeToImageSlicing()
Set/Get current mode to 2D or 3D.