Slicer
5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Provides customizable interaction routines. More...
#include <Libs/MRML/DisplayableManager/vtkMRMLSliceViewInteractorStyle.h>
Public Types | |
enum | { None = 0, Translate = 1, Zoom = 2, Rotate = 4, Blend = 8, AdjustWindowLevelBackground = 16, AdjustWindowLevelForeground = 32, BrowseSlice = 64, ShowSlice = 128, AdjustLightbox = 256, SelectVolume = 512, SetCursorPosition = 1024, SetCrosshairPosition = 2048, TranslateSliceIntersection = 4096, RotateSliceIntersection = 8192, AllActionsMask } |
Internal state management for multi-event sequences (like click-drag-release) More... | |
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 |
bool | GetActionEnabled (int actionsMask) |
virtual const char * | GetClassName () |
vtkMRMLCrosshairDisplayableManager * | GetCrosshairDisplayableManager () |
vtkMRMLScalarBarDisplayableManager * | GetScalarBarDisplayableManager () |
virtual vtkMRMLSliceLogic * | GetSliceLogic () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | SetActionEnabled (int actionsMask, bool enable=true) |
void | SetSliceLogic (vtkMRMLSliceLogic *SliceLogic) |
Get/Set the SliceLogic 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 vtkMRMLSliceViewInteractorStyle * | New () |
static vtkMRMLSliceViewInteractorStyle * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLViewInteractorStyle | |
static int | IsTypeOf (const char *type) |
static vtkMRMLViewInteractorStyle * | New () |
static vtkMRMLViewInteractorStyle * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
void | SetMouseCursor (int cursor) |
vtkMRMLSliceViewInteractorStyle () | |
~vtkMRMLSliceViewInteractorStyle () override | |
Protected Member Functions inherited from vtkMRMLViewInteractorStyle | |
void | SetMouseCursor (int cursor) |
vtkMRMLViewInteractorStyle () | |
~vtkMRMLViewInteractorStyle () override | |
Static Protected Member Functions | |
static void | SliceViewProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Static Protected Member Functions inherited from vtkMRMLViewInteractorStyle | |
static void | CustomProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Protected Attributes | |
bool | EnableCursorUpdate |
vtkMRMLSliceLogic * | SliceLogic |
Protected Attributes inherited from vtkMRMLViewInteractorStyle | |
vtkSmartPointer< vtkTimerLog > | ClickTimer |
Measures time elapsed since first button press. More... | |
vtkWeakPointer< vtkMRMLDisplayableManagerGroup > | DisplayableManagers |
double | DoubleClickIntervalTimeSec |
vtkMRMLAbstractDisplayableManager * | FocusedDisplayableManager |
bool | MouseMovedSinceButtonDown |
int | NumberOfClicks |
Provides customizable interaction routines.
Relies on vtkInteractorStyleUser, but with MouseWheelEvents. and mapping to control the slicer slice logic (manipulates the vtkMRMLSliceNode and vtkMRMLSliceCompositeNode. TODO:
Definition at line 42 of file vtkMRMLSliceViewInteractorStyle.h.
Definition at line 47 of file vtkMRMLSliceViewInteractorStyle.h.
anonymous enum |
Internal state management for multi-event sequences (like click-drag-release)
Action State values and management
Definition at line 58 of file vtkMRMLSliceViewInteractorStyle.h.
|
protected |
|
overrideprotected |
virtual bool vtkMRMLViewInteractorStyle::DelegateInteractionEventToDisplayableManagers |
Give a chance to displayable managers to process the event. Return true if the event is processed.
virtual bool vtkMRMLViewInteractorStyle::DelegateInteractionEventToDisplayableManagers |
Give a chance to displayable managers to process the event. Return true if the event is processed.
|
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.
bool vtkMRMLSliceViewInteractorStyle::GetActionEnabled | ( | int | actionsMask | ) |
Returns true if the specified action is allowed. If multiple actions are specified, the return value is true if all actions are enabled.
|
virtual |
Reimplemented from vtkMRMLViewInteractorStyle.
vtkMRMLCrosshairDisplayableManager* vtkMRMLSliceViewInteractorStyle::GetCrosshairDisplayableManager | ( | ) |
vtkMRMLScalarBarDisplayableManager* vtkMRMLSliceViewInteractorStyle::GetScalarBarDisplayableManager | ( | ) |
|
virtual |
|
virtual |
Reimplemented from vtkMRMLViewInteractorStyle.
|
static |
|
static |
|
override |
|
static |
void vtkMRMLSliceViewInteractorStyle::SetActionEnabled | ( | int | actionsMask, |
bool | enable = true |
||
) |
Enable/disable the specified action (Translate, Zoom, Blend, etc.). Multiple actions can be specified by providing the sum of action ids. Set the value to AllActionsMask to enable/disable all actions. All actions are enabled by default.
|
protected |
void vtkMRMLSliceViewInteractorStyle::SetSliceLogic | ( | vtkMRMLSliceLogic * | SliceLogic | ) |
Get/Set the SliceLogic
|
staticprotected |
|
protected |
Definition at line 108 of file vtkMRMLSliceViewInteractorStyle.h.
|
protected |
Definition at line 106 of file vtkMRMLSliceViewInteractorStyle.h.