35 #ifndef vtkImageReader2_h
36 #define vtkImageReader2_h
38 #include "vtkIOImageModule.h"
41 VTK_ABI_NAMESPACE_BEGIN
44 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
45 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
60 vtkGetFilePathMacro(FileName);
84 vtkGetFilePathMacro(FilePrefix);
93 vtkGetFilePathMacro(FilePattern);
101 virtual void SetMemoryBuffer(
const void*);
107 virtual void SetMemoryBufferLength(
vtkIdType buflen);
115 virtual void SetDataScalarType(
int type);
130 vtkGetMacro(DataScalarType,
int);
137 vtkSetMacro(NumberOfScalarComponents,
int);
138 vtkGetMacro(NumberOfScalarComponents,
int);
145 vtkSetVector6Macro(DataExtent,
int);
146 vtkGetVector6Macro(DataExtent,
int);
153 vtkSetMacro(FileDimensionality,
int);
161 vtkSetVector3Macro(DataSpacing,
double);
162 vtkGetVector3Macro(DataSpacing,
double);
169 vtkSetVector3Macro(DataOrigin,
double);
170 vtkGetVector3Macro(DataOrigin,
double);
177 vtkSetVectorMacro(DataDirection,
double, 9);
178 vtkGetVectorMacro(DataDirection,
double, 9);
185 unsigned long GetHeaderSize();
186 unsigned long GetHeaderSize(
unsigned long slice);
193 virtual void SetHeaderSize(
unsigned long size);
209 virtual void SetDataByteOrderToBigEndian();
210 virtual void SetDataByteOrderToLittleEndian();
211 virtual int GetDataByteOrder();
212 virtual void SetDataByteOrder(
int);
213 virtual const char* GetDataByteOrderAsString();
221 vtkSetMacro(FileNameSliceOffset,
int);
222 vtkGetMacro(FileNameSliceOffset,
int);
231 vtkSetMacro(FileNameSliceSpacing,
int);
232 vtkGetMacro(FileNameSliceSpacing,
int);
245 vtkGetVectorMacro(DataIncrements,
unsigned long, 4);
247 virtual int OpenFile();
249 virtual void SeekFile(
int i,
int j,
int k);
265 virtual void ComputeInternalFileName(
int slice);
266 vtkGetFilePathMacro(InternalFileName);
311 unsigned long DataIncrements[4];
320 double DataSpacing[3];
321 double DataOrigin[3];
322 double DataDirection[9];
329 virtual void ExecuteInformation();
331 virtual void ComputeDataIncrements();
338 VTK_ABI_NAMESPACE_END
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