15 #ifndef __vtkMRMLSelectionNode_h 16 #define __vtkMRMLSelectionNode_h 39 void PrintSelf(ostream& os, vtkIndent indent)
override;
47 void WriteXML(ostream& of,
int indent)
override;
56 const char* GetActiveVolumeID();
57 void SetActiveVolumeID(
const char*
id);
62 const char* GetSecondaryVolumeID();
63 void SetSecondaryVolumeID(
const char*
id);
68 const char* GetActiveLabelVolumeID();
69 void SetActiveLabelVolumeID(
const char*
id);
77 vtkGetStringMacro (ActivePlaceNodeClassName);
82 vtkSetStringMacro(ActivePlaceNodeClassName);
87 void SetReferenceActivePlaceNodeClassName (
const char *className);
92 const char* GetActivePlaceNodeID();
96 void SetActivePlaceNodeID(
const char*
id);
102 { this->SetActivePlaceNodeID(
id);
106 const char* GetActiveROIListID();
107 void SetActiveROIListID(
const char*
id);
112 const char* GetActiveCameraID();
113 void SetActiveCameraID(
const char*
id);
118 const char* GetActiveTableID();
119 void SetActiveTableID(
const char*
id);
124 const char* GetActiveViewID();
125 void SetActiveViewID(
const char*
id );
130 const char* GetActiveLayoutID();
131 void SetActiveLayoutID(
const char*
id);
136 const char* GetActivePlotChartID();
137 void SetActivePlotChartID(
const char*
id);
155 ActivePlaceNodeIDChangedEvent = 19001,
164 void AddNewPlaceNodeClassNameToList(
const char *newID,
const char *resource =
nullptr,
const char *iconName =
"");
177 const char* GetUnitNodeID(
const char* quantity);
178 void SetUnitNodeID(
const char* quantity,
const char*
id);
187 void GetUnitNodes(std::vector<vtkMRMLUnitNode*>& units);
191 void GetUnitNodeIDs(std::vector<const char*>& quantities,
192 std::vector<const char*>& unitIDs);
197 void ProcessMRMLEvents(vtkObject *caller,
unsigned long event,
void *callData)
override;
201 void RemovePlaceNodeClassNameFromList(
const char *className);
204 std::string GetPlaceNodeClassNameByIndex(
int n);
207 std::string GetPlaceNodeResourceByIndex(
int n);
210 std::string GetPlaceNodeIconNameByIndex(
int n);
213 int PlaceNodeClassNameInList(std::string className);
218 std::string GetPlaceNodeResourceByClassName(std::string className);
223 void SetActivePlaceNodePlacementValid(
bool valid);
226 bool GetActivePlaceNodePlacementValid();
void SetReferenceActiveTableID(char *id)
void SetReferenceActiveLayoutID(const char *id)
bool ActivePlaceNodePlacementValid
virtual void ReadXMLAttributes(const char **atts)
void SetReferenceActivePlaceNodeID(const char *id)
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
virtual void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData)
Propagate events generated in mrml.
virtual void Copy(vtkMRMLNode *node)
Copy node contents from another node of the same type. Does not copy node ID and Scene. Performs deep copy - an independent copy is created from all data, including bulk data.
std::vector< std::string > PlaceNodeIconNameList
void SetReferenceActiveViewID(const char *id)
void SetReferenceActiveLabelVolumeID(const char *id)
void SetReferenceSecondaryVolumeID(char *id)
virtual void WriteXML(ostream &of, int indent)
void SetReferenceActiveROIListID(const char *id)
void SetReferenceActiveVolumeID(const char *id)
int GetNumberOfPlaceNodeClassNamesInList()
Get the number of class names in the list.
void PrintSelf(ostream &os, vtkIndent indent) override
Abstract Superclass for all specific types of MRML nodes.
void SetReferenceActiveCameraID(const char *id)
Node that holds the information about a unit.
MRML node for storing information about the active nodes in the scene.
char * ActivePlaceNodeClassName
std::vector< std::string > PlaceNodeClassNameList
std::vector< std::string > PlaceNodeResourceList
void SetReferenceActivePlotChartID(const char *id)