Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkMRMLThreeDViewInteractorStyle Class Reference

Interactive manipulation of the camera. More...

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

Inheritance diagram for vtkMRMLThreeDViewInteractorStyle:
Collaboration diagram for vtkMRMLThreeDViewInteractorStyle:

Public Types

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

Public Member Functions

virtual bool DelegateInteractionEventToDisplayableManagers (unsigned long event)
 
bool DelegateInteractionEventToDisplayableManagers (vtkEventData *inputEventData) override
 
virtual vtkMRMLCameraNodeGetCameraNode ()
 Get/Set the CameraNode.
 
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 SetDisplayableManagers (vtkMRMLDisplayableManagerGroup *displayableManagers) override
 
void SetInteractor (vtkRenderWindowInteractor *interactor) override
 Reimplemented to set the default interactive update rate.
 
- Public Member Functions inherited from vtkMRMLViewInteractorStyle
virtual bool DelegateInteractionEventDataToDisplayableManagers (vtkMRMLInteractionEventData *eventData)
 
virtual vtkRenderWindowInteractor * GetInteractor ()
 
virtual void OnButton3D (vtkEventData *eventData)
 3D event bindings
 
virtual void OnChar ()
 Keyboard functions.
 
virtual void OnConfigure ()
 
virtual void OnEndPan ()
 
virtual void OnEndPinch ()
 
virtual void OnEndRotate ()
 
virtual void OnEnter ()
 
virtual void OnExpose ()
 
virtual void OnKeyPress ()
 
virtual void OnKeyRelease ()
 
virtual void OnLeftButtonDoubleClick ()
 
virtual void OnLeftButtonDown ()
 
virtual void OnLeftButtonUp ()
 
virtual void OnLongTap ()
 
virtual void OnMiddleButtonDoubleClick ()
 
virtual void OnMiddleButtonDown ()
 
virtual void OnMiddleButtonUp ()
 
virtual void OnMouseMove ()
 Mouse functions.
 
virtual void OnMouseWheelBackward ()
 
virtual void OnMouseWheelForward ()
 
virtual void OnMove3D (vtkEventData *eventData)
 
virtual void OnPan ()
 
virtual void OnPinch ()
 
virtual void OnRightButtonDoubleClick ()
 
virtual void OnRightButtonDown ()
 
virtual void OnRightButtonUp ()
 
virtual void OnRotate ()
 
virtual void OnStartPan ()
 
virtual void OnStartPinch ()
 
virtual void OnStartRotate ()
 
virtual void OnTap ()
 
void PrintSelf (ostream &os, vtkIndent indent) override
 

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

void ProcessDisplayableManagerEvents (vtkMRMLAbstractDisplayableManager *displayableManager, unsigned long event, void *callData) override
 
bool QuickPick (int x, int y, double pickPoint[3])
 
 vtkMRMLThreeDViewInteractorStyle ()
 
 ~vtkMRMLThreeDViewInteractorStyle () override
 
- Protected Member Functions inherited from vtkMRMLViewInteractorStyle
vtkInteractorStyle * GetInteractorStyle ()
 
void SetMouseCursor (int cursor)
 
 vtkMRMLViewInteractorStyle ()
 
 ~vtkMRMLViewInteractorStyle () override
 

Protected Attributes

vtkSmartPointer< vtkCellPicker > AccuratePicker
 
vtkMRMLCameraNodeCameraNode
 
vtkSmartPointer< vtkWorldPointPicker > QuickPicker
 
vtkSmartPointer< vtkVolumePicker > QuickVolumePicker
 
- Protected Attributes inherited from vtkMRMLViewInteractorStyle
vtkCallbackCommand * DisplayableManagerCallbackCommand
 
vtkWeakPointer< vtkMRMLDisplayableManagerGroupDisplayableManagers
 
vtkCallbackCommand * EventCallbackCommand
 
vtkMRMLAbstractDisplayableManagerFocusedDisplayableManager
 
vtkRenderWindowInteractor * Interactor {nullptr}
 
bool MouseMovedSinceButtonDown
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkMRMLViewInteractorStyle
static void CustomProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 
static void DisplayableManagerCallback (vtkObject *object, unsigned long event, void *clientData, void *callData)
 
static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 Process events not already delegated to displayable managers by CustomProcessEvents().
 

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

Constructor & Destructor Documentation

◆ vtkMRMLThreeDViewInteractorStyle()

vtkMRMLThreeDViewInteractorStyle::vtkMRMLThreeDViewInteractorStyle ( )
protected

◆ ~vtkMRMLThreeDViewInteractorStyle()

vtkMRMLThreeDViewInteractorStyle::~vtkMRMLThreeDViewInteractorStyle ( )
overrideprotected

Member Function Documentation

◆ DelegateInteractionEventToDisplayableManagers() [1/2]

virtual bool vtkMRMLViewInteractorStyle::DelegateInteractionEventToDisplayableManagers ( unsigned long event)
virtual

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

Reimplemented from vtkMRMLViewInteractorStyle.

◆ DelegateInteractionEventToDisplayableManagers() [2/2]

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 ( )
overridevirtual

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

Reimplemented from vtkMRMLViewInteractorStyle.

◆ PrintSelf()

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

◆ ProcessDisplayableManagerEvents()

void vtkMRMLThreeDViewInteractorStyle::ProcessDisplayableManagerEvents ( vtkMRMLAbstractDisplayableManager * displayableManager,
unsigned long event,
void * callData )
overrideprotectedvirtual

Reimplemented from vtkMRMLViewInteractorStyle.

◆ 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

◆ SetDisplayableManagers()

void vtkMRMLThreeDViewInteractorStyle::SetDisplayableManagers ( vtkMRMLDisplayableManagerGroup * displayableManagers)
overridevirtual

Reimplemented from vtkMRMLViewInteractorStyle.

◆ SetInteractor()

void vtkMRMLThreeDViewInteractorStyle::SetInteractor ( vtkRenderWindowInteractor * interactor)
overridevirtual

Reimplemented to set the default interactive update rate.

Reimplemented from vtkMRMLViewInteractorStyle.

Member Data Documentation

◆ AccuratePicker

vtkSmartPointer<vtkCellPicker> vtkMRMLThreeDViewInteractorStyle::AccuratePicker
protected

Definition at line 93 of file vtkMRMLThreeDViewInteractorStyle.h.

◆ CameraNode

vtkMRMLCameraNode* vtkMRMLThreeDViewInteractorStyle::CameraNode
protected

Definition at line 89 of file vtkMRMLThreeDViewInteractorStyle.h.

◆ QuickPicker

vtkSmartPointer<vtkWorldPointPicker> vtkMRMLThreeDViewInteractorStyle::QuickPicker
protected

Definition at line 95 of file vtkMRMLThreeDViewInteractorStyle.h.

◆ QuickVolumePicker

vtkSmartPointer<vtkVolumePicker> vtkMRMLThreeDViewInteractorStyle::QuickVolumePicker
protected

Definition at line 97 of file vtkMRMLThreeDViewInteractorStyle.h.


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