Slicer
4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Interactive manipulation of the camera. More...
#include <Libs/MRML/DisplayableManager/vtkThreeDViewInteractorStyle.h>
Public Types | |
typedef vtkInteractorStyle | Superclass |
Public Member Functions | |
virtual void | Dolly () VTK_OVERRIDE |
virtual void | Dolly (double factor) |
virtual vtkMRMLCameraNode * | GetCameraNode () |
Get/Set the CameraNode More... | |
virtual const char * | GetClassName () |
virtual vtkMRMLModelDisplayableManager * | GetModelDisplayableManager () |
Get/Set the ModelDisplayableManager, for picking More... | |
virtual int | IsA (const char *type) |
virtual void | OnChar () VTK_OVERRIDE |
Reimplemented for camera orientation. More... | |
virtual void | OnExpose () VTK_OVERRIDE |
virtual void | OnKeyPress () VTK_OVERRIDE |
virtual void | OnKeyRelease () VTK_OVERRIDE |
virtual void | OnLeave () VTK_OVERRIDE |
virtual void | OnLeftButtonDown () VTK_OVERRIDE |
virtual void | OnLeftButtonUp () VTK_OVERRIDE |
virtual void | OnMiddleButtonDown () VTK_OVERRIDE |
virtual void | OnMiddleButtonUp () VTK_OVERRIDE |
virtual void | OnMouseMove () VTK_OVERRIDE |
virtual void | OnMouseWheelBackward () VTK_OVERRIDE |
virtual void | OnMouseWheelForward () VTK_OVERRIDE |
virtual void | OnRightButtonDown () VTK_OVERRIDE |
virtual void | OnRightButtonUp () VTK_OVERRIDE |
virtual void | Pan () VTK_OVERRIDE |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
virtual void | Rotate () VTK_OVERRIDE |
virtual void | SetCameraNode (vtkMRMLCameraNode *) |
virtual void | SetInteractor (vtkRenderWindowInteractor *interactor) VTK_OVERRIDE |
Reimplemented to set the default interactive update rate More... | |
virtual void | SetModelDisplayableManager (vtkMRMLModelDisplayableManager *modelDisplayableManager) |
virtual void | Spin () VTK_OVERRIDE |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkThreeDViewInteractorStyle * | New () |
static vtkThreeDViewInteractorStyle * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
bool | Pick (int x, int y, double pickPoint[3]) |
vtkThreeDViewInteractorStyle () | |
~vtkThreeDViewInteractorStyle () | |
Protected Attributes | |
vtkMRMLCameraNode * | CameraNode |
vtkSmartPointer< vtkCellPicker > | CellPicker |
For jump to slice feature (when mouse is moved while shift key is pressed) More... | |
vtkMRMLModelDisplayableManager * | ModelDisplayableManager |
A pointer back to the ModelDisplayableManager, useful for picking More... | |
double | MotionFactor |
int | NumberOfPlaces |
int | NumberOfTransientPlaces |
bool | ShiftKeyUsedForPreviousAction |
Interactive manipulation of the camera.
This class is based on vtkInteractorStyleTrackballCamera, but includes extra features and event invocations to support extra features of slicer.
vtkInteractorStyleTrackballCamera allows the user to interactively manipulate (rotate, pan, etc.) the camera, the viewpoint of the scene. In trackball interaction, the magnitude of the mouse motion is proportional to the camera motion associated with a particular mouse binding. For example, small left-button motions cause small changes in the rotation of the camera around its focal point. For a 3-button mouse, the left button is for rotation, the right button for zooming, the middle button for panning, and ctrl + left button for spinning. (With fewer mouse buttons, ctrl + shift + left button is for zooming, and shift + left button is for panning.)
Definition at line 51 of file vtkThreeDViewInteractorStyle.h.
typedef vtkInteractorStyle vtkThreeDViewInteractorStyle::Superclass |
Definition at line 56 of file vtkThreeDViewInteractorStyle.h.
|
protected |
|
protected |
|
virtual |
|
virtual |
|
virtual |
Get/Set the CameraNode
|
virtual |
|
virtual |
Get/Set the ModelDisplayableManager, for picking
|
virtual |
|
static |
|
static |
|
virtual |
Reimplemented for camera orientation.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
void vtkThreeDViewInteractorStyle::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
These methods for the different interactions in different modes are overridden in subclasses to perform the correct motion. Since they are called by OnTimer, they do not have mouse coord parameters (use interactor's GetEventPosition and GetLastEventPosition)
|
static |
|
virtual |
|
virtual |
Reimplemented to set the default interactive update rate
|
virtual |
|
virtual |
|
protected |
Definition at line 111 of file vtkThreeDViewInteractorStyle.h.
|
protected |
For jump to slice feature (when mouse is moved while shift key is pressed)
Definition at line 133 of file vtkThreeDViewInteractorStyle.h.
|
protected |
A pointer back to the ModelDisplayableManager, useful for picking
Definition at line 130 of file vtkThreeDViewInteractorStyle.h.
|
protected |
Definition at line 113 of file vtkThreeDViewInteractorStyle.h.
|
protected |
Keep track of the number of picks so for resetting mouse modes when transient pick or place mode has been selected.
Definition at line 121 of file vtkThreeDViewInteractorStyle.h.
|
protected |
The number of "clicks" the transient mouse-modes come loaded with. Currently makes sense to set this to 1 – but we can change it if appropriate.
Definition at line 126 of file vtkThreeDViewInteractorStyle.h.
|
protected |
Indicates whether the shift key was used during the previous action. This is used to require shift-up before returning to default mode.
Definition at line 117 of file vtkThreeDViewInteractorStyle.h.