65 #ifndef vtkInteractorStyleImage_h
66 #define vtkInteractorStyleImage_h
68 #include "vtkInteractionStyleModule.h"
73 #define VTKIS_WINDOW_LEVEL 1024
74 #define VTKIS_PICK 1025
75 #define VTKIS_SLICE 1026
79 #define VTKIS_IMAGE2D 2
80 #define VTKIS_IMAGE3D 3
81 #define VTKIS_IMAGE_SLICING 4
96 vtkGetVector2Macro(WindowLevelStartPosition,
int);
97 vtkGetVector2Macro(WindowLevelCurrentPosition,
int);
143 vtkGetMacro(InteractionMode,
int);
157 vtkSetVector3Macro(XViewRightVector,
double);
158 vtkGetVector3Macro(XViewRightVector,
double);
159 vtkSetVector3Macro(XViewUpVector,
double);
160 vtkGetVector3Macro(XViewUpVector,
double);
161 vtkSetVector3Macro(YViewRightVector,
double);
162 vtkGetVector3Macro(YViewRightVector,
double);
163 vtkSetVector3Macro(YViewUpVector,
double);
164 vtkGetVector3Macro(YViewUpVector,
double);
165 vtkSetVector3Macro(ZViewRightVector,
double);
166 vtkGetVector3Macro(ZViewRightVector,
double);
167 vtkSetVector3Macro(ZViewUpVector,
double);
168 vtkGetVector3Macro(ZViewUpVector,
double);
181 const double bottomToTop[3]);
203 return this->CurrentImageProperty; }
209 int WindowLevelStartPosition[2];
210 int WindowLevelCurrentPosition[2];
211 double WindowLevelInitial[2];
216 double XViewRightVector[3];
217 double XViewUpVector[3];
218 double YViewRightVector[3];
219 double YViewUpVector[3];
220 double ZViewRightVector[3];
221 double ZViewUpVector[3];
a simple class to control print indentation
interactive manipulation of the camera specialized for images
virtual void OnChar()
Override the "fly-to" (f keypress) for images.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void StartWindowLevel()
virtual void OnRightButtonDown()
void SetInteractionModeToImage2D()
void SetInteractionModeToImageSlicing()
static vtkInteractorStyleImage * New()
virtual void StartSlice()
virtual void OnLeftButtonDown()
virtual void OnMouseMove()
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
~vtkInteractorStyleImage()
virtual void OnMiddleButtonDown()
virtual void OnMiddleButtonUp()
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...
virtual void OnRightButtonUp()
vtkInteractorStyleImage()
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()
virtual void OnLeftButtonUp()
int GetCurrentImageNumber()
virtual void WindowLevel()
interactive manipulation of the camera
#define VTKIS_IMAGE_SLICING