Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgColorSet Class Reference

Maintain a set of colors which can be indexed. More...

#include <render/ddgcolor.h>

Class diagram for ddgColorSet:

ddgList

List of all members.


Public Members

ddgColor3find (float key)
Find a colour by gradient index.

ddgColorNodefindnode (float key)
Find a colour node by gradient index.

ddgColorNodefindnode (char* name)
Find a colornode by name.

ddgColor3find (char* name)
Find a color by name.

ddgColorNodefindNode (float key)
Find a colour node by gradient index.

void spread (ddgColor3 *st, ddgColor3 *en, float stk, float endk, unsigned int n )
Create a spread of colors starting from st to en, with n entries.

ddgColor3find (float key)
Find a colour by gradient index.

ddgColorNodefindnode (float key)
Find a colour node by gradient index.

ddgColorNodefindnode (char* name)
Find a colornode by name.

ddgColor3find (char* name)
Find a color by name.

ddgColorNodefindNode (float key)
Find a colour node by gradient index.

void spread (ddgColor3 *st, ddgColor3 *en, float stk, float endk, unsigned int n )
Create a spread of colors starting from st to en, with n entries.

void RGBToHSV ( double r, double g, double b, double *h, double *s, double *v)
Given: r,g,b each in [0,1] Desired: h [0,360), s and v in [0,1] except if s=0, then h= UNDEFINED, which is some constance defined with a value outside the interval [0,360].

bool HSVToRGB (double *r, double *g, double *b, double h, double s, double v)
Given: h in [0,360] or UNDEFINED, s and v in [0,1] Desired: r,g,b each in [0,1].

void RGBToHLS ( double r, double g, double b, double *h, double *l, double *s)
Given: r,g,b each in [0,1] Desired: h [0,360), l and s in [0,1] except if s=0, then h= UNDEFINED, which is some constance defined with a value outside the interval [0,360].

bool HLSToRGB (double *r, double *g, double *b, double h, double l, double s)
Given: h in [0,360] or UNDEFINED, l and s in [0,1] Desired: r,g,b each in [0,1].


Detailed Description

Maintain a set of colors which can be indexed.

A ddgColorSet can maintains a set of ddgColor3 or ddgColor4 objects. However it only returns ddgColor3 objects (ie ddgColor4 objects are treated as if they were color3s.)


The documentation for this class was generated from the following files:
Generated at Sun Sep 17 19:27:52 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999