77#ifndef vtkInteractorStyleImage_h
78#define vtkInteractorStyleImage_h
80#include "vtkInteractionStyleModule.h"
85#define VTKIS_WINDOW_LEVEL 1024
86#define VTKIS_SLICE 1025
90#define VTKIS_IMAGE2D 2
91#define VTKIS_IMAGE3D 3
92#define VTKIS_IMAGE_SLICING 4
107 vtkGetVector2Macro(WindowLevelStartPosition,
int);
108 vtkGetVector2Macro(WindowLevelCurrentPosition,
int);
154 vtkGetMacro(InteractionMode,
int);
165 vtkSetVector3Macro(XViewRightVector,
double);
166 vtkGetVector3Macro(XViewRightVector,
double);
167 vtkSetVector3Macro(XViewUpVector,
double);
168 vtkGetVector3Macro(XViewUpVector,
double);
169 vtkSetVector3Macro(YViewRightVector,
double);
170 vtkGetVector3Macro(YViewRightVector,
double);
171 vtkSetVector3Macro(YViewUpVector,
double);
172 vtkGetVector3Macro(YViewUpVector,
double);
173 vtkSetVector3Macro(ZViewRightVector,
double);
174 vtkGetVector3Macro(ZViewRightVector,
double);
175 vtkSetVector3Macro(ZViewUpVector,
double);
176 vtkGetVector3Macro(ZViewUpVector,
double);
215 int WindowLevelStartPosition[2];
216 int WindowLevelCurrentPosition[2];
217 double WindowLevelInitial[2];
222 double XViewRightVector[3];
223 double XViewUpVector[3];
224 double YViewRightVector[3];
225 double YViewUpVector[3];
226 double ZViewRightVector[3];
227 double ZViewUpVector[3];
a simple class to control print indentation
interactive manipulation of the camera specialized for images
virtual void StartWindowLevel()
void OnRightButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void SetInteractionModeToImage2D()
Set/Get current mode to 2D or 3D.
void SetInteractionModeToImageSlicing()
Set/Get current mode to 2D or 3D.
void OnMiddleButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
~vtkInteractorStyleImage() override
virtual void StartSlice()
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
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 OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnMiddleButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
virtual void SetCurrentImageNumber(int i)
Set the image to use for WindowLevel interaction.
vtkImageProperty * CurrentImageProperty
void SetInteractionModeToImage3D()
Set/Get current mode to 2D or 3D.
static vtkInteractorStyleImage * New()
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