62 #ifndef vtkInteractorStyleImage_h 63 #define vtkInteractorStyleImage_h 65 #include "vtkInteractionStyleModule.h" 70 #define VTKIS_WINDOW_LEVEL 1024 71 #define VTKIS_SLICE 1025 75 #define VTKIS_IMAGE2D 2 76 #define VTKIS_IMAGE3D 3 77 #define VTKIS_IMAGE_SLICING 4 92 vtkGetVector2Macro(WindowLevelStartPosition,
int);
93 vtkGetVector2Macro(WindowLevelCurrentPosition,
int);
119 virtual void WindowLevel();
121 virtual void Slice();
124 virtual void StartWindowLevel();
125 virtual void EndWindowLevel();
126 virtual void StartPick();
127 virtual void EndPick();
128 virtual void StartSlice();
129 virtual void EndSlice();
139 vtkGetMacro(InteractionMode,
int);
150 vtkSetVector3Macro(XViewRightVector,
double);
151 vtkGetVector3Macro(XViewRightVector,
double);
152 vtkSetVector3Macro(XViewUpVector,
double);
153 vtkGetVector3Macro(XViewUpVector,
double);
154 vtkSetVector3Macro(YViewRightVector,
double);
155 vtkGetVector3Macro(YViewRightVector,
double);
156 vtkSetVector3Macro(YViewUpVector,
double);
157 vtkGetVector3Macro(YViewUpVector,
double);
158 vtkSetVector3Macro(ZViewRightVector,
double);
159 vtkGetVector3Macro(ZViewRightVector,
double);
160 vtkSetVector3Macro(ZViewUpVector,
double);
161 vtkGetVector3Macro(ZViewUpVector,
double);
173 void SetImageOrientation(
const double leftToRight[3],
const double bottomToTop[3]);
185 virtual void SetCurrentImageNumber(
int i);
200 int WindowLevelStartPosition[2];
201 int WindowLevelCurrentPosition[2];
202 double WindowLevelInitial[2];
207 double XViewRightVector[3];
208 double XViewUpVector[3];
209 double YViewRightVector[3];
210 double YViewUpVector[3];
211 double ZViewRightVector[3];
212 double ZViewUpVector[3];
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.