ColorSpace Class Reference

Definition of class ColorSpace. More...

#include <ColorSpace.h>

Inheritance diagram for ColorSpace:

HSV RGB

Public Member Functions

 ColorSpace (COLORTYPE type, Real minValue, Real maxValue)
 constructor
int numOfComps () const
 number of components accessor
Real maxValue () const
 max value accessor
Real minValue () const
 min value accessor
COLORTYPE type () const
 type accessor

Static Public Member Functions

static Color rgb_to_cmy (const Color &c)
 conversion operator from RGB to CMY
static Color cmy_to_rgb (const Color &c)
 conversion operator from CMY to RGB
static Color rgb_to_yiq (const Color &c)
 conversion operator from RGB to YIQ
static Color yiq_to_rgb (const Color &c)
 conversion operator from YIQ to RGB
static Real rgb_to_y (const Color &c)
 conversion operator from RGB to Y
static Color rgb_to_hsv (Real r, Real g, Real b)
 conversion operator from RGB to Y
static Color hsv_to_rgb (Real h, Real s, Real v)
 conversion operator from RGB to Y

Protected Attributes

COLORTYPE type
 type of this ColorSpace
Real maxValue
 max value for this ColorSpace
Real minValue
 max value for this ColorSpace

Detailed Description

Definition of class ColorSpace.

class ColorSpace will be the base class for all color spaces.


The documentation for this class was generated from the following file:
Generated on Thu Jul 5 00:13:47 2007 for S3D by  doxygen 1.4.6