54 #ifndef vtkVolume16Reader_h 55 #define vtkVolume16Reader_h 57 #include "vtkIOImageModule.h" 64 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0 65 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1 84 vtkSetVector2Macro(DataDimensions,
int);
85 vtkGetVectorMacro(DataDimensions,
int,2);
93 vtkSetMacro(DataMask,
unsigned short);
94 vtkGetMacro(DataMask,
unsigned short);
101 vtkSetMacro(HeaderSize,
int);
102 vtkGetMacro(HeaderSize,
int);
119 void SetDataByteOrderToBigEndian();
120 void SetDataByteOrderToLittleEndian();
121 int GetDataByteOrder();
122 void SetDataByteOrder(
int);
123 const char *GetDataByteOrderAsString();
156 int DataDimensions[2];
162 void TransformSlice (
unsigned short *slice,
unsigned short *pixels,
int k,
int dimensions[3],
int bounds[3]);
163 void ComputeTransformedDimensions(
int dimensions[3]);
164 void ComputeTransformedBounds(
int bounds[6]);
165 void ComputeTransformedSpacing(
double Spacing[3]);
166 void ComputeTransformedOrigin(
double origin[3]);
167 void AdjustSpacingAndOrigin(
int dimensions[3],
double Spacing[3],
double origin[3]);
170 int Read16BitImage(FILE *fp,
unsigned short *pixels,
int xsize,
int ysize,
171 int skip,
int swapBytes);
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.
a simple class to control print indentation
topologically and geometrically regular array of data
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
dynamic, self-adjusting array of unsigned char
static vtkAlgorithm * New()
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