15 #ifndef __vtkMRMLStorableNode_h 16 #define __vtkMRMLStorableNode_h 37 void PrintSelf(ostream& os, vtkIndent indent)
override;
58 void WriteXML(ostream& of,
int indent)
override;
80 void SetAndObserveStorageNodeID(
const char *storageNodeID);
81 void AddAndObserveStorageNodeID(
const char *storageNodeID);
82 void SetAndObserveNthStorageNodeID(
int n,
const char *storageNodeID);
86 bool HasStorageNodeID(
const char* storageNodeID);
96 void SetSlicerDataType (
const char *type );
97 const char *GetSlicerDataType ();
99 int GetNumberOfStorageNodes();
100 const char *GetNthStorageNodeID(
int n);
101 const char *GetStorageNodeID();
119 virtual std::string GetDefaultStorageNodeClassName(
const char* filename =
nullptr);
123 virtual bool AddDefaultStorageNode(
const char* filename =
nullptr);
130 vtkSetMacro(DefaultSequenceStorageNodeClassName, std::string);
131 vtkGetMacro(DefaultSequenceStorageNodeClassName, std::string);
152 virtual bool GetModifiedSinceRead();
157 virtual void StorableModified();
168 virtual const char* GetStorageNodeReferenceRole();
169 virtual const char* GetStorageNodeReferenceMRMLAttributeName();
187 virtual vtkTimeStamp GetStoredTime();
static const char * StorageNodeReferenceMRMLAttributeName
virtual void ReadXMLAttributes(const char **atts)
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 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.
MRML node to represent a 3D surface model.
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.
virtual void WriteXML(ostream &of, int indent)
std::string SlicerDataType
void PrintSelf(ostream &os, vtkIndent indent) override
#define vtkMRMLCopyContentMacro(thisClassName)
vtkTimeStamp StorableModifiedTime
virtual const char * GetNodeTagName()=0
Abstract Superclass for all specific types of MRML nodes.
vtkTagTable * UserTagTable
std::string DefaultSequenceStorageNodeClassName
static const char * StorageNodeReferenceRole
virtual void UpdateScene(vtkMRMLScene *)