#include <vtkInteractorStyleImage.h>
vtkInteractorStyleImage allows the user to interactively manipulate (rotate, pan, zoomm etc.) the camera. vtkInteractorStyleImage is specially designed to work with images that are being rendered with vtkImageActor. Several events are overloaded from its superclass vtkInteractorStyle, hence the mouse bindings are different. (The bindings keep the camera's view plane normal perpendicular to the x-y plane.) In summary the mouse events are as follows: + Left Mouse button triggers window level events + CTRL Left Mouse spins the camera around its view plane normal + SHIFT Left Mouse pans the camera + CTRL SHIFT Left Mouse dollys (a positional zoom) the camera + Middle mouse button pans the camera + Right mouse button dollys the camera. + SHIFT Right Mouse triggers pick events
Note that the renderer's actors are not moved; instead the camera is moved.
Definition at line 59 of file vtkInteractorStyleImage.h.
Public Types | |
typedef vtkInteractorStyleTrackballCamera | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | OnChar () |
virtual void | WindowLevel () |
virtual void | Pick () |
virtual void | StartWindowLevel () |
virtual void | EndWindowLevel () |
virtual void | StartPick () |
virtual void | EndPick () |
virtual int * | GetWindowLevelStartPosition () |
virtual void | GetWindowLevelStartPosition (int &, int &) |
virtual void | GetWindowLevelStartPosition (int[2]) |
virtual int * | GetWindowLevelCurrentPosition () |
virtual void | GetWindowLevelCurrentPosition (int &, int &) |
virtual void | GetWindowLevelCurrentPosition (int[2]) |
virtual void | OnMouseMove () |
virtual void | OnLeftButtonDown () |
virtual void | OnLeftButtonUp () |
virtual void | OnRightButtonDown () |
virtual void | OnRightButtonUp () |
Static Public Member Functions | |
static vtkInteractorStyleImage * | New () |
static int | IsTypeOf (const char *type) |
static vtkInteractorStyleImage * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkInteractorStyleImage () | |
~vtkInteractorStyleImage () | |
Protected Attributes | |
int | WindowLevelStartPosition [2] |
int | WindowLevelCurrentPosition [2] |
Reimplemented from vtkInteractorStyleTrackballCamera.
Reimplemented in vtkInteractorStyleTreeMapHover.
Definition at line 63 of file vtkInteractorStyleImage.h.
vtkInteractorStyleImage::vtkInteractorStyleImage | ( | ) | [protected] |
vtkInteractorStyleImage::~vtkInteractorStyleImage | ( | ) | [protected] |
static vtkInteractorStyleImage* vtkInteractorStyleImage::New | ( | ) | [static] |
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. This class should not normally be instantiated by application programmers.
Reimplemented from vtkInteractorStyleTrackballCamera.
Reimplemented in vtkInteractorStyleTreeMapHover.
virtual const char* vtkInteractorStyleImage::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkInteractorStyleTrackballCamera.
Reimplemented in vtkInteractorStyleTreeMapHover.
static int vtkInteractorStyleImage::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkInteractorStyleTrackballCamera.
Reimplemented in vtkInteractorStyleTreeMapHover.
virtual int vtkInteractorStyleImage::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkInteractorStyleTrackballCamera.
Reimplemented in vtkInteractorStyleTreeMapHover.
static vtkInteractorStyleImage* vtkInteractorStyleImage::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkInteractorStyleTrackballCamera.
Reimplemented in vtkInteractorStyleTreeMapHover.
void vtkInteractorStyleImage::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkInteractorStyleTrackballCamera.
Reimplemented in vtkInteractorStyleTreeMapHover.
virtual int* vtkInteractorStyleImage::GetWindowLevelStartPosition | ( | ) | [virtual] |
Some useful information for handling window level
virtual void vtkInteractorStyleImage::GetWindowLevelStartPosition | ( | int & | , | |
int & | ||||
) | [virtual] |
Some useful information for handling window level
virtual void vtkInteractorStyleImage::GetWindowLevelStartPosition | ( | int | [2] | ) | [virtual] |
Some useful information for handling window level
virtual int* vtkInteractorStyleImage::GetWindowLevelCurrentPosition | ( | ) | [virtual] |
Some useful information for handling window level
virtual void vtkInteractorStyleImage::GetWindowLevelCurrentPosition | ( | int & | , | |
int & | ||||
) | [virtual] |
Some useful information for handling window level
virtual void vtkInteractorStyleImage::GetWindowLevelCurrentPosition | ( | int | [2] | ) | [virtual] |
Some useful information for handling window level
virtual void vtkInteractorStyleImage::OnMouseMove | ( | ) | [virtual] |
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
Reimplemented from vtkInteractorStyleTrackballCamera.
Reimplemented in vtkInteractorStyleTreeMapHover.
virtual void vtkInteractorStyleImage::OnLeftButtonDown | ( | ) | [virtual] |
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
Reimplemented from vtkInteractorStyleTrackballCamera.
virtual void vtkInteractorStyleImage::OnLeftButtonUp | ( | ) | [virtual] |
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
Reimplemented from vtkInteractorStyleTrackballCamera.
Reimplemented in vtkInteractorStyleTreeMapHover.
virtual void vtkInteractorStyleImage::OnRightButtonDown | ( | ) | [virtual] |
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
Reimplemented from vtkInteractorStyleTrackballCamera.
virtual void vtkInteractorStyleImage::OnRightButtonUp | ( | ) | [virtual] |
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
Reimplemented from vtkInteractorStyleTrackballCamera.
virtual void vtkInteractorStyleImage::OnChar | ( | ) | [virtual] |
Override the "fly-to" (f keypress) for images.
Reimplemented from vtkInteractorStyle.
virtual void vtkInteractorStyleImage::WindowLevel | ( | ) | [virtual] |
virtual void vtkInteractorStyleImage::Pick | ( | ) | [virtual] |
virtual void vtkInteractorStyleImage::StartWindowLevel | ( | ) | [virtual] |
virtual void vtkInteractorStyleImage::EndWindowLevel | ( | ) | [virtual] |
virtual void vtkInteractorStyleImage::StartPick | ( | ) | [virtual] |
virtual void vtkInteractorStyleImage::EndPick | ( | ) | [virtual] |
int vtkInteractorStyleImage::WindowLevelStartPosition[2] [protected] |
Definition at line 102 of file vtkInteractorStyleImage.h.
int vtkInteractorStyleImage::WindowLevelCurrentPosition[2] [protected] |
Definition at line 103 of file vtkInteractorStyleImage.h.