16 #ifndef __vtkMRMLAnnotationRulerDisplayableManager_h 17 #define __vtkMRMLAnnotationRulerDisplayableManager_h 21 #include "vtkSlicerAnnotationsModuleMRMLDisplayableManagerExport.h" 24 class vtkSlicerViewerWidget;
25 class vtkMRMLAnnotationRulerDisplayNode;
32 class VTK_SLICER_ANNOTATIONS_MODULE_MRMLDISPLAYABLEMANAGER_EXPORT
40 void PrintSelf(ostream& os, vtkIndent indent)
override;
68 double GetDistance(
const double* wc1,
const double* wc2);
71 double ApplyUnit(
double lengthInMM);
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.
virtual void OnMRMLSelectionNodeUnitModifiedEvent(vtkMRMLSelectionNode *)
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.
vtkMRMLAnnotationRulerDisplayableManager()
void PrintSelf(ostream &os, vtkIndent indent) override
MRML node for storing information about the active nodes in the scene.
virtual void UpdatePosition(vtkAbstractWidget *vtkNotUsed(widget), vtkMRMLNode *vtkNotUsed(node))
Update just the position for the widget, implemented by subclasses.
static vtkMRMLAnnotationDisplayableManager * New()