35 #ifndef vtkImageReader2_h
36 #define vtkImageReader2_h
39 #include "vtkIOImageModule.h"
44 VTK_ABI_NAMESPACE_BEGIN
48 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
49 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
64 vtkGetFilePathMacro(FileName);
87 vtkSetFilePathMacro(FilePrefix);
88 vtkGetFilePathMacro(FilePrefix);
97 vtkGetFilePathMacro(FilePattern);
118 virtual
void SetMemoryBuffer(const
void*);
120 virtual const
void* GetMemoryBuffer();
128 virtual
void SetMemoryBufferLength(
vtkIdType buflen);
138 virtual
void SetDataScalarType(
int type);
139 virtual
void SetDataScalarTypeToFloat() { this->SetDataScalarType(
VTK_FLOAT); }
153 vtkGetMacro(DataScalarType,
int);
160 vtkSetMacro(NumberOfScalarComponents,
int);
161 vtkGetMacro(NumberOfScalarComponents,
int);
168 vtkSetVector6Macro(DataExtent,
int);
169 vtkGetVector6Macro(DataExtent,
int);
176 vtkSetMacro(FileDimensionality,
int);
184 vtkSetVector3Macro(DataSpacing,
double);
185 vtkGetVector3Macro(DataSpacing,
double);
192 vtkSetVector3Macro(DataOrigin,
double);
193 vtkGetVector3Macro(DataOrigin,
double);
200 vtkSetVectorMacro(DataDirection,
double, 9);
201 vtkGetVectorMacro(DataDirection,
double, 9);
208 unsigned long GetHeaderSize();
209 unsigned long GetHeaderSize(
unsigned long slice);
216 virtual void SetHeaderSize(
unsigned long size);
232 virtual void SetDataByteOrderToBigEndian();
233 virtual void SetDataByteOrderToLittleEndian();
234 virtual int GetDataByteOrder();
235 virtual void SetDataByteOrder(
int);
236 virtual const char* GetDataByteOrderAsString();
244 vtkSetMacro(FileNameSliceOffset,
int);
245 vtkGetMacro(FileNameSliceOffset,
int);
254 vtkSetMacro(FileNameSliceSpacing,
int);
255 vtkGetMacro(FileNameSliceSpacing,
int);
268 vtkGetVectorMacro(DataIncrements,
unsigned long, 4);
270 virtual int OpenFile();
272 virtual void SeekFile(
int i,
int j,
int k);
288 virtual void ComputeInternalFileName(
int slice);
289 vtkGetFilePathMacro(InternalFileName);
341 const
void* MemoryBuffer;
347 unsigned long DataIncrements[4];
351 int FileDimensionality;
352 unsigned long HeaderSize;
354 unsigned long ManualHeaderSize;
356 double DataSpacing[3];
357 double DataOrigin[3];
358 double DataDirection[9];
360 int FileNameSliceOffset;
361 int FileNameSliceSpacing;
365 virtual
void ExecuteInformation();
367 virtual
void ComputeDataIncrements();
376 VTK_ABI_NAMESPACE_END
Abstract class used for custom streams.
vtkTypeUInt32 vtkMTimeType
#define VTK_UNSIGNED_SHORT
int GetFileDimensionality()
The number of dimensions stored in a file.
virtual void SetDataScalarTypeToUnsignedChar()
a vtkAbstractArray subclass for strings
Hold a reference to a vtkObjectBase instance.
int NumberOfScalarComponents
virtual int CanReadFile(vtkResourceStream *stream)
Return non zero if the reader can read the given file name.
#define VTK_DEPRECATED_IN_9_6_0(reason)
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 void SetDataScalarTypeToUnsignedShort()
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkTypeBool FileLowerLeft
virtual void SetDataScalarTypeToUnsignedInt()
Superclass of binary file readers.
virtual void SetDataScalarTypeToInt()
#define VTK_UNSIGNED_CHAR
virtual void SetDataScalarTypeToDouble()
virtual int CanReadFile(const char *fname)
Return non zero if the reader can read the given file name.
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