16 #ifndef __vtkMRMLAnnotationTextDisplayableManager_h 17 #define __vtkMRMLAnnotationTextDisplayableManager_h 21 #include "vtkSlicerAnnotationsModuleMRMLDisplayableManagerExport.h" 24 class vtkSlicerViewerWidget;
31 class VTK_SLICER_ANNOTATIONS_MODULE_MRMLDISPLAYABLEMANAGER_EXPORT
39 void PrintSelf(ostream& os, vtkIndent indent)
override;
64 void BestGuessForNewCaptionCoordinates(
double bestGuess[2]);
virtual void OnClickInRenderWindow(double x, double y, const char *associatedNodeID=nullptr)
Callback for click in RenderWindow.
virtual void OnWidgetCreated(vtkAbstractWidget *widget, vtkMRMLAnnotationNode *node)
Gets called when widget was created.
virtual void PropagateWidgetToMRML(vtkAbstractWidget *widget, vtkMRMLAnnotationNode *node)
Propagate properties of widget to MRML node.
vtkMRMLAnnotationTextDisplayableManager()
virtual vtkAbstractWidget * CreateWidget(vtkMRMLAnnotationNode *node)
Create a widget.
virtual void PropagateMRMLToWidget(vtkMRMLAnnotationNode *node, vtkAbstractWidget *widget)
Propagate properties of MRML node to widget.
Abstract Superclass for all specific types of MRML nodes.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void UpdatePosition(vtkAbstractWidget *vtkNotUsed(widget), vtkMRMLNode *vtkNotUsed(node))
Update just the position for the widget, implemented by subclasses.
static vtkMRMLAnnotationDisplayableManager * New()