18 #ifndef __vtkMRMLMarkupsDisplayableManager_h 19 #define __vtkMRMLMarkupsDisplayableManager_h 22 #include "vtkSlicerMarkupsModuleMRMLDisplayableManagerExport.h" 36 class vtkSlicerViewerWidget;
38 class vtkAbstractWidget;
51 void PrintSelf(ostream& os, vtkIndent indent)
override;
56 virtual bool Is2DDisplayableManager();
76 int GetCurrentInteractionMode();
83 void ConvertDeviceToXYZ(
double x,
double y,
double xyz[3]);
121 virtual void OnMRMLSliceNodeModifiedEvent();
124 void AddObserversToInteractionNode();
125 void RemoveObserversFromInteractionNode();
128 virtual bool IsCorrectDisplayableManager();
139 virtual bool IsManageable(
const char* nodeClassName);
148 vtkGetMacro(DisableInteractorStyleEventsProcessing,
int);
152 double LastClickWorldCoordinates[4];
162 int DisableInteractorStyleEventsProcessing;
virtual bool GetInteractive()
Displayable manager can indicate that the window is in interactive mode (faster updates).
Superclass for displayable manager classes.
virtual void SetHasFocus(bool hasFocus)
Set if the widget gets/loses focus (interaction events are processed by this displayable manager)...
virtual void OnMRMLSceneEndImport()
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void OnMRMLSceneEndClose()
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)
std::set< std::string > Focus
Contains class names of markups nodes that this displayable manager can handle.
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 OnInteractorStyleEvent(int eventid)