46 #ifndef vtkImageReader2_h
47 #define vtkImageReader2_h
54 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
55 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
67 virtual void SetFileName(
const char *);
68 vtkGetStringMacro(FileName);
85 virtual void SetFilePrefix(
const char *);
86 vtkGetStringMacro(FilePrefix);
92 virtual void SetFilePattern(
const char *);
93 vtkGetStringMacro(FilePattern);
99 virtual void SetMemoryBuffer(
void *);
105 virtual void SetMemoryBufferLength(
vtkIdType buflen);
113 virtual void SetDataScalarType(
int type);
122 {this->SetDataScalarType(
VTK_CHAR);}
131 vtkGetMacro(DataScalarType,
int);
136 vtkSetMacro(NumberOfScalarComponents,
int);
137 vtkGetMacro(NumberOfScalarComponents,
int);
142 vtkSetVector6Macro(DataExtent,
int);
143 vtkGetVector6Macro(DataExtent,
int);
148 vtkSetMacro(FileDimensionality,
int);
154 vtkSetVector3Macro(DataSpacing,
double);
155 vtkGetVector3Macro(DataSpacing,
double);
160 vtkSetVector3Macro(DataOrigin,
double);
161 vtkGetVector3Macro(DataOrigin,
double);
166 unsigned long GetHeaderSize();
167 unsigned long GetHeaderSize(
unsigned long slice);
172 virtual void SetHeaderSize(
unsigned long size);
185 virtual void SetDataByteOrderToBigEndian();
186 virtual void SetDataByteOrderToLittleEndian();
187 virtual int GetDataByteOrder();
188 virtual void SetDataByteOrder(
int);
189 virtual const char *GetDataByteOrderAsString();
195 vtkSetMacro(FileNameSliceOffset,
int);
196 vtkGetMacro(FileNameSliceOffset,
int);
203 vtkSetMacro(FileNameSliceSpacing,
int);
204 vtkGetMacro(FileNameSliceSpacing,
int);
210 vtkSetMacro(SwapBytes,
int);
212 vtkBooleanMacro(SwapBytes,
int);
217 vtkGetVectorMacro(DataIncrements,
unsigned long,4);
220 virtual int OpenFile();
221 virtual void SeekFile(
int i,
int j,
int k);
226 vtkBooleanMacro(FileLowerLeft,
int);
227 vtkGetMacro(FileLowerLeft,
int);
228 vtkSetMacro(FileLowerLeft,
int);
233 virtual void ComputeInternalFileName(
int slice);
234 vtkGetStringMacro(InternalFileName);
284 unsigned long DataIncrements[4];
293 double DataSpacing[3];
294 double DataOrigin[3];
302 virtual void ExecuteInformation();
304 virtual void ComputeDataIncrements();
#define VTK_UNSIGNED_SHORT
vtkIdType MemoryBufferLength
int GetFileDimensionality()
virtual void SetDataScalarTypeToUnsignedChar()
a vtkAbstractArray subclass for strings
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
int NumberOfScalarComponents
vtkIdType GetMemoryBufferLength()
unsigned long ManualHeaderSize
virtual int CanReadFile(const char *vtkNotUsed(fname))
virtual void SetDataScalarTypeToChar()
virtual void SetDataScalarTypeToShort()
a simple class to control print indentation
virtual void SetDataScalarTypeToSignedChar()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void SetDataScalarTypeToUnsignedShort()
virtual void SetDataScalarTypeToUnsignedInt()
Superclass of binary file readers.
virtual void SetDataScalarTypeToInt()
#define VTK_UNSIGNED_CHAR
virtual void SetDataScalarTypeToDouble()
virtual void SetDataScalarTypeToFloat()
virtual const char * GetFileExtensions()
Generic algorithm superclass for image algs.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
#define VTKIOIMAGE_EXPORT
virtual const char * GetDescriptiveName()
general representation of visualization data
vtkStringArray * FileNames
virtual int GetSwapBytes()
virtual void * GetMemoryBuffer()