56 #ifndef vtkInteractorStyleImage_h
57 #define vtkInteractorStyleImage_h
59 #include "vtkInteractionStyleModule.h"
64 #define VTKIS_WINDOW_LEVEL 1024
65 #define VTKIS_SLICE 1025
69 #define VTKIS_IMAGE2D 2
70 #define VTKIS_IMAGE3D 3
71 #define VTKIS_IMAGE_SLICING 4
73 VTK_ABI_NAMESPACE_BEGIN
87 vtkGetVector2Macro(WindowLevelStartPosition,
int);
88 vtkGetVector2Macro(WindowLevelCurrentPosition,
int);
114 virtual void WindowLevel();
116 virtual void Slice();
119 virtual void StartWindowLevel();
120 virtual void EndWindowLevel();
121 virtual void StartPick();
122 virtual void EndPick();
123 virtual void StartSlice();
124 virtual void EndSlice();
134 vtkGetMacro(InteractionMode,
int);
145 vtkSetVector3Macro(XViewRightVector,
double);
146 vtkGetVector3Macro(XViewRightVector,
double);
147 vtkSetVector3Macro(XViewUpVector,
double);
148 vtkGetVector3Macro(XViewUpVector,
double);
149 vtkSetVector3Macro(YViewRightVector,
double);
150 vtkGetVector3Macro(YViewRightVector,
double);
151 vtkSetVector3Macro(YViewUpVector,
double);
152 vtkGetVector3Macro(YViewUpVector,
double);
153 vtkSetVector3Macro(ZViewRightVector,
double);
154 vtkGetVector3Macro(ZViewRightVector,
double);
155 vtkSetVector3Macro(ZViewUpVector,
double);
156 vtkGetVector3Macro(ZViewUpVector,
double);
168 void SetImageOrientation(
const double leftToRight[3],
const double bottomToTop[3]);
180 virtual void SetCurrentImageNumber(
int i);
195 int WindowLevelStartPosition[2];
196 int WindowLevelCurrentPosition[2];
197 double WindowLevelInitial[2];
202 double XViewRightVector[3];
203 double XViewUpVector[3];
204 double YViewRightVector[3];
205 double YViewUpVector[3];
206 double ZViewRightVector[3];
207 double ZViewUpVector[3];
214 VTK_ABI_NAMESPACE_END
void OnMiddleButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
int GetCurrentImageNumber()
void OnChar() override
OnChar is triggered when an ASCII key is pressed.
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
void SetInteractionModeToImage2D()
Set/Get current mode to 2D or 3D.
vtkImageProperty * CurrentImageProperty
a simple class to control print indentation
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnMiddleButtonDown() 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.
void OnRightButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnRightButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
interactive manipulation of the camera
void OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void SetInteractionModeToImageSlicing()
Set/Get current mode to 2D or 3D.
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.