Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
vtkMRMLMarkupsDisplayableManagerHelper Class Reference

#include <Modules/Loadable/Markups/MRMLDM/vtkMRMLMarkupsDisplayableManagerHelper.h>

Inheritance diagram for vtkMRMLMarkupsDisplayableManagerHelper:
Inheritance graph
[legend]
Collaboration diagram for vtkMRMLMarkupsDisplayableManagerHelper:
Collaboration graph
[legend]

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...
 
vtkMRMLMarkupsNodeGetMarkupsNodeFromDisplayNode (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 vtkMRMLMarkupsDisplayableManagerHelperNew ()
 
static vtkMRMLMarkupsDisplayableManagerHelperSafeDownCast (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 ()
 

Detailed Description

Definition at line 48 of file vtkMRMLMarkupsDisplayableManagerHelper.h.

Member Typedef Documentation

◆ MarkupsNodeListIt

Typedef for iterator over the list of nodes managed by the DisplayableManager.

Definition at line 92 of file vtkMRMLMarkupsDisplayableManagerHelper.h.

◆ Superclass

Definition at line 54 of file vtkMRMLMarkupsDisplayableManagerHelper.h.

◆ WidgetIntersectionsIt

.. and its associated convenient typedef

Definition at line 104 of file vtkMRMLMarkupsDisplayableManagerHelper.h.

◆ WidgetPointProjectionsIt

typedef std::map<std::string, vtkAbstractWidget*>::iterator vtkMRMLMarkupsDisplayableManagerHelper::WidgetPointProjectionsIt

.. and its associated convenient typedef

Definition at line 110 of file vtkMRMLMarkupsDisplayableManagerHelper.h.

◆ WidgetsIt

typedef std::map<vtkMRMLMarkupsNode*, vtkAbstractWidget*>::iterator vtkMRMLMarkupsDisplayableManagerHelper::WidgetsIt

.. and its associated convenient typedef

Definition at line 98 of file vtkMRMLMarkupsDisplayableManagerHelper.h.

Constructor & Destructor Documentation

◆ vtkMRMLMarkupsDisplayableManagerHelper()

vtkMRMLMarkupsDisplayableManagerHelper::vtkMRMLMarkupsDisplayableManagerHelper ( )
protected

◆ ~vtkMRMLMarkupsDisplayableManagerHelper()

virtual vtkMRMLMarkupsDisplayableManagerHelper::~vtkMRMLMarkupsDisplayableManagerHelper ( )
protectedvirtual

Member Function Documentation

◆ ClearNodeGlyphTypes()

void vtkMRMLMarkupsDisplayableManagerHelper::ClearNodeGlyphTypes ( )

Clear out the saved list of glyph types, called on scene close or node removed.

◆ GetClassName()

virtual const char* vtkMRMLMarkupsDisplayableManagerHelper::GetClassName ( )
virtual

◆ GetIntersectionWidget()

vtkAbstractWidget* vtkMRMLMarkupsDisplayableManagerHelper::GetIntersectionWidget ( vtkMRMLMarkupsNode node)

...and its associated vtkAbstractWidget* for Slice intersection representation

◆ GetMarkupsNodeFromDisplayNode()

vtkMRMLMarkupsNode* vtkMRMLMarkupsDisplayableManagerHelper::GetMarkupsNodeFromDisplayNode ( vtkMRMLMarkupsDisplayNode displayNode)

Search the markups node list and return the markups node that has this display node.

◆ GetNodeGlyphType()

int vtkMRMLMarkupsDisplayableManagerHelper::GetNodeGlyphType ( vtkMRMLNode displayNode,
int  index 
)

Get the seed glyph type for the given display node. Returns -1 if not found

◆ GetPointProjectionWidget()

vtkAbstractWidget* vtkMRMLMarkupsDisplayableManagerHelper::GetPointProjectionWidget ( std::string  uniqueFiducialID)

...and its associated vtkAbstractWidget* for Slice projection representation. There is one projection widget per unique point.

◆ GetSeed()

vtkHandleWidget* vtkMRMLMarkupsDisplayableManagerHelper::GetSeed ( int  index)

Get a placed seed.

◆ GetWidget()

vtkAbstractWidget* vtkMRMLMarkupsDisplayableManagerHelper::GetWidget ( vtkMRMLMarkupsNode node)

Get a vtkAbstractWidget* given a node.

◆ IsA()

virtual int vtkMRMLMarkupsDisplayableManagerHelper::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkMRMLMarkupsDisplayableManagerHelper::IsTypeOf ( const char *  type)
static

◆ New()

static vtkMRMLMarkupsDisplayableManagerHelper* vtkMRMLMarkupsDisplayableManagerHelper::New ( )
static

◆ PlaceSeed()

void vtkMRMLMarkupsDisplayableManagerHelper::PlaceSeed ( double  x,
double  y,
vtkRenderWindowInteractor *  interactor,
vtkRenderer *  renderer 
)

Placement of seeds for widget placement.

◆ PrintNodeGlyphTypes()

void vtkMRMLMarkupsDisplayableManagerHelper::PrintNodeGlyphTypes ( )
protected

utility method to print out the current glyph types

◆ PrintSelf()

void vtkMRMLMarkupsDisplayableManagerHelper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ RecordWidgetForNode()

void vtkMRMLMarkupsDisplayableManagerHelper::RecordWidgetForNode ( vtkAbstractWidget *  widget,
vtkMRMLMarkupsNode node 
)

Keep track of the mapping between widgets and nodes.

◆ RemoveAllWidgetsAndNodes()

void vtkMRMLMarkupsDisplayableManagerHelper::RemoveAllWidgetsAndNodes ( )

Remove all widgets, intersection widgets, nodes.

◆ RemoveNodeGlyphType()

void vtkMRMLMarkupsDisplayableManagerHelper::RemoveNodeGlyphType ( vtkMRMLNode displayNode)

Remove the entry for this display node.

◆ RemoveSeeds()

void vtkMRMLMarkupsDisplayableManagerHelper::RemoveSeeds ( )

Remove all placed seeds.

◆ RemoveWidgetAndNode()

void vtkMRMLMarkupsDisplayableManagerHelper::RemoveWidgetAndNode ( vtkMRMLMarkupsNode node)

Remove a node, its widget and its intersection widget.

◆ SafeDownCast()

static vtkMRMLMarkupsDisplayableManagerHelper* vtkMRMLMarkupsDisplayableManagerHelper::SafeDownCast ( vtkObject *  o)
static

◆ SetNodeGlyphType()

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

◆ UpdateLocked()

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

◆ UpdateLockedAllWidgets()

void vtkMRMLMarkupsDisplayableManagerHelper::UpdateLockedAllWidgets ( bool  locked)

Lock/Unlock all widgets.

◆ UpdateLockedAllWidgetsFromInteractionNode()

void vtkMRMLMarkupsDisplayableManagerHelper::UpdateLockedAllWidgetsFromInteractionNode ( vtkMRMLInteractionNode interactionNode)

Lock/Unlock all widgets from interaction node.

◆ UpdateLockedAllWidgetsFromNodes()

void vtkMRMLMarkupsDisplayableManagerHelper::UpdateLockedAllWidgetsFromNodes ( )

Lock/Unlock all widgets based on the state of the nodes.

Member Data Documentation

◆ MarkupsNodeList

std::vector<vtkMRMLMarkupsNode*> vtkMRMLMarkupsDisplayableManagerHelper::MarkupsNodeList

List of nodes managed by the DisplayableManager.

Definition at line 89 of file vtkMRMLMarkupsDisplayableManagerHelper.h.

◆ WidgetIntersections

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.

◆ WidgetPointProjections

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.

◆ Widgets

std::map<vtkMRMLMarkupsNode*, vtkAbstractWidget*> vtkMRMLMarkupsDisplayableManagerHelper::Widgets

Map of vtkWidget indexed using associated node ID.

Definition at line 95 of file vtkMRMLMarkupsDisplayableManagerHelper.h.


The documentation for this class was generated from the following file: