15#ifndef __vtkMRMLSelectionNode_h
16#define __vtkMRMLSelectionNode_h
39 void PrintSelf(ostream& os, vtkIndent indent)
override;
47 void WriteXML(ostream& of,
int indent)
override;
189 std::vector<const char*>& unitIDs);
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
bool GetActivePlaceNodePlacementValid()
the node has a locked number of points.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
const char * GetActiveViewID()
the ID of a MRMLViewNode
void SetActiveTableID(const char *id)
void RemovePlaceNodeClassNameFromList(const char *className)
void SetUnitNodeID(const char *quantity, const char *id)
void SetActiveViewID(const char *id)
std::string GetPlaceNodeIconNameByIndex(int n)
void SetReferenceActiveTableID(char *id)
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
std::vector< std::string > PlaceNodeIconNameList
const char * GetUnitNodeID(const char *quantity)
void SetReferenceActivePlotChartID(const char *id)
int PlaceNodeClassNameInList(std::string className)
Check for an classname in the list, returning it's index, -1 if not in list.
const char * GetActiveLabelVolumeID()
the ID of a MRMLVolumeNode
void GetUnitNodes(std::vector< vtkMRMLUnitNode * > &units)
std::vector< std::string > PlaceNodeResourceList
std::vector< std::string > PlaceNodeClassNameList
@ ActivePlaceNodeIDChangedEvent
@ PlaceNodeClassNameListModifiedEvent
@ ActivePlaceNodeClassNameChangedEvent
@ ActivePlaceNodePlacementValidEvent
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
const char * GetActiveTableID()
the ID of a MRMLTableNode
void SetActivePlaceNodeID(const char *id)
const char * GetActiveVolumeID()
the ID of a MRMLVolumeNode (typically background)
void AddNewPlaceNodeClassNameToList(const char *newID, const char *resource=nullptr, const char *iconName="")
bool ActivePlaceNodePlacementValid
void SetActivePlotChartID(const char *id)
void SetReferenceActiveROIListID(const char *id)
void SetReferenceActiveViewID(const char *id)
void SetReferenceActivePlaceNodeID(const char *id)
vtkMRMLSelectionNode(const vtkMRMLSelectionNode &)
void SetReferenceActivePlaceNodeClassName(const char *className)
const char * GetActivePlaceNodeID()
void SetReferenceActiveLabelVolumeID(const char *id)
void SetReferenceActiveCameraID(const char *id)
std::string GetPlaceNodeResourceByClassName(std::string className)
const char * GetSecondaryVolumeID()
the ID of a MRMLVolumeNode (typically foreground)
void SetActiveVolumeID(const char *id)
void SetReferenceSecondaryVolumeID(char *id)
void SetActiveCameraID(const char *id)
vtkMRMLUnitNode * GetUnitNode(const char *quantity)
void SetSecondaryVolumeID(const char *id)
static vtkMRMLSelectionNode * New()
void GetUnitNodeIDs(std::vector< const char * > &quantities, std::vector< const char * > &unitIDs)
void ReadXMLAttributes(const char **atts) override
Set node attributes.
std::string GetPlaceNodeResourceByIndex(int n)
void SetActivePlaceNodePlacementValid(bool valid)
Set whether point placement is valid for the active placement node.
char * ActivePlaceNodeClassName
int GetNumberOfPlaceNodeClassNamesInList()
Get the number of class names in the list.
void PrintSelf(ostream &os, vtkIndent indent) override
void SetReferenceActiveVolumeID(const char *id)
void operator=(const vtkMRMLSelectionNode &)
~vtkMRMLSelectionNode() override
const char * GetActiveCameraID()
the ID of a MRMLCameraNode
const char * GetActivePlotChartID()
the ID of a MRMLPlotChartNode
void SetActiveLayoutID(const char *id)
const char * GetActiveROIListID()
the ID of a MRMLROIList
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override
void SetReferenceActiveLayoutID(const char *id)
std::string GetPlaceNodeClassNameByIndex(int n)
void SetActiveLabelVolumeID(const char *id)
void SetActiveROIListID(const char *id)
const char * GetActiveLayoutID()
the ID of a MRMLLayoutNode
Node that holds the information about a unit.