26 #ifndef vtkHDRReader_h
27 #define vtkHDRReader_h
29 #include "vtkIOImageModule.h"
44 FORMAT_32BIT_RLE_RGBE = 0,
52 vtkGetMacro(Format,
int);
60 vtkGetMacro(Gamma,
double);
68 vtkGetMacro(Exposure,
double);
76 vtkGetMacro(PixelAspect,
double);
109 bool FlippedX =
false;
114 bool SwappedAxis =
false;
118 bool HDRReaderUpdateSlice(
float* outPtr,
int* outExt);
125 bool HasError(istream* is);
127 int GetWidth()
const;
128 int GetHeight()
const;
134 bool ReadHeaderData();
136 void ConvertAllDataFromRGBToXYZ(
float* outPtr,
int size);
138 void FillOutPtrRLE(
int* outExt,
float*& outPtr, std::vector<unsigned char>& lineBuffer);
139 void FillOutPtrNoRLE(
int* outExt,
float*& outPtr, std::vector<unsigned char>& lineBuffer);
145 bool ReadAllFileNoRLE(istream* is,
float* outPtr,
int decrPtr,
int* outExt);
151 bool ReadLineRLE(istream* is,
unsigned char* lineBufferPtr);
156 void RGBE2Float(
unsigned char rgbe[4],
float& r,
float& g,
float& b);
163 static void XYZ2RGB(
const float convertMatrix[3][3],
float& r,
float& g,
float& b);
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
static vtkImageReader * New()
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
Superclass of transformable binary file readers.
topologically and geometrically regular array of data
virtual void ExecuteInformation()
int CanReadFile(VTK_FILEPATH const char *) override
vtkImageReader itself can read raw binary files.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
const char * GetFileExtensions() override
Get the file extensions for this format.
general representation of visualization data