 |
VTK
9.1.0
|
Go to the documentation of this file.
150 #ifndef vtkImageReader2_h
151 #define vtkImageReader2_h
153 #include "vtkIOImageModule.h"
158 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
159 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
244 vtkGetMacro(DataScalarType,
int);
251 vtkSetMacro(NumberOfScalarComponents,
int);
252 vtkGetMacro(NumberOfScalarComponents,
int);
259 vtkSetVector6Macro(DataExtent,
int);
260 vtkGetVector6Macro(DataExtent,
int);
267 vtkSetMacro(FileDimensionality,
int);
275 vtkSetVector3Macro(DataSpacing,
double);
276 vtkGetVector3Macro(DataSpacing,
double);
283 vtkSetVector3Macro(DataOrigin,
double);
284 vtkGetVector3Macro(DataOrigin,
double);
291 vtkSetVectorMacro(DataDirection,
double, 9);
292 vtkGetVectorMacro(DataDirection,
double, 9);
335 vtkSetMacro(FileNameSliceOffset,
int);
336 vtkGetMacro(FileNameSliceOffset,
int);
345 vtkSetMacro(FileNameSliceSpacing,
int);
346 vtkGetMacro(FileNameSliceSpacing,
int);
359 vtkGetVectorMacro(DataIncrements,
unsigned long, 4);
425 unsigned long DataIncrements[4];
434 double DataSpacing[3];
435 double DataOrigin[3];
436 double DataDirection[9];
virtual void SetDataByteOrder(int)
These methods should be used instead of the SwapBytes methods.
virtual void ComputeInternalFileName(int slice)
Set/Get the internal file name.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool FileLowerLeft
virtual const char * GetDataByteOrderAsString()
These methods should be used instead of the SwapBytes methods.
const void * MemoryBuffer
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
virtual void ComputeDataIncrements()
virtual void SetFilePrefix(VTK_FILEPATH const char *)
Specify file prefix for the image file or files.
virtual void SetDataScalarTypeToUnsignedInt()
virtual void SetDataScalarTypeToChar()
#define VTK_UNSIGNED_SHORT
virtual void SetDataScalarTypeToFloat()
vtkGetFilePathMacro(FilePattern)
The snprintf-style format string used to build filename from FilePrefix and slice number.
unsigned long GetHeaderSize(unsigned long slice)
Get the size of the header computed by this object.
~vtkImageReader2() override
Return a descriptive name for the file format that might be useful in a GUI.
virtual void SetHeaderSize(unsigned long size)
If there is a tail on the file, you want to explicitly set the header size.
virtual const char * GetFileExtensions()
Get the file extensions for this format.
virtual void SetDataScalarTypeToUnsignedShort()
Generic algorithm superclass for image algs.
virtual const void * GetMemoryBuffer()
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
virtual void SetFileNames(vtkStringArray *)
Specify a list of file names.
virtual void SetMemoryBufferLength(vtkIdType buflen)
Specify the in memory image buffer length.
static vtkImageReader2 * New()
virtual void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
virtual void SetFilePattern(VTK_FILEPATH const char *)
The snprintf-style format string used to build filename from FilePrefix and slice number.
vtkIdType MemoryBufferLength
a simple class to control print indentation
#define VTK_UNSIGNED_CHAR
virtual const char * GetDescriptiveName()
Return a descriptive name for the file format that might be useful in a GUI.
Superclass of binary file readers.
vtkImageReader2()
Return a descriptive name for the file format that might be useful in a GUI.
virtual void SetDataScalarTypeToShort()
virtual void SeekFile(int i, int j, int k)
virtual void SetDataScalarTypeToSignedChar()
virtual vtkTypeBool GetSwapBytes()
Set/Get the byte swapping to explicitly swap the bytes of a file.
int GetFileDimensionality()
The number of dimensions stored in a file.
virtual void SetDataScalarTypeToUnsignedChar()
virtual void SetDataScalarType(int type)
Set the data type of pixels in the file.
unsigned long GetHeaderSize()
Get the size of the header computed by this object.
vtkGetFilePathMacro(FilePrefix)
Specify file prefix for the image file or files.
virtual void SetDataByteOrderToLittleEndian()
These methods should be used instead of the SwapBytes methods.
vtkGetFilePathMacro(FileName)
Specify file name for the image file.
a vtkAbstractArray subclass for strings
virtual void ExecuteInformation()
vtkStringArray * FileNames
int NumberOfScalarComponents
virtual void SetDataScalarTypeToDouble()
virtual int GetDataByteOrder()
These methods should be used instead of the SwapBytes methods.
unsigned long ManualHeaderSize
virtual void SetMemoryBuffer(const void *)
Specify the in memory image buffer.
general representation of visualization data
vtkGetFilePathMacro(InternalFileName)
Set/Get the internal file name.
vtkIdType GetMemoryBufferLength()
virtual void SetFileName(VTK_FILEPATH const char *)
Specify file name for the image file.
virtual void SetDataScalarTypeToInt()
virtual int CanReadFile(VTK_FILEPATH const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.