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(
const void*);
112 virtual void SetMemoryBufferLength(
vtkIdType buflen);
120 virtual void SetDataScalarType(
int type);
135 vtkGetMacro(DataScalarType,
int);
142 vtkSetMacro(NumberOfScalarComponents,
int);
143 vtkGetMacro(NumberOfScalarComponents,
int);
150 vtkSetVector6Macro(DataExtent,
int);
151 vtkGetVector6Macro(DataExtent,
int);
158 vtkSetMacro(FileDimensionality,
int);
166 vtkSetVector3Macro(DataSpacing,
double);
167 vtkGetVector3Macro(DataSpacing,
double);
174 vtkSetVector3Macro(DataOrigin,
double);
175 vtkGetVector3Macro(DataOrigin,
double);
182 vtkSetVectorMacro(DataDirection,
double, 9);
183 vtkGetVectorMacro(DataDirection,
double, 9);
190 unsigned long GetHeaderSize();
191 unsigned long GetHeaderSize(
unsigned long slice);
198 virtual void SetHeaderSize(
unsigned long size);
214 virtual void SetDataByteOrderToBigEndian();
215 virtual void SetDataByteOrderToLittleEndian();
216 virtual int GetDataByteOrder();
217 virtual void SetDataByteOrder(
int);
218 virtual const char* GetDataByteOrderAsString();
226 vtkSetMacro(FileNameSliceOffset,
int);
227 vtkGetMacro(FileNameSliceOffset,
int);
236 vtkSetMacro(FileNameSliceSpacing,
int);
237 vtkGetMacro(FileNameSliceSpacing,
int);
250 vtkGetVectorMacro(DataIncrements,
unsigned long, 4);
252 virtual int OpenFile();
254 virtual void SeekFile(
int i,
int j,
int k);
270 virtual void ComputeInternalFileName(
int slice);
271 vtkGetStringMacro(InternalFileName);
283 virtual int CanReadFile(
const char* vtkNotUsed(fname)) {
return 0; }
316 unsigned long DataIncrements[4];
325 double DataSpacing[3];
326 double DataOrigin[3];
327 double DataDirection[9];
334 virtual void ExecuteInformation();
336 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()
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 int CanReadFile(const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
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