 |
VTK
9.1.0
|
Go to the documentation of this file.
48 #ifndef vtkVolume16Reader_h
49 #define vtkVolume16Reader_h
51 #include "vtkIOImageModule.h"
58 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
59 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
78 vtkSetVector2Macro(DataDimensions,
int);
79 vtkGetVectorMacro(DataDimensions,
int, 2);
87 vtkSetMacro(DataMask,
unsigned short);
88 vtkGetMacro(DataMask,
unsigned short);
95 vtkSetMacro(HeaderSize,
int);
96 vtkGetMacro(HeaderSize,
int);
150 int DataDimensions[2];
157 unsigned short* slice,
unsigned short* pixels,
int k,
int dimensions[3],
int bounds[3]);
166 FILE* fp,
unsigned short* pixels,
int xsize,
int ysize,
int skip,
int swapBytes);
int GetDataByteOrder()
These methods should be used instead of the SwapBytes methods.
void ReadImage(int ImageNumber, vtkUnsignedShortArray *)
dynamic, self-adjusting array of unsigned short
void ComputeTransformedSpacing(double Spacing[3])
void ComputeTransformedDimensions(int dimensions[3])
void ReadVolume(int FirstImage, int LastImage, vtkUnsignedShortArray *)
void ComputeTransformedBounds(int bounds[6])
dynamic, self-adjusting array of unsigned char
void AdjustSpacingAndOrigin(int dimensions[3], double Spacing[3], double origin[3])
void ComputeTransformedOrigin(double origin[3])
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
virtual void SetTransform(vtkTransform *)
Set/Get transformation matrix to transform the data from slice space into world space.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void TransformSlice(unsigned short *slice, unsigned short *pixels, int k, int dimensions[3], int bounds[3])
topologically and geometrically regular array of data
a simple class to control print indentation
int Read16BitImage(FILE *fp, unsigned short *pixels, int xsize, int ysize, int skip, int swapBytes)
vtkImageData * GetImage(int ImageNumber) override
Other objects make use of these methods.
const char * GetDataByteOrderAsString()
These methods should be used instead of the SwapBytes methods.
~vtkVolume16Reader() override
void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
static vtkVolume16Reader * New()
Construct object with nullptr file prefix; file pattern "%s.%d"; image range set to (1,...
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetDataByteOrderToLittleEndian()
These methods should be used instead of the SwapBytes methods.
void SetDataByteOrder(int)
These methods should be used instead of the SwapBytes methods.