27 #ifndef VTKMRMLMARKUPSDISPLAYABLEMANAGERHELPER_H_ 28 #define VTKMRMLMARKUPSDISPLAYABLEMANAGERHELPER_H_ 31 #include "vtkSlicerMarkupsModuleMRMLDisplayableManagerExport.h" 37 #include <vtkAbstractWidget.h> 38 #include <vtkHandleWidget.h> 39 #include <vtkSeedWidget.h> 40 #include <vtkSmartPointer.h> 55 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
58 void UpdateLockedAllWidgetsFromNodes();
62 void UpdateLockedAllWidgets(
bool locked);
77 vtkAbstractWidget * GetPointProjectionWidget(std::string uniqueFiducialID);
80 void RemoveAllWidgetsAndNodes();
95 std::map<vtkMRMLMarkupsNode*, vtkAbstractWidget*>
Widgets;
98 typedef std::map<vtkMRMLMarkupsNode*, vtkAbstractWidget*>::iterator
WidgetsIt;
119 void PlaceSeed(
double x,
double y, vtkRenderWindowInteractor * interactor, vtkRenderer * renderer);
122 vtkHandleWidget * GetSeed(
int index);
129 int GetNodeGlyphType(
vtkMRMLNode *displayNode,
int index);
132 void SetNodeGlyphType(
vtkMRMLNode *displayNode,
int glyphType,
int index);
134 void RemoveNodeGlyphType(
vtkMRMLNode *displayNode);
136 void ClearNodeGlyphTypes();
144 void PrintNodeGlyphTypes();
152 vtkSmartPointer<vtkSeedWidget> SeedWidget;
154 std::vector<vtkSmartPointer<vtkHandleWidget> > HandleWidgetList;
156 typedef std::vector<vtkSmartPointer<vtkHandleWidget> >::iterator HandleWidgetListIt;
160 std::map<vtkMRMLNode*, std::vector<int> > NodeGlyphTypes;
std::map< vtkMRMLMarkupsNode *, vtkAbstractWidget * >::iterator WidgetIntersectionsIt
.. and its associated convenient typedef
std::map< vtkMRMLMarkupsNode *, vtkAbstractWidget * > WidgetIntersections
Map of vtkWidgets to reflect the Slice intersections indexed using associated node ID...
std::vector< vtkMRMLMarkupsNode * > MarkupsNodeList
List of nodes managed by the DisplayableManager.
std::vector< vtkMRMLMarkupsNode * >::iterator MarkupsNodeListIt
Typedef for iterator over the list of nodes managed by the DisplayableManager.
MRML node to represent a list of markups Markups nodes contains a list of markups that each contain a...
std::map< vtkMRMLMarkupsNode *, vtkAbstractWidget * > Widgets
Map of vtkWidget indexed using associated node ID.
std::map< vtkMRMLMarkupsNode *, vtkAbstractWidget * >::iterator WidgetsIt
.. and its associated convenient typedef
std::map< std::string, vtkAbstractWidget * > WidgetPointProjections
Map of vtkWidgets to reflect the Slice projection indexed using associated point IDs.
Abstract Superclass for all specific types of MRML nodes.
std::map< std::string, vtkAbstractWidget * >::iterator WidgetPointProjectionsIt
.. and its associated convenient typedef