15 #ifndef VTKMRMLANNOTATIONDISPLAYABLEMANAGERHELPER_H_ 16 #define VTKMRMLANNOTATIONDISPLAYABLEMANAGERHELPER_H_ 19 #include "vtkSlicerAnnotationsModuleMRMLDisplayableManagerExport.h" 29 #include <vtkHandleWidget.h> 30 #include <vtkLineWidget2.h> 31 #include <vtkSeedWidget.h> 32 #include <vtkSmartPointer.h> 38 class VTK_SLICER_ANNOTATIONS_MODULE_MRMLDISPLAYABLEMANAGER_EXPORT
46 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 void UpdateLockedAllWidgetsFromNodes();
53 void UpdateLockedAllWidgets(
bool locked);
73 void RemoveAllWidgetsAndNodes();
97 std::map<vtkMRMLAnnotationNode*, vtkAbstractWidget*>
Widgets;
100 typedef std::map<vtkMRMLAnnotationNode*, vtkAbstractWidget*>::iterator
WidgetsIt;
133 void PlaceSeed(
double x,
double y, vtkRenderWindowInteractor * interactor, vtkRenderer * renderer);
136 vtkHandleWidget * GetSeed(
int index);
153 vtkSmartPointer<vtkSeedWidget> SeedWidget;
155 std::vector<vtkSmartPointer<vtkHandleWidget> > HandleWidgetList;
157 typedef std::vector<vtkSmartPointer<vtkHandleWidget> >::iterator HandleWidgetListIt;
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * > WidgetPointProjections
Map of vtkWidgets to reflect the Slice projection indexed using associated node ID.
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * > WidgetIntersections
Map of vtkWidgets to reflect the Slice intersections indexed using associated node ID...
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * >::iterator WidgetOverLineProjectionsIt
.. and its associated convenient typedef
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * >::iterator WidgetIntersectionsIt
.. and its associated convenient typedef
std::vector< vtkMRMLAnnotationNode * > AnnotationNodeList
List of Nodes managed by the DisplayableManager.
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * >::iterator WidgetPointProjectionsIt
.. and its associated convenient typedef
std::vector< vtkMRMLAnnotationNode * >::iterator AnnotationNodeListIt
.. and its associated convenient typedef
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * > Widgets
Map of vtkWidget indexed using associated node ID.
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * > WidgetUnderLineProjections
Map of vtkWidgets to reflect the Slice projection indexed using associated node ID.
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * > WidgetOverLineProjections
Map of vtkWidgets to reflect the Slice projection indexed using associated node ID.
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * >::iterator WidgetUnderLineProjectionsIt
.. and its associated convenient typedef
std::map< vtkMRMLAnnotationNode *, vtkAbstractWidget * >::iterator WidgetsIt
.. and its associated convenient typedef