Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

rgb Class Reference

A simple tristimulus color class. More...

#include <utilities/rgb.h>

List of all members.

Public Member Functions

 rgb (float r, float g, float b)
 rgb (float a[3])
 rgb (double a[3])
 rgb (const rgb &c)
float r () const
float g () const
float b () const
float mean () const
float luminance () const
bool black ()
rgb operator+ () const
rgb operator- () const
float operator[] (int i) const
float & operator[] (int i)
rgboperator+= (const rgb &c)
rgboperator-= (const rgb &c)
rgboperator *= (const rgb &c)
rgboperator/= (const rgb &c)
rgboperator *= (float f)
rgboperator/= (float f)

Public Attributes

float data [3]


Detailed Description

A simple tristimulus color class.

Note that the rendering pipeline always uses this rgb class for convenience, including spectral rendering methods. For spectral rendering, however, the rgb class simply has the spectral radiance copied into all three channels. On output, the spectral radiance is converted to an XYZ tristimulus value that is stored in an Image in XYZ mode.


The documentation for this class was generated from the following file:
Generated on Wed Jul 20 16:15:26 2005 for galileo by  doxygen 1.4.3