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 Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
vtkMRMLSliceIntersectionWidget Class Reference

Show slice intersection lines. More...

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

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

Public Types

enum  {
  WidgetStateMoveCrosshair = WidgetStateUser, WidgetStateBlend, WidgetStateTranslateSlice, WidgetStateRotateIntersectingSlices,
  WidgetStateZoomSlice, WidgetStateTouchGesture, WidgetStateOnTranslateIntersectingSlicesHandle, WidgetStateTranslateIntersectingSlicesHandle,
  WidgetStateOnRotateIntersectingSlicesHandle, WidgetStateRotateIntersectingSlicesHandle, WidgetStateOnTranslateSingleIntersectingSliceHandle, WidgetStateTranslateSingleIntersectingSliceHandle,
  WidgetState_Last
}
 Widget states. More...
 
enum  {
  WidgetEventTouchGestureStart = WidgetEventUser, WidgetEventTouchGestureEnd, WidgetEventTouchRotateSliceIntersection, WidgetEventTouchZoomSlice,
  WidgetEventTouchTranslateSlice, WidgetEventMoveCrosshairStart, WidgetEventMoveCrosshairEnd, WidgetEventBlendStart,
  WidgetEventBlendEnd, WidgetEventToggleLabelOpacity, WidgetEventToggleForegroundOpacity, WidgetEventIncrementSlice,
  WidgetEventDecrementSlice, WidgetEventZoomInSlice, WidgetEventZoomOutSlice, WidgetEventToggleSliceVisibility,
  WidgetEventToggleAllSlicesVisibility, WidgetEventResetFieldOfView, WidgetEventShowNextBackgroundVolume, WidgetEventShowPreviousBackgroundVolume,
  WidgetEventShowNextForegroundVolume, WidgetEventShowPreviousForegroundVolume, WidgetEventRotateIntersectingSlicesStart, WidgetEventRotateIntersectingSlicesEnd,
  WidgetEventTranslateSliceStart, WidgetEventTranslateSliceEnd, WidgetEventZoomSliceStart, WidgetEventZoomSliceEnd,
  WidgetEventSetCrosshairPosition, WidgetEventSetCrosshairPositionBackground, WidgetEventMaximizeView, WidgetEventTranslateIntersectingSlicesHandleStart,
  WidgetEventTranslateIntersectingSlicesHandleEnd, WidgetEventRotateIntersectingSlicesHandleStart, WidgetEventRotateIntersectingSlicesHandleEnd, WidgetEventTranslateSingleIntersectingSliceHandleStart,
  WidgetEventTranslateSingleIntersectingSliceHandleEnd
}
 Widget events. More...
 
enum  {
  ActionNone = 0, ActionTranslate = 1, ActionZoom = 2, ActionRotate = 4,
  ActionBlend = 8, ActionBrowseSlice = 64, ActionShowSlice = 128, ActionAdjustLightbox = 256,
  ActionSelectVolume = 512, ActionSetCursorPosition = 1024, ActionSetCrosshairPosition = 2048, ActionTranslateSliceIntersection = 4096,
  ActionRotateSliceIntersection = 8192, ActionAll
}
 Action State values and management. More...
 
- Public Types inherited from vtkMRMLAbstractWidget
enum  {
  WidgetStateAny, WidgetStateIdle, WidgetStateOnWidget, WidgetStateTranslate,
  WidgetStateRotate, WidgetStateScale, WidgetStateUser
}
 The state of the widget. More...
 
typedef vtkObject Superclass
 Standard methods for a VTK class. More...
 
enum  WidgetEvents {
  WidgetEventNone, WidgetEventMouseMove, WidgetEventTranslateStart, WidgetEventTranslateEnd,
  WidgetEventRotateStart, WidgetEventRotateEnd, WidgetEventScaleStart, WidgetEventScaleEnd,
  WidgetEventPick, WidgetEventJumpCursor, WidgetEventAction, WidgetEventCustomAction1,
  WidgetEventCustomAction2, WidgetEventCustomAction3, WidgetEventCustomAction4, WidgetEventCustomAction5,
  WidgetEventCustomAction6, WidgetEventSelect, WidgetEventUnselect, WidgetEventToggleSelect,
  WidgetEventMenu, WidgetEventReset, WidgetEventUser
}
 Widget events. More...
 

Public Member Functions

bool CanProcessInteractionEvent (vtkMRMLInteractionEventData *eventData, double &distance2) override
 Return true if the widget can process the event. More...
 
void CreateDefaultRepresentation ()
 
bool GetActionEnabled (int actionsMask)
 
int GetActionsEnabled ()
 Set full list of enabled actions. More...
 
int GetMouseCursor () override
 
vtkMRMLSliceDisplayNodeGetSliceDisplayNode ()
 
vtkMRMLSliceNodeGetSliceNode ()
 
void Leave (vtkMRMLInteractionEventData *eventData) override
 Called when the the widget loses the focus. More...
 
bool ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override
 Process interaction event. More...
 
void SetActionEnabled (int actionsMask, bool enable=true)
 
void SetActionsEnabled (int actions)
 Set exact list of actions to enable. More...
 
void SetMRMLApplicationLogic (vtkMRMLApplicationLogic *applicationLogic) override
 
void SetSliceNode (vtkMRMLSliceNode *sliceNode)
 
void UpdateInteractionEventMapping ()
 
- Public Member Functions inherited from vtkMRMLAbstractWidget
virtual vtkWidgetEventTranslator * GetEventTranslator (int widgetState)
 
virtual bool GetGrabFocus ()
 
vtkMRMLInteractionNodeGetInteractionNode ()
 
virtual bool GetInteractive ()
 
vtkMRMLApplicationLogicGetMRMLApplicationLogic ()
 
virtual bool GetNeedToRender ()
 
virtual int GetNumberOfEventTranslators ()
 
vtkRenderer * GetRenderer ()
 
virtual vtkMRMLAbstractWidgetRepresentationGetRepresentation ()
 Get the representation. More...
 
virtual int GetWidgetState ()
 Convenient method to determine the state of the method. More...
 
virtual void NeedToRenderOff ()
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void SetEventTranslation (int widgetState, unsigned long interactionEvent, int modifiers, unsigned long widgetEvent)
 
void SetEventTranslation (unsigned long interactionEvent, int modifiers, unsigned long widgetEvent)
 
void SetEventTranslationClickAndDrag (int widgetState, unsigned long startInteractionEvent, int modifiers, int widgetStateDragging, unsigned long widgetStartEvent, unsigned long widgetEndEvent)
 
void SetKeyboardEventTranslation (int modifier, char keyCode, int repeatCount, const char *keySym, unsigned long widgetEvent)
 
void SetKeyboardEventTranslation (int widgetState, int modifier, char keyCode, int repeatCount, const char *keySym, unsigned long widgetEvent)
 
void SetRenderer (vtkRenderer *renderer)
 
virtual void SetRepresentation (vtkMRMLAbstractWidgetRepresentation *r)
 
virtual void SetWidgetState (int)
 Convenient method to change what state the widget is in. More...
 
virtual unsigned long TranslateInteractionEventToWidgetEvent (vtkMRMLInteractionEventData *eventData)
 Get widget event from translation event. More...
 
virtual void UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr)
 Build the actors of the representation with the info stored in the MRML scene. More...
 

Static Public Member Functions

static vtkMRMLSliceIntersectionWidgetNew ()
 
- Static Public Member Functions inherited from vtkMRMLAbstractWidget
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractWidgetSafeDownCast (vtkObject *o)
 

Protected Types

enum  { LayerBackground, LayerForeground, LayerLabelmap }
 

Protected Member Functions

void CycleVolumeLayer (int layer, int direction)
 
void DecrementSlice ()
 
double GetLabelOpacity ()
 
double GetSliceRotationAngleRad (double eventPos[2])
 
double GetSliceSpacing ()
 
vtkMRMLSegmentationDisplayNodeGetVisibleSegmentationDisplayNode ()
 
void IncrementSlice ()
 Adjust the slice position with respect to current slice node offset. More...
 
bool IsEventInsideVolume (bool background, vtkMRMLInteractionEventData *eventData)
 
bool IsSliceIntersectionInteractive ()
 
void MoveSlice (double delta)
 
bool ProcessBlend (vtkMRMLInteractionEventData *eventData)
 
bool ProcessEndMouseDrag (vtkMRMLInteractionEventData *eventData)
 
bool ProcessMaximizeView (vtkMRMLInteractionEventData *eventData)
 
bool ProcessMouseMove (vtkMRMLInteractionEventData *eventData)
 
bool ProcessRotateIntersectingSlices (vtkMRMLInteractionEventData *eventData)
 
bool ProcessRotateIntersectingSlicesHandle (vtkMRMLInteractionEventData *eventData)
 
bool ProcessRotateIntersectingSlicesHandleStart (vtkMRMLInteractionEventData *eventData)
 
bool ProcessRotateIntersectingSlicesStart (vtkMRMLInteractionEventData *eventData)
 
bool ProcessSetCrosshair (vtkMRMLInteractionEventData *eventData)
 
bool ProcessSetCrosshairBackground (vtkMRMLInteractionEventData *eventData)
 
bool ProcessStartMouseDrag (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTouchGestureEnd (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTouchGestureStart (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTouchRotate (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTouchTranslate (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTouchZoom (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTranslateIntersectingSlicesHandle (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTranslateIntersectingSlicesHandleStart (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTranslateSingleIntersectingSliceHandle (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTranslateSingleIntersectingSliceHandleStart (vtkMRMLInteractionEventData *eventData)
 
bool ProcessTranslateSlice (vtkMRMLInteractionEventData *eventData)
 
bool ProcessWidgetMenu (vtkMRMLInteractionEventData *eventData)
 
bool ProcessZoomSlice (vtkMRMLInteractionEventData *eventData)
 
bool Rotate (double sliceRotationAngleRad)
 Rotate the message by the specified amount. Used for touchpad events. More...
 
void ScaleZoom (double zoomScaleFactor, vtkMRMLInteractionEventData *eventData)
 
void SetLabelOpacity (double opacity)
 Get/Set labelmap or segmentation opacity. More...
 
 vtkMRMLSliceIntersectionWidget ()
 
 ~vtkMRMLSliceIntersectionWidget () override
 
- Protected Member Functions inherited from vtkMRMLAbstractWidget
bool CanProcessButtonClickEvent (vtkMRMLInteractionEventData *eventData, double &distance2)
 Generate a button click event and checks if it can be processed with CanProcessInteractionEvent. More...
 
const char * GetAssociatedNodeID (vtkMRMLInteractionEventData *eventData)
 
virtual int ProcessButtonClickEvent (vtkMRMLInteractionEventData *eventData)
 
unsigned long TranslateInteractionEventToWidgetEvent (vtkWidgetEventTranslator *translator, vtkMRMLInteractionEventData *eventData)
 Helper function that attempts to translate an event with a specific translator only. More...
 
 vtkMRMLAbstractWidget ()
 
 ~vtkMRMLAbstractWidget () override
 

Static Protected Member Functions

static void SliceLogicsModifiedCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 
static void SliceModifiedCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 

Protected Attributes

int ActionsEnabled
 
double CurrentTranslationPoint_RAS [3]
 
double LastForegroundOpacity
 
std::string LastIntersectingSliceNodeID
 
double LastLabelOpacity
 
bool ModifierKeyPressedSinceLastClickAndDrag
 
int PreviousEventPosition [2]
 
double PreviousRotationAngleRad
 
vtkWeakPointer< vtkMRMLSliceLogicSliceLogic
 
vtkWeakPointer< vtkCollection > SliceLogics
 
vtkNew< vtkCallbackCommand > SliceLogicsModifiedCommand
 
vtkNew< vtkCallbackCommand > SliceModifiedCommand
 
vtkWeakPointer< vtkMRMLSliceNodeSliceNode
 
double StartActionFOV [3]
 
vtkMRMLSegmentationDisplayNodeStartActionSegmentationDisplayNode
 
double StartEventPosition [2]
 
double StartRotationCenter [2]
 
double StartRotationCenter_RAS [4]
 
double StartTranslationPoint [2]
 
double StartTranslationPoint_RAS [3]
 
double TotalTouchRotation
 
double TotalTouchTranslation
 
double TotalTouchZoom
 
bool TouchRotateEnabled
 
double TouchRotationThreshold
 
bool TouchTranslationEnabled
 
double TouchTranslationThreshold
 
bool TouchZoomEnabled
 
double TouchZoomThreshold
 
double VolumeScalarRange [2]
 
- Protected Attributes inherited from vtkMRMLAbstractWidget
vtkWeakPointer< vtkMRMLApplicationLogicApplicationLogic
 
std::vector< vtkSmartPointer< vtkWidgetEventTranslator > > EventTranslators
 
vtkWeakPointer< vtkRenderer > Renderer
 
vtkSmartPointer< vtkMRMLAbstractWidgetRepresentationWidgetRep
 
int WidgetState
 
typedef vtkMRMLAbstractWidget Superclass
 
static int IsTypeOf (const char *type)
 
static vtkMRMLSliceIntersectionWidgetSafeDownCast (vtkObject *o)
 
virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 

Detailed Description

Show slice intersection lines.

The vtkMRMLSliceIntersectionWidget allows moving slices by interacting with displayed slice intersection lines.

Definition at line 43 of file vtkMRMLSliceIntersectionWidget.h.

Member Typedef Documentation

◆ Superclass

Standard VTK class macros.

Definition at line 55 of file vtkMRMLSliceIntersectionWidget.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Widget states.

Enumerator
WidgetStateMoveCrosshair 

Move crosshair position, can be used for moving the crosshair with click-and-drag.

WidgetStateBlend 

Fade between foreground/background volumes.

WidgetStateTranslateSlice 

Pan (translate in-plane) the current slice (using shift+left-click-and-drag or middle-click-and-drag)

WidgetStateRotateIntersectingSlices 

Rotate all intersecting slices (ctrl+alt+left-click-and-drag)

WidgetStateZoomSlice 

Zoom slice (using right-button or mouse wheel)

WidgetStateTouchGesture 

Pinch/zoom/pan using touch gestures.

WidgetStateOnTranslateIntersectingSlicesHandle 

hovering over a slice intersection point

WidgetStateTranslateIntersectingSlicesHandle 

translating all intersecting slices by drag-and-dropping handle

WidgetStateOnRotateIntersectingSlicesHandle 

hovering over a rotation interaction handle

WidgetStateRotateIntersectingSlicesHandle 

rotating all intersecting slices by drag-and-dropping handle

WidgetStateOnTranslateSingleIntersectingSliceHandle 

hovering over a single-slice translation interaction handle

WidgetStateTranslateSingleIntersectingSliceHandle 

translating a single slice by drag-and-dropping handle

WidgetState_Last 

Definition at line 81 of file vtkMRMLSliceIntersectionWidget.h.

◆ anonymous enum

anonymous enum

Widget events.

Enumerator
WidgetEventTouchGestureStart 
WidgetEventTouchGestureEnd 
WidgetEventTouchRotateSliceIntersection 
WidgetEventTouchZoomSlice 
WidgetEventTouchTranslateSlice 
WidgetEventMoveCrosshairStart 
WidgetEventMoveCrosshairEnd 
WidgetEventBlendStart 
WidgetEventBlendEnd 
WidgetEventToggleLabelOpacity 
WidgetEventToggleForegroundOpacity 
WidgetEventIncrementSlice 
WidgetEventDecrementSlice 
WidgetEventZoomInSlice 
WidgetEventZoomOutSlice 
WidgetEventToggleSliceVisibility 
WidgetEventToggleAllSlicesVisibility 
WidgetEventResetFieldOfView 
WidgetEventShowNextBackgroundVolume 
WidgetEventShowPreviousBackgroundVolume 
WidgetEventShowNextForegroundVolume 
WidgetEventShowPreviousForegroundVolume 
WidgetEventRotateIntersectingSlicesStart 
WidgetEventRotateIntersectingSlicesEnd 
WidgetEventTranslateSliceStart 
WidgetEventTranslateSliceEnd 
WidgetEventZoomSliceStart 
WidgetEventZoomSliceEnd 
WidgetEventSetCrosshairPosition 
WidgetEventSetCrosshairPositionBackground 
WidgetEventMaximizeView 
WidgetEventTranslateIntersectingSlicesHandleStart 
WidgetEventTranslateIntersectingSlicesHandleEnd 
WidgetEventRotateIntersectingSlicesHandleStart 
WidgetEventRotateIntersectingSlicesHandleEnd 
WidgetEventTranslateSingleIntersectingSliceHandleStart 
WidgetEventTranslateSingleIntersectingSliceHandleEnd 

Definition at line 103 of file vtkMRMLSliceIntersectionWidget.h.

◆ anonymous enum

anonymous enum

Action State values and management.

Enumerator
ActionNone 
ActionTranslate 
ActionZoom 
ActionRotate 
ActionBlend 
ActionBrowseSlice 
ActionShowSlice 
ActionAdjustLightbox 
ActionSelectVolume 
ActionSetCursorPosition 
ActionSetCrosshairPosition 
ActionTranslateSliceIntersection 
ActionRotateSliceIntersection 
ActionAll 

Definition at line 151 of file vtkMRMLSliceIntersectionWidget.h.

◆ anonymous enum

anonymous enum
protected
Enumerator
LayerBackground 
LayerForeground 
LayerLabelmap 

Definition at line 269 of file vtkMRMLSliceIntersectionWidget.h.

Constructor & Destructor Documentation

◆ vtkMRMLSliceIntersectionWidget()

vtkMRMLSliceIntersectionWidget::vtkMRMLSliceIntersectionWidget ( )
protected

◆ ~vtkMRMLSliceIntersectionWidget()

vtkMRMLSliceIntersectionWidget::~vtkMRMLSliceIntersectionWidget ( )
overrideprotected

Member Function Documentation

◆ CanProcessInteractionEvent()

bool vtkMRMLSliceIntersectionWidget::CanProcessInteractionEvent ( vtkMRMLInteractionEventData eventData,
double &  distance2 
)
overridevirtual

Return true if the widget can process the event.

Reimplemented from vtkMRMLAbstractWidget.

◆ CreateDefaultRepresentation()

void vtkMRMLSliceIntersectionWidget::CreateDefaultRepresentation ( )

Create the default widget representation if one is not set.

◆ CycleVolumeLayer()

void vtkMRMLSliceIntersectionWidget::CycleVolumeLayer ( int  layer,
int  direction 
)
protected

Change the displayed volume in the selected layer by moving in a loop through the volumes available in the scene.

  • layer: are 0,1,2 for bg, fg, lb
  • direction: positive or negative (wraps through volumes in scene)

◆ DecrementSlice()

void vtkMRMLSliceIntersectionWidget::DecrementSlice ( )
protected

◆ GetActionEnabled()

bool vtkMRMLSliceIntersectionWidget::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.

◆ GetActionsEnabled()

int vtkMRMLSliceIntersectionWidget::GetActionsEnabled ( )

Set full list of enabled actions.

◆ GetClassName()

virtual const char* vtkMRMLSliceIntersectionWidget::GetClassName ( )
virtual

Reimplemented from vtkMRMLAbstractWidget.

◆ GetLabelOpacity()

double vtkMRMLSliceIntersectionWidget::GetLabelOpacity ( )
protected

◆ GetMouseCursor()

int vtkMRMLSliceIntersectionWidget::GetMouseCursor ( )
overridevirtual

Reimplemented from vtkMRMLAbstractWidget.

◆ GetSliceDisplayNode()

vtkMRMLSliceDisplayNode* vtkMRMLSliceIntersectionWidget::GetSliceDisplayNode ( )

◆ GetSliceNode()

vtkMRMLSliceNode* vtkMRMLSliceIntersectionWidget::GetSliceNode ( )

◆ GetSliceRotationAngleRad()

double vtkMRMLSliceIntersectionWidget::GetSliceRotationAngleRad ( double  eventPos[2])
protected

◆ GetSliceSpacing()

double vtkMRMLSliceIntersectionWidget::GetSliceSpacing ( )
protected

check for prescribed spacing, otherwise return best spacing amount for current layer setup (use logic to look for spacing of first non-null layer)

◆ GetVisibleSegmentationDisplayNode()

vtkMRMLSegmentationDisplayNode* vtkMRMLSliceIntersectionWidget::GetVisibleSegmentationDisplayNode ( )
protected

◆ IncrementSlice()

void vtkMRMLSliceIntersectionWidget::IncrementSlice ( )
protected

Adjust the slice position with respect to current slice node offset.

◆ IsA()

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

Reimplemented from vtkMRMLAbstractWidget.

◆ IsEventInsideVolume()

bool vtkMRMLSliceIntersectionWidget::IsEventInsideVolume ( bool  background,
vtkMRMLInteractionEventData eventData 
)
protected

Returns true if mouse is inside the selected layer volume. Use background flag to choose between foreground/background layer.

◆ IsSliceIntersectionInteractive()

bool vtkMRMLSliceIntersectionWidget::IsSliceIntersectionInteractive ( )
protected

◆ IsTypeOf()

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

◆ Leave()

void vtkMRMLSliceIntersectionWidget::Leave ( vtkMRMLInteractionEventData eventData)
overridevirtual

Called when the the widget loses the focus.

Reimplemented from vtkMRMLAbstractWidget.

◆ MoveSlice()

void vtkMRMLSliceIntersectionWidget::MoveSlice ( double  delta)
protected

◆ New()

static vtkMRMLSliceIntersectionWidget* vtkMRMLSliceIntersectionWidget::New ( )
static

Instantiate this class.

◆ PrintSelf()

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

◆ ProcessBlend()

bool vtkMRMLSliceIntersectionWidget::ProcessBlend ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessEndMouseDrag()

bool vtkMRMLSliceIntersectionWidget::ProcessEndMouseDrag ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessInteractionEvent()

bool vtkMRMLSliceIntersectionWidget::ProcessInteractionEvent ( vtkMRMLInteractionEventData eventData)
overridevirtual

Process interaction event.

Reimplemented from vtkMRMLAbstractWidget.

◆ ProcessMaximizeView()

bool vtkMRMLSliceIntersectionWidget::ProcessMaximizeView ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessMouseMove()

bool vtkMRMLSliceIntersectionWidget::ProcessMouseMove ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessRotateIntersectingSlices()

bool vtkMRMLSliceIntersectionWidget::ProcessRotateIntersectingSlices ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessRotateIntersectingSlicesHandle()

bool vtkMRMLSliceIntersectionWidget::ProcessRotateIntersectingSlicesHandle ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessRotateIntersectingSlicesHandleStart()

bool vtkMRMLSliceIntersectionWidget::ProcessRotateIntersectingSlicesHandleStart ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessRotateIntersectingSlicesStart()

bool vtkMRMLSliceIntersectionWidget::ProcessRotateIntersectingSlicesStart ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessSetCrosshair()

bool vtkMRMLSliceIntersectionWidget::ProcessSetCrosshair ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessSetCrosshairBackground()

bool vtkMRMLSliceIntersectionWidget::ProcessSetCrosshairBackground ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessStartMouseDrag()

bool vtkMRMLSliceIntersectionWidget::ProcessStartMouseDrag ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTouchGestureEnd()

bool vtkMRMLSliceIntersectionWidget::ProcessTouchGestureEnd ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTouchGestureStart()

bool vtkMRMLSliceIntersectionWidget::ProcessTouchGestureStart ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTouchRotate()

bool vtkMRMLSliceIntersectionWidget::ProcessTouchRotate ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTouchTranslate()

bool vtkMRMLSliceIntersectionWidget::ProcessTouchTranslate ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTouchZoom()

bool vtkMRMLSliceIntersectionWidget::ProcessTouchZoom ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTranslateIntersectingSlicesHandle()

bool vtkMRMLSliceIntersectionWidget::ProcessTranslateIntersectingSlicesHandle ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTranslateIntersectingSlicesHandleStart()

bool vtkMRMLSliceIntersectionWidget::ProcessTranslateIntersectingSlicesHandleStart ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTranslateSingleIntersectingSliceHandle()

bool vtkMRMLSliceIntersectionWidget::ProcessTranslateSingleIntersectingSliceHandle ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTranslateSingleIntersectingSliceHandleStart()

bool vtkMRMLSliceIntersectionWidget::ProcessTranslateSingleIntersectingSliceHandleStart ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessTranslateSlice()

bool vtkMRMLSliceIntersectionWidget::ProcessTranslateSlice ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessWidgetMenu()

bool vtkMRMLSliceIntersectionWidget::ProcessWidgetMenu ( vtkMRMLInteractionEventData eventData)
protected

◆ ProcessZoomSlice()

bool vtkMRMLSliceIntersectionWidget::ProcessZoomSlice ( vtkMRMLInteractionEventData eventData)
protected

◆ Rotate()

bool vtkMRMLSliceIntersectionWidget::Rotate ( double  sliceRotationAngleRad)
protected

Rotate the message by the specified amount. Used for touchpad events.

◆ SafeDownCast()

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

◆ ScaleZoom()

void vtkMRMLSliceIntersectionWidget::ScaleZoom ( double  zoomScaleFactor,
vtkMRMLInteractionEventData eventData 
)
protected

Adjust zoom factor. If zoomScaleFactor>1 then view is zoomed in, if 0<zoomScaleFactor<1 then view is zoomed out. Event position is used as center for zoom operation.

◆ SetActionEnabled()

void vtkMRMLSliceIntersectionWidget::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.

◆ SetActionsEnabled()

void vtkMRMLSliceIntersectionWidget::SetActionsEnabled ( int  actions)

Set exact list of actions to enable.

◆ SetLabelOpacity()

void vtkMRMLSliceIntersectionWidget::SetLabelOpacity ( double  opacity)
protected

Get/Set labelmap or segmentation opacity.

◆ SetMRMLApplicationLogic()

void vtkMRMLSliceIntersectionWidget::SetMRMLApplicationLogic ( vtkMRMLApplicationLogic applicationLogic)
overridevirtual

Reimplemented from vtkMRMLAbstractWidget.

◆ SetSliceNode()

void vtkMRMLSliceIntersectionWidget::SetSliceNode ( vtkMRMLSliceNode sliceNode)

◆ SliceLogicsModifiedCallback()

static void vtkMRMLSliceIntersectionWidget::SliceLogicsModifiedCallback ( vtkObject *  caller,
unsigned long  eid,
void *  clientData,
void *  callData 
)
staticprotected

◆ SliceModifiedCallback()

static void vtkMRMLSliceIntersectionWidget::SliceModifiedCallback ( vtkObject *  caller,
unsigned long  eid,
void *  clientData,
void *  callData 
)
staticprotected

◆ UpdateInteractionEventMapping()

void vtkMRMLSliceIntersectionWidget::UpdateInteractionEventMapping ( )

Member Data Documentation

◆ ActionsEnabled

int vtkMRMLSliceIntersectionWidget::ActionsEnabled
protected

Definition at line 304 of file vtkMRMLSliceIntersectionWidget.h.

◆ CurrentTranslationPoint_RAS

double vtkMRMLSliceIntersectionWidget::CurrentTranslationPoint_RAS[3]
protected

Definition at line 264 of file vtkMRMLSliceIntersectionWidget.h.

◆ LastForegroundOpacity

double vtkMRMLSliceIntersectionWidget::LastForegroundOpacity
protected

Definition at line 277 of file vtkMRMLSliceIntersectionWidget.h.

◆ LastIntersectingSliceNodeID

std::string vtkMRMLSliceIntersectionWidget::LastIntersectingSliceNodeID
protected

Definition at line 317 of file vtkMRMLSliceIntersectionWidget.h.

◆ LastLabelOpacity

double vtkMRMLSliceIntersectionWidget::LastLabelOpacity
protected

Definition at line 278 of file vtkMRMLSliceIntersectionWidget.h.

◆ ModifierKeyPressedSinceLastClickAndDrag

bool vtkMRMLSliceIntersectionWidget::ModifierKeyPressedSinceLastClickAndDrag
protected

Indicates whether the shift key was used during the previous action. This is used to require shift-up after a click-and-drag before accepting shift+mousemove.

Definition at line 302 of file vtkMRMLSliceIntersectionWidget.h.

◆ PreviousEventPosition

int vtkMRMLSliceIntersectionWidget::PreviousEventPosition[2]
protected

Definition at line 258 of file vtkMRMLSliceIntersectionWidget.h.

◆ PreviousRotationAngleRad

double vtkMRMLSliceIntersectionWidget::PreviousRotationAngleRad
protected

Definition at line 257 of file vtkMRMLSliceIntersectionWidget.h.

◆ SliceLogic

vtkWeakPointer<vtkMRMLSliceLogic> vtkMRMLSliceIntersectionWidget::SliceLogic
protected

Definition at line 252 of file vtkMRMLSliceIntersectionWidget.h.

◆ SliceLogics

vtkWeakPointer<vtkCollection> vtkMRMLSliceIntersectionWidget::SliceLogics
protected

Definition at line 250 of file vtkMRMLSliceIntersectionWidget.h.

◆ SliceLogicsModifiedCommand

vtkNew<vtkCallbackCommand> vtkMRMLSliceIntersectionWidget::SliceLogicsModifiedCommand
protected

Definition at line 253 of file vtkMRMLSliceIntersectionWidget.h.

◆ SliceModifiedCommand

vtkNew<vtkCallbackCommand> vtkMRMLSliceIntersectionWidget::SliceModifiedCommand
protected

Definition at line 254 of file vtkMRMLSliceIntersectionWidget.h.

◆ SliceNode

vtkWeakPointer<vtkMRMLSliceNode> vtkMRMLSliceIntersectionWidget::SliceNode
protected

Definition at line 251 of file vtkMRMLSliceIntersectionWidget.h.

◆ StartActionFOV

double vtkMRMLSliceIntersectionWidget::StartActionFOV[3]
protected

Definition at line 266 of file vtkMRMLSliceIntersectionWidget.h.

◆ StartActionSegmentationDisplayNode

vtkMRMLSegmentationDisplayNode* vtkMRMLSliceIntersectionWidget::StartActionSegmentationDisplayNode
protected

Definition at line 279 of file vtkMRMLSliceIntersectionWidget.h.

◆ StartEventPosition

double vtkMRMLSliceIntersectionWidget::StartEventPosition[2]
protected

Definition at line 256 of file vtkMRMLSliceIntersectionWidget.h.

◆ StartRotationCenter

double vtkMRMLSliceIntersectionWidget::StartRotationCenter[2]
protected

Definition at line 259 of file vtkMRMLSliceIntersectionWidget.h.

◆ StartRotationCenter_RAS

double vtkMRMLSliceIntersectionWidget::StartRotationCenter_RAS[4]
protected

Definition at line 260 of file vtkMRMLSliceIntersectionWidget.h.

◆ StartTranslationPoint

double vtkMRMLSliceIntersectionWidget::StartTranslationPoint[2]
protected

Definition at line 262 of file vtkMRMLSliceIntersectionWidget.h.

◆ StartTranslationPoint_RAS

double vtkMRMLSliceIntersectionWidget::StartTranslationPoint_RAS[3]
protected

Definition at line 263 of file vtkMRMLSliceIntersectionWidget.h.

◆ TotalTouchRotation

double vtkMRMLSliceIntersectionWidget::TotalTouchRotation
protected

Definition at line 309 of file vtkMRMLSliceIntersectionWidget.h.

◆ TotalTouchTranslation

double vtkMRMLSliceIntersectionWidget::TotalTouchTranslation
protected

Definition at line 311 of file vtkMRMLSliceIntersectionWidget.h.

◆ TotalTouchZoom

double vtkMRMLSliceIntersectionWidget::TotalTouchZoom
protected

Definition at line 313 of file vtkMRMLSliceIntersectionWidget.h.

◆ TouchRotateEnabled

bool vtkMRMLSliceIntersectionWidget::TouchRotateEnabled
protected

Definition at line 310 of file vtkMRMLSliceIntersectionWidget.h.

◆ TouchRotationThreshold

double vtkMRMLSliceIntersectionWidget::TouchRotationThreshold
protected

Definition at line 306 of file vtkMRMLSliceIntersectionWidget.h.

◆ TouchTranslationEnabled

bool vtkMRMLSliceIntersectionWidget::TouchTranslationEnabled
protected

Definition at line 312 of file vtkMRMLSliceIntersectionWidget.h.

◆ TouchTranslationThreshold

double vtkMRMLSliceIntersectionWidget::TouchTranslationThreshold
protected

Definition at line 307 of file vtkMRMLSliceIntersectionWidget.h.

◆ TouchZoomEnabled

bool vtkMRMLSliceIntersectionWidget::TouchZoomEnabled
protected

Definition at line 314 of file vtkMRMLSliceIntersectionWidget.h.

◆ TouchZoomThreshold

double vtkMRMLSliceIntersectionWidget::TouchZoomThreshold
protected

Definition at line 308 of file vtkMRMLSliceIntersectionWidget.h.

◆ VolumeScalarRange

double vtkMRMLSliceIntersectionWidget::VolumeScalarRange[2]
protected

Definition at line 267 of file vtkMRMLSliceIntersectionWidget.h.


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