144#ifndef vtkImageReader2_h
145#define vtkImageReader2_h
148#include "vtkIOImageModule.h"
153VTK_ABI_NAMESPACE_BEGIN
157#define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
158#define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
227 virtual
void SetMemoryBuffer(const
void*);
229 virtual const
void* GetMemoryBuffer();
247 virtual
void SetDataScalarType(
int type);
248 virtual
void SetDataScalarTypeToFloat() { this->SetDataScalarType(
VTK_FLOAT); }
262 vtkGetMacro(DataScalarType,
int);
269 vtkSetMacro(NumberOfScalarComponents,
int);
270 vtkGetMacro(NumberOfScalarComponents,
int);
277 vtkSetVector6Macro(DataExtent,
int);
278 vtkGetVector6Macro(DataExtent,
int);
285 vtkSetMacro(FileDimensionality,
int);
293 vtkSetVector3Macro(DataSpacing,
double);
294 vtkGetVector3Macro(DataSpacing,
double);
301 vtkSetVector3Macro(DataOrigin,
double);
302 vtkGetVector3Macro(DataOrigin,
double);
309 vtkSetVectorMacro(DataDirection,
double, 9);
310 vtkGetVectorMacro(DataDirection,
double, 9);
353 vtkSetMacro(FileNameSliceOffset,
int);
354 vtkGetMacro(FileNameSliceOffset,
int);
363 vtkSetMacro(FileNameSliceSpacing,
int);
364 vtkGetMacro(FileNameSliceSpacing,
int);
377 vtkGetVectorMacro(DataIncrements,
unsigned long, 4);
445 const
void* MemoryBuffer;
451 unsigned long DataIncrements[4];
455 int FileDimensionality;
456 unsigned long HeaderSize;
458 unsigned long ManualHeaderSize;
460 double DataSpacing[3];
461 double DataOrigin[3];
462 double DataDirection[9];
464 int FileNameSliceOffset;
465 int FileNameSliceSpacing;
469 virtual
void ExecuteInformation();
471 virtual
void ComputeDataIncrements();
general representation of visualization data
Generic algorithm superclass for image algs.
Superclass of binary file readers.
vtkSetFilePathMacro(FilePrefix)
Specify file prefix for the image file or files.
vtkGetFilePathMacro(FilePrefix)
Specify file prefix for the image file or files.
vtkTypeBool FileLowerLeft
unsigned long GetHeaderSize()
Get the size of the header computed by this object.
virtual int GetDataByteOrder()
These methods should be used instead of the SwapBytes methods.
vtkGetFilePathMacro(InternalFileName)
Set/Get the internal file name.
unsigned long GetHeaderSize(unsigned long slice)
Get the size of the header computed by this object.
int GetFileDimensionality()
The number of dimensions stored in a file.
virtual int CanReadFile(const char *fname)
Return non zero if the reader can read the given file name.
virtual void SetDataScalarTypeToSignedChar()
virtual const char * GetDataByteOrderAsString()
These methods should be used instead of the SwapBytes methods.
virtual void ComputeInternalFileName(int slice)
Set/Get the internal file name.
virtual void SetFileName(const char *)
Specify file name for the image file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Overridden to take into account mtime from the internal vtkResourceStream.
virtual void SetDataScalarTypeToInt()
virtual const char * GetFileExtensions()
Get the file extensions for this format.
vtkGetFilePathMacro(FilePattern)
The std::format style format string used to build filename from FilePrefix and slice number.
virtual void SetDataScalarTypeToDouble()
virtual const char * GetDescriptiveName()
Return a descriptive name for the file format that might be useful in a GUI.
vtkGetFilePathMacro(FileName)
Specify file name for the image file.
~vtkImageReader2() override
Return a descriptive name for the file format that might be useful in a GUI.
virtual void SetDataScalarTypeToChar()
vtkImageReader2()
Return a descriptive name for the file format that might be useful in a GUI.
virtual void SetDataByteOrderToLittleEndian()
These methods should be used instead of the SwapBytes methods.
virtual void SetHeaderSize(unsigned long size)
If there is a tail on the file, you want to explicitly set the header size.
virtual void SetFilePattern(const char *)
The std::format style format string used to build filename from FilePrefix and slice number.
virtual void SetDataScalarTypeToUnsignedChar()
virtual void SetDataByteOrder(int)
These methods should be used instead of the SwapBytes methods.
static vtkImageReader2 * New()
virtual void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
virtual void SetDataScalarTypeToShort()
virtual void SeekFile(int i, int j, int k)
virtual void SetFileNames(vtkStringArray *)
Specify a list of file names.
virtual void SetDataScalarTypeToUnsignedShort()
vtkStringArray * FileNames
virtual void SetDataScalarTypeToUnsignedInt()
int NumberOfScalarComponents
virtual vtkTypeBool GetSwapBytes()
Set/Get the byte swapping to explicitly swap the bytes of a file.
a simple class to control print indentation
Abstract class used for custom streams.
Hold a reference to a vtkObjectBase instance.
a vtkAbstractArray subclass for strings
#define VTK_DEPRECATED_IN_9_6_0(reason)
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT
vtkTypeUInt32 vtkMTimeType