42 #ifndef vtkVolume16Reader_h
43 #define vtkVolume16Reader_h
45 #include "vtkIOImageModule.h"
48 VTK_ABI_NAMESPACE_BEGIN
53 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
54 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
73 vtkSetVector2Macro(DataDimensions,
int);
74 vtkGetVectorMacro(DataDimensions,
int, 2);
82 vtkSetMacro(DataMask,
unsigned short);
83 vtkGetMacro(DataMask,
unsigned short);
90 vtkSetMacro(HeaderSize,
int);
91 vtkGetMacro(HeaderSize,
int);
108 void SetDataByteOrderToBigEndian();
109 void SetDataByteOrderToLittleEndian();
110 int GetDataByteOrder();
111 void SetDataByteOrder(
int);
112 const char* GetDataByteOrderAsString();
145 int DataDimensions[2];
152 unsigned short* slice,
unsigned short* pixels,
int k,
int dimensions[3],
int bounds[6]);
153 void ComputeTransformedDimensions(
int dimensions[3]);
154 void ComputeTransformedBounds(
int bounds[6]);
155 void ComputeTransformedSpacing(
double Spacing[3]);
156 void ComputeTransformedOrigin(
double origin[3]);
157 void AdjustSpacingAndOrigin(
int dimensions[3],
double Spacing[3],
double origin[3]);
161 FILE* fp,
unsigned short* pixels,
int xsize,
int ysize,
int skip,
int swapBytes);
168 VTK_ABI_NAMESPACE_END
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