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);
113 void SetDataByteOrderToBigEndian();
114 void SetDataByteOrderToLittleEndian();
115 int GetDataByteOrder();
116 void SetDataByteOrder(
int);
117 const char *GetDataByteOrderAsString();
150 int DataDimensions[2];
156 void TransformSlice (
unsigned short *slice,
unsigned short *pixels,
int k,
int dimensions[3],
int bounds[3]);
157 void ComputeTransformedDimensions(
int dimensions[3]);
158 void ComputeTransformedBounds(
int bounds[6]);
159 void ComputeTransformedSpacing(
double Spacing[3]);
160 void ComputeTransformedOrigin(
double origin[3]);
161 void AdjustSpacingAndOrigin(
int dimensions[3],
double Spacing[3],
double origin[3]);
164 int Read16BitImage(FILE *fp,
unsigned short *pixels,
int xsize,
int ysize,
165 int skip,
int swapBytes);
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
dynamic, self-adjusting array of unsigned short
dynamic, self-adjusting array of unsigned char
virtual vtkImageData * GetImage(int ImageNumber)=0
Other objects make use of this method.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
topologically and geometrically regular array of data
a simple class to control print indentation
static vtkAlgorithm * New()