Slicer
4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/Markups/MRMLDM/vtkMRMLMarkupsDisplayableManagerHelper.h>
Public Types | |
typedef std::vector< vtkMRMLMarkupsNode * >::iterator | MarkupsNodeListIt |
Typedef for iterator over the list of nodes managed by the DisplayableManager. More... | |
typedef vtkObject | Superclass |
typedef std::map< vtkMRMLMarkupsNode *, vtkAbstractWidget * >::iterator | WidgetIntersectionsIt |
.. and its associated convenient typedef More... | |
typedef std::map< std::string, vtkAbstractWidget * >::iterator | WidgetPointProjectionsIt |
.. and its associated convenient typedef More... | |
typedef std::map< vtkMRMLMarkupsNode *, vtkAbstractWidget * >::iterator | WidgetsIt |
.. and its associated convenient typedef More... | |
Public Member Functions | |
void | ClearNodeGlyphTypes () |
Clear out the saved list of glyph types, called on scene close or node removed. More... | |
virtual const char * | GetClassName () |
vtkAbstractWidget * | GetIntersectionWidget (vtkMRMLMarkupsNode *node) |
...and its associated vtkAbstractWidget* for Slice intersection representation More... | |
vtkMRMLMarkupsNode * | GetMarkupsNodeFromDisplayNode (vtkMRMLMarkupsDisplayNode *displayNode) |
Search the markups node list and return the markups node that has this display node. More... | |
int | GetNodeGlyphType (vtkMRMLNode *displayNode, int index) |
vtkAbstractWidget * | GetPointProjectionWidget (std::string uniqueFiducialID) |
vtkHandleWidget * | GetSeed (int index) |
Get a placed seed. More... | |
vtkAbstractWidget * | GetWidget (vtkMRMLMarkupsNode *node) |
Get a vtkAbstractWidget* given a node. More... | |
virtual int | IsA (const char *type) |
void | PlaceSeed (double x, double y, vtkRenderWindowInteractor *interactor, vtkRenderer *renderer) |
Placement of seeds for widget placement. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
void | RecordWidgetForNode (vtkAbstractWidget *widget, vtkMRMLMarkupsNode *node) |
Keep track of the mapping between widgets and nodes. More... | |
void | RemoveAllWidgetsAndNodes () |
Remove all widgets, intersection widgets, nodes. More... | |
void | RemoveNodeGlyphType (vtkMRMLNode *displayNode) |
Remove the entry for this display node. More... | |
void | RemoveSeeds () |
Remove all placed seeds. More... | |
void | RemoveWidgetAndNode (vtkMRMLMarkupsNode *node) |
Remove a node, its widget and its intersection widget. More... | |
void | SetNodeGlyphType (vtkMRMLNode *displayNode, int glyphType, int index) |
void | UpdateLocked (vtkMRMLMarkupsNode *node, vtkMRMLInteractionNode *interactionNode=NULL) |
void | UpdateLockedAllWidgets (bool locked) |
Lock/Unlock all widgets. More... | |
void | UpdateLockedAllWidgetsFromInteractionNode (vtkMRMLInteractionNode *interactionNode) |
Lock/Unlock all widgets from interaction node. More... | |
void | UpdateLockedAllWidgetsFromNodes () |
Lock/Unlock all widgets based on the state of the nodes. More... | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkMRMLMarkupsDisplayableManagerHelper * | New () |
static vtkMRMLMarkupsDisplayableManagerHelper * | SafeDownCast (vtkObject *o) |
Public Attributes | |
std::vector< vtkMRMLMarkupsNode * > | MarkupsNodeList |
List of nodes managed by the DisplayableManager. More... | |
std::map< vtkMRMLMarkupsNode *, vtkAbstractWidget * > | WidgetIntersections |
Map of vtkWidgets to reflect the Slice intersections indexed using associated node ID. More... | |
std::map< std::string, vtkAbstractWidget * > | WidgetPointProjections |
Map of vtkWidgets to reflect the Slice projection indexed using associated point IDs. More... | |
std::map< vtkMRMLMarkupsNode *, vtkAbstractWidget * > | Widgets |
Map of vtkWidget indexed using associated node ID. More... | |
Protected Member Functions | |
void | PrintNodeGlyphTypes () |
utility method to print out the current glyph types More... | |
vtkMRMLMarkupsDisplayableManagerHelper () | |
virtual | ~vtkMRMLMarkupsDisplayableManagerHelper () |
Definition at line 48 of file vtkMRMLMarkupsDisplayableManagerHelper.h.
typedef std::vector<vtkMRMLMarkupsNode*>::iterator vtkMRMLMarkupsDisplayableManagerHelper::MarkupsNodeListIt |
Typedef for iterator over the list of nodes managed by the DisplayableManager.
Definition at line 92 of file vtkMRMLMarkupsDisplayableManagerHelper.h.
typedef vtkObject vtkMRMLMarkupsDisplayableManagerHelper::Superclass |
Definition at line 54 of file vtkMRMLMarkupsDisplayableManagerHelper.h.
typedef std::map<vtkMRMLMarkupsNode*, vtkAbstractWidget*>::iterator vtkMRMLMarkupsDisplayableManagerHelper::WidgetIntersectionsIt |
.. and its associated convenient typedef
Definition at line 104 of file vtkMRMLMarkupsDisplayableManagerHelper.h.
typedef std::map<std::string, vtkAbstractWidget*>::iterator vtkMRMLMarkupsDisplayableManagerHelper::WidgetPointProjectionsIt |
.. and its associated convenient typedef
Definition at line 110 of file vtkMRMLMarkupsDisplayableManagerHelper.h.
typedef std::map<vtkMRMLMarkupsNode*, vtkAbstractWidget*>::iterator vtkMRMLMarkupsDisplayableManagerHelper::WidgetsIt |
.. and its associated convenient typedef
Definition at line 98 of file vtkMRMLMarkupsDisplayableManagerHelper.h.
|
protected |
|
protectedvirtual |
void vtkMRMLMarkupsDisplayableManagerHelper::ClearNodeGlyphTypes | ( | ) |
Clear out the saved list of glyph types, called on scene close or node removed.
|
virtual |
vtkAbstractWidget* vtkMRMLMarkupsDisplayableManagerHelper::GetIntersectionWidget | ( | vtkMRMLMarkupsNode * | node | ) |
...and its associated vtkAbstractWidget* for Slice intersection representation
vtkMRMLMarkupsNode* vtkMRMLMarkupsDisplayableManagerHelper::GetMarkupsNodeFromDisplayNode | ( | vtkMRMLMarkupsDisplayNode * | displayNode | ) |
Search the markups node list and return the markups node that has this display node.
int vtkMRMLMarkupsDisplayableManagerHelper::GetNodeGlyphType | ( | vtkMRMLNode * | displayNode, |
int | index | ||
) |
Get the seed glyph type for the given display node. Returns -1 if not found
vtkAbstractWidget* vtkMRMLMarkupsDisplayableManagerHelper::GetPointProjectionWidget | ( | std::string | uniqueFiducialID | ) |
...and its associated vtkAbstractWidget* for Slice projection representation. There is one projection widget per unique point.
vtkHandleWidget* vtkMRMLMarkupsDisplayableManagerHelper::GetSeed | ( | int | index | ) |
Get a placed seed.
vtkAbstractWidget* vtkMRMLMarkupsDisplayableManagerHelper::GetWidget | ( | vtkMRMLMarkupsNode * | node | ) |
Get a vtkAbstractWidget* given a node.
|
virtual |
|
static |
|
static |
void vtkMRMLMarkupsDisplayableManagerHelper::PlaceSeed | ( | double | x, |
double | y, | ||
vtkRenderWindowInteractor * | interactor, | ||
vtkRenderer * | renderer | ||
) |
Placement of seeds for widget placement.
|
protected |
utility method to print out the current glyph types
void vtkMRMLMarkupsDisplayableManagerHelper::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
void vtkMRMLMarkupsDisplayableManagerHelper::RecordWidgetForNode | ( | vtkAbstractWidget * | widget, |
vtkMRMLMarkupsNode * | node | ||
) |
Keep track of the mapping between widgets and nodes.
void vtkMRMLMarkupsDisplayableManagerHelper::RemoveAllWidgetsAndNodes | ( | ) |
Remove all widgets, intersection widgets, nodes.
void vtkMRMLMarkupsDisplayableManagerHelper::RemoveNodeGlyphType | ( | vtkMRMLNode * | displayNode | ) |
Remove the entry for this display node.
void vtkMRMLMarkupsDisplayableManagerHelper::RemoveSeeds | ( | ) |
Remove all placed seeds.
void vtkMRMLMarkupsDisplayableManagerHelper::RemoveWidgetAndNode | ( | vtkMRMLMarkupsNode * | node | ) |
Remove a node, its widget and its intersection widget.
|
static |
void vtkMRMLMarkupsDisplayableManagerHelper::SetNodeGlyphType | ( | vtkMRMLNode * | displayNode, |
int | glyphType, | ||
int | index | ||
) |
Set the glyph type for the given display node, making a new entry if the display node or the index are out of bounds
void vtkMRMLMarkupsDisplayableManagerHelper::UpdateLocked | ( | vtkMRMLMarkupsNode * | node, |
vtkMRMLInteractionNode * | interactionNode = NULL |
||
) |
Lock/Unlock a widget. If no interaction node is passed in, don't take the mouse mode into account, if it is passed in, widgets get locked while in Place mode
void vtkMRMLMarkupsDisplayableManagerHelper::UpdateLockedAllWidgets | ( | bool | locked | ) |
Lock/Unlock all widgets.
void vtkMRMLMarkupsDisplayableManagerHelper::UpdateLockedAllWidgetsFromInteractionNode | ( | vtkMRMLInteractionNode * | interactionNode | ) |
Lock/Unlock all widgets from interaction node.
void vtkMRMLMarkupsDisplayableManagerHelper::UpdateLockedAllWidgetsFromNodes | ( | ) |
Lock/Unlock all widgets based on the state of the nodes.
std::vector<vtkMRMLMarkupsNode*> vtkMRMLMarkupsDisplayableManagerHelper::MarkupsNodeList |
List of nodes managed by the DisplayableManager.
Definition at line 89 of file vtkMRMLMarkupsDisplayableManagerHelper.h.
std::map<vtkMRMLMarkupsNode*, vtkAbstractWidget*> vtkMRMLMarkupsDisplayableManagerHelper::WidgetIntersections |
Map of vtkWidgets to reflect the Slice intersections indexed using associated node ID.
Definition at line 101 of file vtkMRMLMarkupsDisplayableManagerHelper.h.
std::map<std::string, vtkAbstractWidget*> vtkMRMLMarkupsDisplayableManagerHelper::WidgetPointProjections |
Map of vtkWidgets to reflect the Slice projection indexed using associated point IDs.
Definition at line 107 of file vtkMRMLMarkupsDisplayableManagerHelper.h.
std::map<vtkMRMLMarkupsNode*, vtkAbstractWidget*> vtkMRMLMarkupsDisplayableManagerHelper::Widgets |
Map of vtkWidget indexed using associated node ID.
Definition at line 95 of file vtkMRMLMarkupsDisplayableManagerHelper.h.