28#ifndef __vtkMRMLSubjectHierarchyLegacyNode_h
29#define __vtkMRMLSubjectHierarchyLegacyNode_h
66 void PrintSelf(ostream& os, vtkIndent indent)
override;
74 void WriteXML(ostream& of,
int indent)
override;
100 static void DeserializeUIDList(std::string uidListString, std::vector<std::string>& deserializedUIDList);
124 std::map<std::string, std::string>
GetUIDs()
const;
135 std::map<std::string, std::string>
UIDs;
friend class vtkMRMLScene
char * Level
Level identifier (default levels are Subject and Study)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void PrintSelf(ostream &os, vtkIndent indent) override
static void DeserializeUIDList(std::string uidListString, std::vector< std::string > &deserializedUIDList)
Deserialize a UID list string (stored in the UID map) into a vector of UID strings.
static const std::string SUBJECTHIERARCHY_UID_ITEM_SEPARATOR
char * OwnerPluginName
Name of the owner plugin that claimed this node.
std::vector< vtkMRMLSubjectHierarchyLegacyNode * > GetSubjectHierarchyNodesReferencedByDICOM()
static vtkMRMLSubjectHierarchyLegacyNode * GetSubjectHierarchyLegacyNodeByUIDList(vtkMRMLScene *scene, const char *uidName, const char *uidValue)
static vtkMRMLSubjectHierarchyLegacyNode * GetSubjectHierarchyLegacyNodeByUID(vtkMRMLScene *scene, const char *uidName, const char *uidValue)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
vtkMRMLSubjectHierarchyLegacyNode(const vtkMRMLSubjectHierarchyLegacyNode &)
vtkMRMLSubjectHierarchyLegacyNode()
static vtkMRMLSubjectHierarchyLegacyNode * New()
static const std::string SUBJECTHIERARCHY_UID_NAME_VALUE_SEPARATOR
void operator=(const vtkMRMLSubjectHierarchyLegacyNode &)
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Contour)
std::map< std::string, std::string > UIDs
~vtkMRMLSubjectHierarchyLegacyNode() override
std::map< std::string, std::string > GetUIDs() const
Get UID map for this subject hierarchy node.
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
std::string GetUID(std::string uidName)