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(
void *);
112 virtual void SetMemoryBufferLength(
vtkIdType buflen);
120 virtual void SetDataScalarType(
int type);
129 {this->SetDataScalarType(
VTK_CHAR);}
139 vtkGetMacro(DataScalarType,
int);
146 vtkSetMacro(NumberOfScalarComponents,
int);
147 vtkGetMacro(NumberOfScalarComponents,
int);
154 vtkSetVector6Macro(DataExtent,
int);
155 vtkGetVector6Macro(DataExtent,
int);
162 vtkSetMacro(FileDimensionality,
int);
170 vtkSetVector3Macro(DataSpacing,
double);
171 vtkGetVector3Macro(DataSpacing,
double);
178 vtkSetVector3Macro(DataOrigin,
double);
179 vtkGetVector3Macro(DataOrigin,
double);
186 unsigned long GetHeaderSize();
187 unsigned long GetHeaderSize(
unsigned long slice);
194 virtual void SetHeaderSize(
unsigned long size);
210 virtual void SetDataByteOrderToBigEndian();
211 virtual void SetDataByteOrderToLittleEndian();
212 virtual int GetDataByteOrder();
213 virtual void SetDataByteOrder(
int);
214 virtual const char *GetDataByteOrderAsString();
222 vtkSetMacro(FileNameSliceOffset,
int);
223 vtkGetMacro(FileNameSliceOffset,
int);
232 vtkSetMacro(FileNameSliceSpacing,
int);
233 vtkGetMacro(FileNameSliceSpacing,
int);
247 vtkGetVectorMacro(DataIncrements,
unsigned long,4);
249 virtual int OpenFile();
250 virtual void SeekFile(
int i,
int j,
int k);
266 virtual void ComputeInternalFileName(
int slice);
267 vtkGetStringMacro(InternalFileName);
320 unsigned long DataIncrements[4];
329 double DataSpacing[3];
330 double DataOrigin[3];
338 virtual void ExecuteInformation();
340 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()