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
71 vtkGetFilePathMacro(FileName);
95 vtkGetFilePathMacro(FilePrefix);
104 vtkGetFilePathMacro(FilePattern);
112 virtual void SetMemoryBuffer(
const void*);
118 virtual void SetMemoryBufferLength(
vtkIdType buflen);
126 virtual void SetDataScalarType(
int type);
141 vtkGetMacro(DataScalarType,
int);
148 vtkSetMacro(NumberOfScalarComponents,
int);
149 vtkGetMacro(NumberOfScalarComponents,
int);
156 vtkSetVector6Macro(DataExtent,
int);
157 vtkGetVector6Macro(DataExtent,
int);
164 vtkSetMacro(FileDimensionality,
int);
172 vtkSetVector3Macro(DataSpacing,
double);
173 vtkGetVector3Macro(DataSpacing,
double);
180 vtkSetVector3Macro(DataOrigin,
double);
181 vtkGetVector3Macro(DataOrigin,
double);
188 vtkSetVectorMacro(DataDirection,
double, 9);
189 vtkGetVectorMacro(DataDirection,
double, 9);
196 unsigned long GetHeaderSize();
197 unsigned long GetHeaderSize(
unsigned long slice);
204 virtual void SetHeaderSize(
unsigned long size);
220 virtual void SetDataByteOrderToBigEndian();
221 virtual void SetDataByteOrderToLittleEndian();
222 virtual int GetDataByteOrder();
223 virtual void SetDataByteOrder(
int);
224 virtual const char* GetDataByteOrderAsString();
232 vtkSetMacro(FileNameSliceOffset,
int);
233 vtkGetMacro(FileNameSliceOffset,
int);
242 vtkSetMacro(FileNameSliceSpacing,
int);
243 vtkGetMacro(FileNameSliceSpacing,
int);
256 vtkGetVectorMacro(DataIncrements,
unsigned long, 4);
258 virtual int OpenFile();
260 virtual void SeekFile(
int i,
int j,
int k);
276 virtual void ComputeInternalFileName(
int slice);
277 vtkGetFilePathMacro(InternalFileName);
322 unsigned long DataIncrements[4];
331 double DataSpacing[3];
332 double DataOrigin[3];
333 double DataDirection[9];
340 virtual void ExecuteInformation();
342 virtual void ComputeDataIncrements();
virtual const void * GetMemoryBuffer()
#define VTK_UNSIGNED_SHORT
vtkIdType MemoryBufferLength
int GetFileDimensionality()
The number of dimensions stored in a file.
virtual void SetDataScalarTypeToUnsignedChar()
virtual int CanReadFile(VTK_FILEPATH const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
a vtkAbstractArray subclass for strings
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
int NumberOfScalarComponents
const void * MemoryBuffer
vtkIdType GetMemoryBufferLength()
unsigned long ManualHeaderSize
virtual void SetDataScalarTypeToChar()
virtual void SetDataScalarTypeToShort()
a simple class to control print indentation
virtual void SetDataScalarTypeToSignedChar()
virtual vtkTypeBool GetSwapBytes()
Set/Get the byte swapping to explicitly swap the bytes of a file.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
virtual void SetDataScalarTypeToUnsignedShort()
vtkTypeBool FileLowerLeft
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()
Get the file extensions for this format.
Generic algorithm superclass for image algs.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual const char * GetDescriptiveName()
Return a descriptive name for the file format that might be useful in a GUI.
general representation of visualization data
vtkStringArray * FileNames