 |
VTK
9.1.0
|
Go to the documentation of this file.
72 #ifndef vtkHDRReader_h
73 #define vtkHDRReader_h
75 #include "vtkIOImageModule.h"
90 FORMAT_32BIT_RLE_RGBE = 0,
98 vtkGetMacro(Format,
int);
106 vtkGetMacro(Gamma,
double);
114 vtkGetMacro(Exposure,
double);
122 vtkGetMacro(PixelAspect,
double);
155 bool FlippedX =
false;
160 bool SwappedAxis =
false;
184 void FillOutPtrRLE(
int* outExt,
float*& outPtr, std::vector<unsigned char>& lineBuffer);
185 void FillOutPtrNoRLE(
int* outExt,
float*& outPtr, std::vector<unsigned char>& lineBuffer);
202 void RGBE2Float(
unsigned char rgbe[4],
float& r,
float& g,
float& b);
209 static void XYZ2RGB(
const float convertMatrix[3][3],
float& r,
float& g,
float& b);
Superclass of transformable binary file readers.
static vtkHDRReader * New()
bool ReadLineRLE(istream *is, unsigned char *lineBufferPtr)
Read a line of the file from is into lineBuffer with RLE encoding.
bool HDRReaderUpdateSlice(float *outPtr, int *outExt)
void RGBE2Float(unsigned char rgbe[4], float &r, float &g, float &b)
Standard conversion from rgbe to float pixels.
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a HDR file?
void FillOutPtrRLE(int *outExt, float *&outPtr, std::vector< unsigned char > &lineBuffer)
bool HasError(istream *is)
If the stream has an error, close the file and return true.
void ConvertAllDataFromRGBToXYZ(float *outPtr, int size)
void HDRReaderUpdate(vtkImageData *data, float *outPtr)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool ReadHeaderData()
Read the header data and fill attributes of HDRReader, as well as DataExtent.
bool ReadAllFileNoRLE(istream *is, float *outPtr, int decrPtr, int *outExt)
Read the file from is into outPtr with no RLE encoding.
topologically and geometrically regular array of data
a simple class to control print indentation
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
const char * GetFileExtensions() override
Get the file extensions for this format.
static void XYZ2RGB(const float convertMatrix[3][3], float &r, float &g, float &b)
Conversion from xyz to rgb float using the 3x3 convert matrix.
void ExecuteInformation() override
void FillOutPtrNoRLE(int *outExt, float *&outPtr, std::vector< unsigned char > &lineBuffer)
general representation of visualization data
void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.