Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fl::PixelFormatRGBAFloat Class Reference

#include <image.h>

Inheritance diagram for fl::PixelFormatRGBAFloat:

fl::PixelFormat fl::Filter List of all members.

Public Methods

 PixelFormatRGBAFloat ()
virtual unsigned int getRGBA (void *pixel) const
 Return value is always assumed to be non-linear sRGB. Same for other RGB methods below.

virtual void getRGBA (void *pixel, float values[]) const
 "values" must have at least four elements. Each returned value is in [0,1].

virtual unsigned char getAlpha (void *pixel) const
 Returns fully opaque by default. PixelFormats that actually have an alpha channel must override this to return correct value.

virtual void setRGBA (void *pixel, unsigned int rgba) const
virtual void setRGBA (void *pixel, float values[]) const
 Each value must be in [0,1]. Values outside this range will be clamped and modified directly in the array.

virtual void setAlpha (void *pixel, unsigned char alpha) const
 Ignored by default. Formats that actually have an alpha channel must override this method.


Constructor & Destructor Documentation

PixelFormatRGBAFloat::PixelFormatRGBAFloat  
 


Member Function Documentation

unsigned char PixelFormatRGBAFloat::getAlpha void *    pixel const [virtual]
 

Returns fully opaque by default. PixelFormats that actually have an alpha channel must override this to return correct value.

Reimplemented from fl::PixelFormat.

void PixelFormatRGBAFloat::getRGBA void *    pixel,
float    values[]
const [virtual]
 

"values" must have at least four elements. Each returned value is in [0,1].

Reimplemented from fl::PixelFormat.

unsigned int PixelFormatRGBAFloat::getRGBA void *    pixel const [virtual]
 

Return value is always assumed to be non-linear sRGB. Same for other RGB methods below.

Implements fl::PixelFormat.

void PixelFormatRGBAFloat::setAlpha void *    pixel,
unsigned char    alpha
const [virtual]
 

Ignored by default. Formats that actually have an alpha channel must override this method.

Reimplemented from fl::PixelFormat.

void PixelFormatRGBAFloat::setRGBA void *    pixel,
float    values[]
const [virtual]
 

Each value must be in [0,1]. Values outside this range will be clamped and modified directly in the array.

Reimplemented from fl::PixelFormat.

void PixelFormatRGBAFloat::setRGBA void *    pixel,
unsigned int    rgba
const [virtual]
 

Implements fl::PixelFormat.


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 17:13:26 2004 for fl by doxygen1.2.18