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
135 {this->SetDataScalarType(
VTK_CHAR);}
145 vtkGetMacro(DataScalarType,
int);
153 vtkGetMacro(NumberOfScalarComponents,
int);
160 vtkSetVector6Macro(DataExtent,
int);
161 vtkGetVector6Macro(DataExtent,
int);
176 vtkSetVector3Macro(DataSpacing,
double);
177 vtkGetVector3Macro(DataSpacing,
double);
184 vtkSetVector3Macro(DataOrigin,
double);
185 vtkGetVector3Macro(DataOrigin,
double);
229 vtkGetMacro(FileNameSliceOffset,
int);
239 vtkGetMacro(FileNameSliceSpacing,
int);
253 vtkGetVectorMacro(DataIncrements,
unsigned long,4);
264 vtkGetMacro(FileLowerLeft,
int);
326 unsigned long DataIncrements[4];
335 double DataSpacing[3];
336 double DataOrigin[3];
general representation of visualization data
Generic algorithm superclass for image algs.
Superclass of binary file readers.
virtual void ComputeDataIncrements()
virtual void * GetMemoryBuffer()
virtual int CanReadFile(const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
unsigned long GetHeaderSize()
Get the size of the header computed by this object.
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 int GetDataByteOrder()
virtual void SetFilePrefix(const char *)
Specify file prefix for the image file or files.
unsigned long GetHeaderSize(unsigned long slice)
virtual void SetMemoryBufferLength(vtkIdType buflen)
Specify the in memory image buffer length.
int GetFileDimensionality()
static vtkImageReader2 * New()
virtual const char * GetFileExtensions()
Get the file extensions for this format.
virtual void SetDataScalarTypeToSignedChar()
virtual void SetMemoryBuffer(void *)
Specify the in memory image buffer.
virtual const char * GetDataByteOrderAsString()
virtual void ComputeInternalFileName(int slice)
Set/Get the internal file name.
virtual void SetDataScalarType(int type)
Set the data type of pixels in the file.
virtual void SetFileName(const char *)
Specify file name for the image file.
virtual void SetDataScalarTypeToInt()
virtual void SetDataScalarTypeToDouble()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetDataScalarTypeToChar()
virtual void SetDataByteOrderToLittleEndian()
vtkIdType MemoryBufferLength
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 sprintf-style format string used to build filename from FilePrefix and slice number.
virtual void SetDataScalarTypeToUnsignedChar()
virtual void SetDataByteOrder(int)
virtual void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
unsigned long ManualHeaderSize
virtual void SetDataScalarTypeToFloat()
virtual void SetDataScalarTypeToShort()
virtual void SeekFile(int i, int j, int k)
virtual void SetFileNames(vtkStringArray *)
Specify a list of file names.
virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
virtual void SetDataScalarTypeToUnsignedShort()
virtual int GetSwapBytes()
vtkStringArray * FileNames
vtkIdType GetMemoryBufferLength()
virtual void SetDataScalarTypeToUnsignedInt()
virtual void ExecuteInformation()
int NumberOfScalarComponents
virtual const char * GetDescriptiveName()
Return a descriptive name for the file format that might be useful in a GUI.
a simple class to control print indentation
a vtkAbstractArray subclass for strings
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
#define VTK_UNSIGNED_CHAR
#define VTK_UNSIGNED_SHORT