67 #ifndef vtkInteractorStyleImage_h
68 #define vtkInteractorStyleImage_h
75 #define VTKIS_WINDOW_LEVEL 1024
76 #define VTKIS_PICK 1025
77 #define VTKIS_SLICE 1026
81 #define VTKIS_IMAGE2D 2
82 #define VTKIS_IMAGE3D 3
83 #define VTKIS_IMAGE_SLICING 4
96 vtkGetVector2Macro(WindowLevelStartPosition,
int);
97 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();
137 vtkGetMacro(InteractionMode,
int);
149 vtkSetVector3Macro(XViewRightVector,
double);
150 vtkGetVector3Macro(XViewRightVector,
double);
151 vtkSetVector3Macro(XViewUpVector,
double);
152 vtkGetVector3Macro(XViewUpVector,
double);
153 vtkSetVector3Macro(YViewRightVector,
double);
154 vtkGetVector3Macro(YViewRightVector,
double);
155 vtkSetVector3Macro(YViewUpVector,
double);
156 vtkGetVector3Macro(YViewUpVector,
double);
157 vtkSetVector3Macro(ZViewRightVector,
double);
158 vtkGetVector3Macro(ZViewRightVector,
double);
159 vtkSetVector3Macro(ZViewUpVector,
double);
160 vtkGetVector3Macro(ZViewUpVector,
double);
170 void SetImageOrientation(
const double leftToRight[3],
171 const double bottomToTop[3]);
180 return this->CurrentImageProperty; }
187 void SetCurrentImageToNthImage(
int i);
189 int WindowLevelStartPosition[2];
190 int WindowLevelCurrentPosition[2];
191 double WindowLevelInitial[2];
195 double XViewRightVector[3];
196 double XViewUpVector[3];
197 double YViewRightVector[3];
198 double YViewUpVector[3];
199 double ZViewRightVector[3];
200 double ZViewUpVector[3];
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageProperty * GetCurrentImageProperty()
void SetInteractionModeToImage3D()
#define VTKINTERACTIONSTYLE_EXPORT
virtual void OnMiddleButtonUp()
virtual void OnRightButtonUp()
static vtkInteractorStyleTrackballCamera * New()
interactive manipulation of the camera specialized for images
virtual void OnLeftButtonDown()
void SetInteractionModeToImage2D()
vtkImageProperty * CurrentImageProperty
a simple class to control print indentation
virtual void OnMiddleButtonDown()
virtual void OnMouseMove()
virtual void OnRightButtonDown()
#define VTKIS_IMAGE_SLICING
interactive manipulation of the camera
virtual void OnLeftButtonUp()
void SetInteractionModeToImageSlicing()