15 #ifndef __vtkMRMLVolumeHeaderlessStorageNode_h 16 #define __vtkMRMLVolumeHeaderlessStorageNode_h 31 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
37 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
41 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
49 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "VolumeHeaderlessStorage";}
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];
virtual int ReadDataInternal(vtkMRMLNode *refNode)
void operator=(const vtkMRMLStorageNode &)
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE=0
Create instance of the default node. Like New only virtual.
virtual bool CanWriteFromReferenceNode(vtkMRMLNode *refNode)
A supercalss for other storage nodes.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual void InitializeSupportedWriteFileTypes()
virtual int WriteDataInternal(vtkMRMLNode *refNode)
Abstract Superclass for all specific types of MRML nodes.
virtual bool CanReadInReferenceNode(vtkMRMLNode *refNode)=0