15 #ifndef __vtkMRMLStorableNode_h 16 #define __vtkMRMLStorableNode_h 37 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50 virtual const
char* GetNodeTagName() VTK_OVERRIDE = 0;
54 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
58 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
66 virtual
void UpdateScene(
vtkMRMLScene *scene) VTK_OVERRIDE;
70 virtual
void ProcessMRMLEvents ( vtkObject * ,
72 void * ) VTK_OVERRIDE;
76 void SetAndObserveStorageNodeID(const
char *storageNodeID);
77 void AddAndObserveStorageNodeID(const
char *storageNodeID);
78 void SetAndObserveNthStorageNodeID(
int n, const
char *storageNodeID);
88 void SetSlicerDataType ( const
char *type );
89 const
char *GetSlicerDataType ();
91 int GetNumberOfStorageNodes();
92 const
char *GetNthStorageNodeID(
int n);
93 const
char *GetStorageNodeID();
111 virtual
std::
string GetDefaultStorageNodeClassName(const
char* filename = NULL);
115 virtual
bool AddDefaultStorageNode(const
char* filename = NULL);
130 virtual
bool GetModifiedSinceRead();
135 virtual
void StorableModified();
139 ~vtkMRMLStorableNode();
140 vtkMRMLStorableNode(const vtkMRMLStorableNode&);
141 void operator=(const vtkMRMLStorableNode&);
143 static const
char* StorageNodeReferenceRole;
144 static const
char* StorageNodeReferenceMRMLAttributeName;
146 virtual const
char* GetStorageNodeReferenceRole();
147 virtual const
char* GetStorageNodeReferenceMRMLAttributeName();
154 std::
string SlicerDataType;
163 virtual vtkTimeStamp GetStoredTime();
173 vtkTimeStamp StorableModifiedTime;
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
MRML node to represent a 3D surface model.
A set of MRML Nodes that supports serialization and undo/redo.
A supercalss for other storage nodes.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.