18 #ifndef __vtkMRMLMarkupsDisplayableManager_h 19 #define __vtkMRMLMarkupsDisplayableManager_h 22 #include "vtkSlicerMarkupsModuleMRMLDisplayableManagerExport.h" 37 class vtkSlicerViewerWidget;
39 class vtkAbstractWidget;
52 void PrintSelf(ostream& os, vtkIndent indent)
override;
57 virtual bool Is2DDisplayableManager();
77 int GetCurrentInteractionMode();
84 void ConvertDeviceToXYZ(
double x,
double y,
double xyz[3]);
122 virtual void OnMRMLSliceNodeModifiedEvent();
125 void AddObserversToInteractionNode();
126 void RemoveObserversFromInteractionNode();
129 virtual bool IsCorrectDisplayableManager();
140 virtual bool IsManageable(
const char* nodeClassName);
146 vtkGetMacro(DisableInteractorStyleEventsProcessing,
int);
148 vtkSmartPointer<vtkMRMLMarkupsDisplayableManagerHelper>
Helper;
150 double LastClickWorldCoordinates[4];
158 int DisableInteractorStyleEventsProcessing;
162 vtkWeakPointer<vtkMRMLSliceNode> SliceNode;
virtual bool GetInteractive()
Displayable manager can indicate that the window is in interactive mode (faster updates).
Superclass for displayable manager classes.
virtual void OnMRMLSceneEndImport()
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void OnMRMLSceneEndClose()
vtkSmartPointer< vtkMRMLMarkupsDisplayableManagerHelper > Helper
static vtkMRMLAbstractDisplayableManager * New()
MRML node for storing a slice through RAS space.
virtual void OnMRMLDisplayableNodeModifiedEvent(vtkObject *caller)
vtkWeakPointer< vtkSlicerMarkupsWidget > LastActiveWidget
vtkMRMLMarkupsDisplayableManagerHelper * GetHelper()
A set of MRML Nodes that supports serialization and undo/redo.
virtual bool ProcessInteractionEvent(vtkMRMLInteractionEventData *eventData)
virtual void OnMRMLSceneNodeAdded(vtkMRMLNode *)
virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode *)
virtual void UpdateFromMRML()
void ProcessMRMLNodesEvents(vtkObject *caller, unsigned long event, void *callData) override
void SetMRMLSceneInternal(vtkMRMLScene *newScene) override
virtual bool CanProcessInteractionEvent(vtkMRMLInteractionEventData *eventData, double &distance2)
virtual int GetMouseCursor()
Displayable manager returns ID of the mouse cursor shape that should be displayed.
virtual bool GetGrabFocus()
Displayable manager can indicate that it would like to get all events (even when mouse pointer is out...
virtual void UpdateFromMRMLScene()
Abstract Superclass for all specific types of MRML nodes.
vtkSlicerMarkupsWidget * GetWidget(vtkMRMLMarkupsDisplayNode *markupsDisplayNode)
Set all widget status to manipulate.
virtual void SetHasFocus(bool hasFocus, vtkMRMLInteractionEventData *eventData)
Set if the widget gets/loses focus (interaction events are processed by this displayable manager)...
virtual void OnInteractorStyleEvent(int eventid)