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 70 virtual void SetFileName(
const char *);
71 vtkGetStringMacro(FileName);
94 virtual void SetFilePrefix(
const char *);
95 vtkGetStringMacro(FilePrefix);
103 virtual void SetFilePattern(
const char *);
104 vtkGetStringMacro(FilePattern);
112 virtual void SetMemoryBuffer(
void *);
118 virtual void SetMemoryBufferLength(
vtkIdType buflen);
126 virtual void SetDataScalarType(
int type);
135 {this->SetDataScalarType(
VTK_CHAR);}
145 vtkGetMacro(DataScalarType,
int);
152 vtkSetMacro(NumberOfScalarComponents,
int);
153 vtkGetMacro(NumberOfScalarComponents,
int);
160 vtkSetVector6Macro(DataExtent,
int);
161 vtkGetVector6Macro(DataExtent,
int);
168 vtkSetMacro(FileDimensionality,
int);
176 vtkSetVector3Macro(DataSpacing,
double);
177 vtkGetVector3Macro(DataSpacing,
double);
184 vtkSetVector3Macro(DataOrigin,
double);
185 vtkGetVector3Macro(DataOrigin,
double);
192 unsigned long GetHeaderSize();
193 unsigned long GetHeaderSize(
unsigned long slice);
200 virtual void SetHeaderSize(
unsigned long size);
216 virtual void SetDataByteOrderToBigEndian();
217 virtual void SetDataByteOrderToLittleEndian();
218 virtual int GetDataByteOrder();
219 virtual void SetDataByteOrder(
int);
220 virtual const char *GetDataByteOrderAsString();
228 vtkSetMacro(FileNameSliceOffset,
int);
229 vtkGetMacro(FileNameSliceOffset,
int);
238 vtkSetMacro(FileNameSliceSpacing,
int);
239 vtkGetMacro(FileNameSliceSpacing,
int);
253 vtkGetVectorMacro(DataIncrements,
unsigned long,4);
255 virtual int OpenFile();
256 virtual void SeekFile(
int i,
int j,
int k);
272 virtual void ComputeInternalFileName(
int slice);
273 vtkGetStringMacro(InternalFileName);
326 unsigned long DataIncrements[4];
335 double DataSpacing[3];
336 double DataOrigin[3];
344 virtual void ExecuteInformation();
346 virtual void ComputeDataIncrements();
#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
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
virtual void * GetMemoryBuffer()