15 #ifndef __vtkMRMLSelectionNode_h 16 #define __vtkMRMLSelectionNode_h 39 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
47 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
53 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "Selection";}
59 virtual
void UpdateReferenceID(const
char *oldID, const
char *newID) VTK_OVERRIDE;
63 virtual
void UpdateReferences() VTK_OVERRIDE;
66 vtkGetStringMacro (ActiveVolumeID);
67 void SetActiveVolumeID(const
char*
id);
69 void SetReferenceActiveVolumeID (const
char *
id) { this->SetActiveVolumeID(
id); };
72 vtkGetStringMacro (SecondaryVolumeID);
73 void SetSecondaryVolumeID(
const char*
id);
78 vtkGetStringMacro (ActiveLabelVolumeID);
79 void SetActiveLabelVolumeID(
const char*
id);
85 vtkGetStringMacro (ActiveFiducialListID);
88 void SetActiveFiducialListID(
const char*
id);
97 vtkGetStringMacro (ActivePlaceNodeClassName);
102 vtkSetStringMacro(ActivePlaceNodeClassName);
107 void SetReferenceActivePlaceNodeClassName (
const char *className);
112 vtkGetStringMacro (ActivePlaceNodeID);
116 void SetActivePlaceNodeID(
const char*
id);
122 { this->SetActivePlaceNodeID(
id);
126 vtkGetStringMacro (ActiveROIListID);
127 void SetActiveROIListID(
const char*
id);
132 vtkGetStringMacro (ActiveCameraID );
133 void SetActiveCameraID(
const char*
id);
138 vtkGetStringMacro (ActiveTableID);
139 void SetActiveTableID(
const char*
id);
144 vtkGetStringMacro (ActiveViewID );
145 void SetActiveViewID(
const char*
id );
150 vtkGetStringMacro (ActiveLayoutID );
151 void SetActiveLayoutID(
const char*
id);
156 vtkGetStringMacro (ActivePlotChartID );
157 void SetActivePlotChartID(
const char*
id);
175 ActivePlaceNodeIDChangedEvent = 19001,
183 void AddNewPlaceNodeClassNameToList(
const char *newID,
const char *resource = NULL,
const char *iconName =
"");
196 const char* GetUnitNodeID(
const char* quantity);
197 void SetUnitNodeID(
const char* quantity,
const char*
id);
206 void GetUnitNodes(std::vector<vtkMRMLUnitNode*>& units);
210 void GetUnitNodeIDs(std::vector<const char*>& quantities,
211 std::vector<const char*>& unitIDs);
216 void ProcessMRMLEvents(vtkObject *caller,
unsigned long event,
void *callData) VTK_OVERRIDE;
220 void RemovePlaceNodeClassNameFromList(
const char *className);
223 std::string GetPlaceNodeClassNameByIndex(
int n);
226 std::string GetPlaceNodeResourceByIndex(
int n);
229 std::string GetPlaceNodeIconNameByIndex(
int n);
232 int PlaceNodeClassNameInList(std::string className);
237 std::string GetPlaceNodeResourceByClassName(std::string className);
243 std::string GetModelHierarchyDisplayNodeClassName(
const std::string& dispayableNodeClass)
const;
247 std::map<std::string, std::string> GetModelHierarchyDisplayNodeClassNames()
const;
255 void AddModelHierarchyDisplayNodeClassName(
const std::string& dispayableNodeClass,
256 const std::string& displayNodeClass);
260 void ClearModelHierarchyDisplayNodeClassNames();
271 virtual const char* GetUnitNodeReferenceRole();
272 virtual const char* GetUnitNodeReferenceMRMLAttributeName();
void SetReferenceActiveTableID(char *id)
static const char * UnitNodeReferenceRole
void SetReferenceActiveLayoutID(const char *id)
char * ActiveLabelVolumeID
void SetReferenceActivePlaceNodeID(const char *id)
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
virtual void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData)
Propagate events generated in mrml.
virtual void SetSceneReferences()
Update the references of the node to the scene.
char * ActiveFiducialListID
std::vector< std::string > PlaceNodeIconNameList
static const char * UnitNodeReferenceMRMLAttributeName
void SetReferenceActiveViewID(const char *id)
void SetReferenceActiveLabelVolumeID(const char *id)
std::map< std::string, std::string > ModelHierarchyDisplayNodeClassName
void SetReferenceSecondaryVolumeID(char *id)
void SetReferenceActiveFiducialListID(const char *id)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void SetReferenceActiveROIListID(const char *id)
int GetNumberOfPlaceNodeClassNamesInList()
Get the number of class names in the list.
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)