15 #ifndef __vtkMRMLVolumeHeaderlessStorageNode_h 16 #define __vtkMRMLVolumeHeaderlessStorageNode_h 31 void PrintSelf(ostream& os, vtkIndent indent)
override;
41 void WriteXML(ostream& of,
int indent)
override;
53 vtkGetStringMacro(FileScanOrder);
54 vtkSetStringMacro(FileScanOrder);
58 vtkGetVector3Macro(FileDimensions,
int);
59 vtkSetVector3Macro(FileDimensions,
int);
63 vtkGetVector3Macro(FileSpacing,
double);
64 vtkSetVector3Macro(FileSpacing,
double);
69 vtkSetMacro(FileScalarType,
int);
70 vtkGetMacro(FileScalarType,
int);
73 {this->SetFileScalarType(VTK_UNSIGNED_CHAR);};
75 {this->SetFileScalarType(VTK_CHAR);};
77 this->SetFileScalarType(VTK_SHORT);};
79 {this->SetFileScalarType(VTK_UNSIGNED_SHORT);};
81 this->SetFileScalarType(VTK_INT);};
83 this->SetFileScalarType(VTK_UNSIGNED_INT);};
85 this->SetFileScalarType(VTK_LONG);};
87 this->SetFileScalarType(VTK_UNSIGNED_LONG);};
89 this->SetFileScalarType(VTK_FLOAT);};
91 this->SetFileScalarType(VTK_DOUBLE);};
93 const char* GetFileScalarTypeAsString();
95 void SetFileScalarTypeAsString(
const char* );
100 vtkGetMacro(FileNumberOfScalarComponents,
int);
101 vtkSetMacro(FileNumberOfScalarComponents,
int);
107 vtkGetMacro(FileLittleEndian,
int);
108 vtkSetMacro(FileLittleEndian,
int);
109 vtkBooleanMacro(FileLittleEndian,
int);
113 vtkGetMacro(CenterImage,
int);
114 vtkSetMacro(CenterImage,
int);
140 double FileSpacing[3];
141 int FileDimensions[3];
vtkMRMLNode * CreateNodeInstance() override=0
Create instance of the default node. Like New only virtual.
virtual int ReadDataInternal(vtkMRMLNode *refNode)
void operator=(const vtkMRMLStorageNode &)
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
void PrintSelf(ostream &os, vtkIndent indent) override
virtual bool CanWriteFromReferenceNode(vtkMRMLNode *refNode)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
A superclass for other storage nodes.
virtual void InitializeSupportedWriteFileTypes()
virtual int WriteDataInternal(vtkMRMLNode *refNode)
Abstract Superclass for all specific types of MRML nodes.
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0