47 #ifndef vtkImageReader2_h
48 #define vtkImageReader2_h
50 #include "vtkIOImageModule.h"
55 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
56 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
70 virtual void SetFileName(
const char *);
71 vtkGetStringMacro(FileName);
94 virtual void SetFilePrefix(
const char *);
95 vtkGetStringMacro(FilePrefix);
103 virtual void SetFilePattern(
const char *);
104 vtkGetStringMacro(FilePattern);
112 virtual void SetMemoryBuffer(
void *);
118 virtual void SetMemoryBufferLength(
vtkIdType buflen);
126 virtual void SetDataScalarType(
int type);
135 {this->SetDataScalarType(
VTK_CHAR);}
145 vtkGetMacro(DataScalarType,
int);
152 vtkSetMacro(NumberOfScalarComponents,
int);
153 vtkGetMacro(NumberOfScalarComponents,
int);
160 vtkSetVector6Macro(DataExtent,
int);
161 vtkGetVector6Macro(DataExtent,
int);
168 vtkSetMacro(FileDimensionality,
int);
176 vtkSetVector3Macro(DataSpacing,
double);
177 vtkGetVector3Macro(DataSpacing,
double);
184 vtkSetVector3Macro(DataOrigin,
double);
185 vtkGetVector3Macro(DataOrigin,
double);
192 unsigned long GetHeaderSize();
193 unsigned long GetHeaderSize(
unsigned long slice);
200 virtual void SetHeaderSize(
unsigned long size);
216 virtual void SetDataByteOrderToBigEndian();
217 virtual void SetDataByteOrderToLittleEndian();
218 virtual int GetDataByteOrder();
219 virtual void SetDataByteOrder(
int);
220 virtual const char *GetDataByteOrderAsString();
228 vtkSetMacro(FileNameSliceOffset,
int);
229 vtkGetMacro(FileNameSliceOffset,
int);
238 vtkSetMacro(FileNameSliceSpacing,
int);
239 vtkGetMacro(FileNameSliceSpacing,
int);
253 vtkGetVectorMacro(DataIncrements,
unsigned long,4);
255 virtual int OpenFile();
256 virtual void SeekFile(
int i,
int j,
int k);
272 virtual void ComputeInternalFileName(
int slice);
273 vtkGetStringMacro(InternalFileName);
326 unsigned long DataIncrements[4];
335 double DataSpacing[3];
336 double DataOrigin[3];
344 virtual void ExecuteInformation();
346 virtual void ComputeDataIncrements();