66 #ifndef vtkMetaImageReader_h
67 #define vtkMetaImageReader_h
69 #include "vtkIOImageModule.h"
86 {
return ".mhd .mha"; }
89 {
return "MetaIO Library: MetaImage"; }
106 vtkGetMacro(RescaleSlope,
double);
107 vtkGetMacro(RescaleOffset,
double);
108 vtkGetMacro(BitsAllocated,
int);
111 vtkGetMacro(GantryAngle,
double);
195 char PatientName[255];
200 char ImageNumber[255];
204 char TransferSyntaxUID[255];
207 double RescaleOffset;
209 char DistanceUnits[255];
210 char AnatomicalOrientation[255];
virtual int * GetDataExtent()
Get/Set the extent of the data on disk.
static vtkImageReader2 * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
virtual int GetNumberOfScalarComponents()
Set/Get the number of scalar components.
virtual int GetDataByteOrder()
These methods should be used instead of the SwapBytes methods.
virtual double * GetDataOrigin()
Set/Get the origin of the data (location of first pixel in the file).
virtual int CanReadFile(const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
virtual double * GetDataSpacing()
Set/Get the spacing of the data in the file.
a simple class to control print indentation
virtual int GetDataScalarType()
Get the file format.
virtual void ExecuteInformation()
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Superclass of binary file readers.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
general representation of visualization data