Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMRMLThreeDViewInteractorStyle Class Reference

Interactive manipulation of the camera. More...

#include <Libs/MRML/DisplayableManager/vtkMRMLThreeDViewInteractorStyle.h>

Inheritance diagram for vtkMRMLThreeDViewInteractorStyle:
Inheritance graph
[legend]
Collaboration diagram for vtkMRMLThreeDViewInteractorStyle:
Collaboration graph
[legend]

Public Types

typedef vtkMRMLViewInteractorStyle Superclass
 
- Public Types inherited from vtkMRMLViewInteractorStyle
typedef vtkInteractorStyle3D Superclass
 

Public Member Functions

virtual bool DelegateInteractionEventToDisplayableManagers (unsigned long event)
 
virtual bool DelegateInteractionEventToDisplayableManagers (vtkEventData *inputEventData)
 
bool DelegateInteractionEventToDisplayableManagers (vtkEventData *inputEventData) override
 
virtual vtkMRMLCameraNodeGetCameraNode ()
 
Get/Set the CameraNode More...
 
virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void OnLeave () override
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetCameraNode (vtkMRMLCameraNode *)
 
void SetInteractor (vtkRenderWindowInteractor *interactor) override
 
Reimplemented to set the default interactive update rate More...
 
- Public Member Functions inherited from vtkMRMLViewInteractorStyle
virtual bool DelegateInteractionEventDataToDisplayableManagers (vtkMRMLInteractionEventData *eventData)
 
virtual bool DelegateInteractionEventToDisplayableManagers (unsigned long event)
 
void OnButton3D (vtkEventData *eventData) override
 3D event bindings More...
 
void OnChar () override
 Keyboard functions. More...
 
void OnConfigure () override
 
void OnEnter () override
 
void OnExpose () override
 
void OnKeyPress () override
 
void OnKeyRelease () override
 
void OnLeave () override
 
void OnLeftButtonDown () override
 
void OnLeftButtonUp () override
 
void OnLongTap () override
 
void OnMiddleButtonDown () override
 
void OnMiddleButtonUp () override
 
void OnMouseMove () override
 
void OnMouseWheelBackward () override
 
void OnMouseWheelForward () override
 
void OnMove3D (vtkEventData *eventData) override
 
void OnPan () override
 
void OnPinch () override
 
void OnRightButtonDown () override
 
void OnRightButtonUp () override
 
void OnRotate () override
 
void OnTap () override
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void SetDisplayableManagers (vtkMRMLDisplayableManagerGroup *displayableManagers)
 
void SetInteractor (vtkRenderWindowInteractor *interactor) override
 
Reimplemented to set additional observers More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkMRMLThreeDViewInteractorStyleNew ()
 
static vtkMRMLThreeDViewInteractorStyleSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLViewInteractorStyle
static int IsTypeOf (const char *type)
 
static vtkMRMLViewInteractorStyleNew ()
 
static vtkMRMLViewInteractorStyleSafeDownCast (vtkObject *o)
 

Protected Member Functions

bool QuickPick (int x, int y, double pickPoint[3])
 
 vtkMRMLThreeDViewInteractorStyle ()
 
 ~vtkMRMLThreeDViewInteractorStyle () override
 
- Protected Member Functions inherited from vtkMRMLViewInteractorStyle
void SetMouseCursor (int cursor)
 
 vtkMRMLViewInteractorStyle ()
 
 ~vtkMRMLViewInteractorStyle () override
 

Protected Attributes

vtkSmartPointer< vtkCellPicker > AccuratePicker
 
vtkMRMLCameraNodeCameraNode
 
vtkSmartPointer< vtkWorldPointPicker > QuickPicker
 
vtkSmartPointer< vtkVolumePicker > QuickVolumePicker
 
- Protected Attributes inherited from vtkMRMLViewInteractorStyle
vtkSmartPointer< vtkTimerLog > ClickTimer
 Measures time elapsed since first button press. More...
 
vtkWeakPointer< vtkMRMLDisplayableManagerGroupDisplayableManagers
 
double DoubleClickIntervalTimeSec
 
vtkMRMLAbstractDisplayableManagerFocusedDisplayableManager
 
bool MouseMovedSinceButtonDown
 
int NumberOfClicks
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkMRMLViewInteractorStyle
static void CustomProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 

Detailed Description

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.)

See also
vtkInteractorStyleTrackballActor
vtkInteractorStyleJoystickCamera
vtkInteractorStyleJoystickActor

Definition at line 51 of file vtkMRMLThreeDViewInteractorStyle.h.

Member Typedef Documentation

◆ Superclass

Definition at line 56 of file vtkMRMLThreeDViewInteractorStyle.h.

Constructor & Destructor Documentation

◆ vtkMRMLThreeDViewInteractorStyle()

vtkMRMLThreeDViewInteractorStyle::vtkMRMLThreeDViewInteractorStyle ( )
protected

◆ ~vtkMRMLThreeDViewInteractorStyle()

vtkMRMLThreeDViewInteractorStyle::~vtkMRMLThreeDViewInteractorStyle ( )
overrideprotected

Member Function Documentation

◆ DelegateInteractionEventToDisplayableManagers() [1/3]

virtual bool vtkMRMLViewInteractorStyle::DelegateInteractionEventToDisplayableManagers

Give a chance to displayable managers to process the event. Return true if the event is processed.

◆ DelegateInteractionEventToDisplayableManagers() [2/3]

virtual bool vtkMRMLViewInteractorStyle::DelegateInteractionEventToDisplayableManagers

Give a chance to displayable managers to process the event. Return true if the event is processed.

◆ DelegateInteractionEventToDisplayableManagers() [3/3]

bool vtkMRMLThreeDViewInteractorStyle::DelegateInteractionEventToDisplayableManagers ( vtkEventData *  inputEventData)
overridevirtual

Give a chance to displayable managers to process the event. It just creates vtkMRMLInteractionEventData and calls DelegateInteractionEventDataToDisplayableManagers. Return true if the event is processed.

Reimplemented from vtkMRMLViewInteractorStyle.

◆ GetCameraNode()

virtual vtkMRMLCameraNode* vtkMRMLThreeDViewInteractorStyle::GetCameraNode ( )
virtual


Get/Set the CameraNode

◆ GetClassName()

virtual const char* vtkMRMLThreeDViewInteractorStyle::GetClassName ( )
virtual

Reimplemented from vtkMRMLViewInteractorStyle.

◆ IsA()

virtual int vtkMRMLThreeDViewInteractorStyle::IsA ( const char *  type)
virtual

Reimplemented from vtkMRMLViewInteractorStyle.

◆ IsTypeOf()

static int vtkMRMLThreeDViewInteractorStyle::IsTypeOf ( const char *  type)
static

◆ New()

static vtkMRMLThreeDViewInteractorStyle* vtkMRMLThreeDViewInteractorStyle::New ( )
static

◆ OnLeave()

void vtkMRMLThreeDViewInteractorStyle::OnLeave ( )
override

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

◆ PrintSelf()

void vtkMRMLThreeDViewInteractorStyle::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ QuickPick()

bool vtkMRMLThreeDViewInteractorStyle::QuickPick ( int  x,
int  y,
double  pickPoint[3] 
)
protected

◆ SafeDownCast()

static vtkMRMLThreeDViewInteractorStyle* vtkMRMLThreeDViewInteractorStyle::SafeDownCast ( vtkObject *  o)
static

◆ SetCameraNode()

virtual void vtkMRMLThreeDViewInteractorStyle::SetCameraNode ( vtkMRMLCameraNode )
virtual

◆ SetInteractor()

void vtkMRMLThreeDViewInteractorStyle::SetInteractor ( vtkRenderWindowInteractor *  interactor)
override


Reimplemented to set the default interactive update rate

Member Data Documentation

◆ AccuratePicker

vtkSmartPointer<vtkCellPicker> vtkMRMLThreeDViewInteractorStyle::AccuratePicker
protected

Definition at line 88 of file vtkMRMLThreeDViewInteractorStyle.h.

◆ CameraNode

vtkMRMLCameraNode* vtkMRMLThreeDViewInteractorStyle::CameraNode
protected

Definition at line 84 of file vtkMRMLThreeDViewInteractorStyle.h.

◆ QuickPicker

vtkSmartPointer<vtkWorldPointPicker> vtkMRMLThreeDViewInteractorStyle::QuickPicker
protected

Definition at line 90 of file vtkMRMLThreeDViewInteractorStyle.h.

◆ QuickVolumePicker

vtkSmartPointer<vtkVolumePicker> vtkMRMLThreeDViewInteractorStyle::QuickVolumePicker
protected

Definition at line 92 of file vtkMRMLThreeDViewInteractorStyle.h.


The documentation for this class was generated from the following file: