59 #ifndef vtkInteractorStyleImage_h
60 #define vtkInteractorStyleImage_h
62 #include "vtkInteractionStyleModule.h"
67 #define VTKIS_WINDOW_LEVEL 1024
68 #define VTKIS_SLICE 1025
72 #define VTKIS_IMAGE2D 2
73 #define VTKIS_IMAGE3D 3
74 #define VTKIS_IMAGE_SLICING 4
89 vtkGetVector2Macro(WindowLevelStartPosition,
int);
90 vtkGetVector2Macro(WindowLevelCurrentPosition,
int);
136 vtkGetMacro(InteractionMode,
int);
147 vtkSetVector3Macro(XViewRightVector,
double);
148 vtkGetVector3Macro(XViewRightVector,
double);
149 vtkSetVector3Macro(XViewUpVector,
double);
150 vtkGetVector3Macro(XViewUpVector,
double);
151 vtkSetVector3Macro(YViewRightVector,
double);
152 vtkGetVector3Macro(YViewRightVector,
double);
153 vtkSetVector3Macro(YViewUpVector,
double);
154 vtkGetVector3Macro(YViewUpVector,
double);
155 vtkSetVector3Macro(ZViewRightVector,
double);
156 vtkGetVector3Macro(ZViewRightVector,
double);
157 vtkSetVector3Macro(ZViewUpVector,
double);
158 vtkGetVector3Macro(ZViewUpVector,
double);
197 int WindowLevelStartPosition[2];
198 int WindowLevelCurrentPosition[2];
199 double WindowLevelInitial[2];
204 double XViewRightVector[3];
205 double XViewUpVector[3];
206 double YViewRightVector[3];
207 double YViewUpVector[3];
208 double ZViewRightVector[3];
209 double ZViewUpVector[3];
a simple class to control print indentation
interactive manipulation of the camera specialized for images
virtual void StartWindowLevel()
void OnRightButtonUp() override
void SetInteractionModeToImage2D()
void SetInteractionModeToImageSlicing()
static vtkInteractorStyleImage * New()
void OnMiddleButtonDown() override
~vtkInteractorStyleImage() override
virtual void StartSlice()
void OnLeftButtonUp() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnRightButtonDown() override
void OnLeftButtonDown() override
void OnMiddleButtonUp() override
virtual void SetCurrentImageNumber(int i)
Set the image to use for WindowLevel interaction.
vtkImageProperty * CurrentImageProperty
void SetInteractionModeToImage3D()
vtkImageProperty * GetCurrentImageProperty()
Get the current image property, which is set when StartWindowLevel is called immediately before Start...
vtkInteractorStyleImage()
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void SetImageOrientation(const double leftToRight[3], const double bottomToTop[3])
Set the view orientation, in terms of the horizontal and vertical directions of the computer screen.
virtual void EndWindowLevel()
void OnChar() override
Override the "fly-to" (f keypress) for images.
int GetCurrentImageNumber()
virtual void WindowLevel()
interactive manipulation of the camera
#define VTKIS_IMAGE_SLICING