41 #ifndef vtkImageReader2_h
42 #define vtkImageReader2_h
44 #include "vtkIOImageModule.h"
49 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
50 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
64 virtual void SetFileName(
const char *);
65 vtkGetStringMacro(FileName);
88 virtual void SetFilePrefix(
const char *);
89 vtkGetStringMacro(FilePrefix);
97 virtual void SetFilePattern(
const char *);
98 vtkGetStringMacro(FilePattern);
106 virtual void SetMemoryBuffer(
void *);
112 virtual void SetMemoryBufferLength(
vtkIdType buflen);
120 virtual void SetDataScalarType(
int type);
129 {this->SetDataScalarType(
VTK_CHAR);}
139 vtkGetMacro(DataScalarType,
int);
146 vtkSetMacro(NumberOfScalarComponents,
int);
147 vtkGetMacro(NumberOfScalarComponents,
int);
154 vtkSetVector6Macro(DataExtent,
int);
155 vtkGetVector6Macro(DataExtent,
int);
162 vtkSetMacro(FileDimensionality,
int);
170 vtkSetVector3Macro(DataSpacing,
double);
171 vtkGetVector3Macro(DataSpacing,
double);
178 vtkSetVector3Macro(DataOrigin,
double);
179 vtkGetVector3Macro(DataOrigin,
double);
186 unsigned long GetHeaderSize();
187 unsigned long GetHeaderSize(
unsigned long slice);
194 virtual void SetHeaderSize(
unsigned long size);
210 virtual void SetDataByteOrderToBigEndian();
211 virtual void SetDataByteOrderToLittleEndian();
212 virtual int GetDataByteOrder();
213 virtual void SetDataByteOrder(
int);
214 virtual const char *GetDataByteOrderAsString();
222 vtkSetMacro(FileNameSliceOffset,
int);
223 vtkGetMacro(FileNameSliceOffset,
int);
232 vtkSetMacro(FileNameSliceSpacing,
int);
233 vtkGetMacro(FileNameSliceSpacing,
int);
247 vtkGetVectorMacro(DataIncrements,
unsigned long,4);
249 virtual int OpenFile();
250 virtual void SeekFile(
int i,
int j,
int k);
266 virtual void ComputeInternalFileName(
int slice);
267 vtkGetStringMacro(InternalFileName);
320 unsigned long DataIncrements[4];
329 double DataSpacing[3];
330 double DataOrigin[3];
338 virtual void ExecuteInformation();
340 virtual void ComputeDataIncrements();