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);
94 vtkGetMacro(DataMask,
unsigned short);
102 vtkGetMacro(HeaderSize,
int);
131 vtkGetMacro(SwapBytes,
int);
156 int DataDimensions[2];
162 void TransformSlice (
unsigned short *slice,
unsigned short *pixels,
int k,
int dimensions[3],
int bounds[3]);
171 int skip,
int swapBytes);
topologically and geometrically regular array of data
a simple class to control print indentation
dynamic, self-adjusting array of unsigned char
dynamic, self-adjusting array of unsigned short
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void ReadImage(int ImageNumber, vtkUnsignedShortArray *)
static vtkVolume16Reader * New()
Construct object with NULL file prefix; file pattern "%s.%d"; image range set to (1,...
void AdjustSpacingAndOrigin(int dimensions[3], double Spacing[3], double origin[3])
void ComputeTransformedSpacing(double Spacing[3])
void SetDataByteOrder(int)
virtual void SetTransform(vtkTransform *)
Set/Get transformation matrix to transform the data from slice space into world space.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void TransformSlice(unsigned short *slice, unsigned short *pixels, int k, int dimensions[3], int bounds[3])
void ComputeTransformedDimensions(int dimensions[3])
const char * GetDataByteOrderAsString()
int Read16BitImage(FILE *fp, unsigned short *pixels, int xsize, int ysize, int skip, int swapBytes)
void SetDataByteOrderToLittleEndian()
void ComputeTransformedBounds(int bounds[6])
vtkImageData * GetImage(int ImageNumber)
Other objects make use of these methods.
void ReadVolume(int FirstImage, int LastImage, vtkUnsignedShortArray *)
void ComputeTransformedOrigin(double origin[3])
void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.