My Project
 All Classes Files Functions Variables Enumerations Pages
Public Member Functions | List of all members
FloatRGBA Class Reference

Class to represent red-green-blue-alpha colours stored to floating point accuracy. More...

#include <rgb.h>

Inheritance diagram for FloatRGBA:
RGBA< float >

Public Member Functions

 FloatRGBA ()
 Null constructor.
 
 FloatRGBA (const RGBA< float > &c)
 Copy constructor.
 
 FloatRGBA (float vr, float vg, float vb, float va)
 Initialise from separate components.
 
 FloatRGBA (const RGBA< uchar > &c)
 Initialise from ByteRGBA. More...
 
std::ostream & write (std::ostream &) const
 Output method.
 
const std::string format_pov_rgb () const
 
const std::string format_pov_rgbf () const
 
- Public Member Functions inherited from RGBA< float >
 RGBA ()
 Null constructor.
 
 RGBA (const RGBA &c)
 Copy constructor.
 
 RGBA (floatvr, floatvg, floatvb, floatva)
 Initialise from separate components.
 
void operator+= (const RGBA &v)
 Colour addition.
 
void operator-= (const RGBA &v)
 Colour subtraction.
 

Additional Inherited Members

- Public Attributes inherited from RGBA< float >
float r
 Colour component.
 
float g
 
float b
 
float a
 

Detailed Description

Class to represent red-green-blue-alpha colours stored to floating point accuracy.

Constructor & Destructor Documentation

FloatRGBA::FloatRGBA ( const RGBA< uchar > &  c)
inlineexplicit

Initialise from ByteRGBA.

Byte values [0,255] are normalised to [0.0,1.0]


The documentation for this class was generated from the following files: