ui::util::Color Class Reference

Inheritance diagram for ui::util::Color:

Inheritance graph
[legend]
Collaboration diagram for ui::util::Color:

Collaboration graph
[legend]
List of all members.

Detailed Description

Defines a datatype for Color information. Currently supports only the RGBA color space, with floating point precision.


Public Member Functions

 Color (float redValue, float greenValue, float blueValue, float alphaValue)
 Color (float redValue, float greenValue, float blueValue)
 Color (int redValue, int greenValue, int blueValue)
 Color (int redValue, int greenValue, int blueValue, int alphaValue)
float getRed (int point) const
float getGreen (int point) const
float getBlue (int point) const
float getAlpha (int point) const
bool operator== (const Color &rhs)
Coloroperator= (const Color &rhs)
 Color (const Color &rhs)

Public Attributes

float red
float blue
float green
float alpha


Constructor & Destructor Documentation

ui::util::Color::Color float  redValue,
float  greenValue,
float  blueValue,
float  alphaValue
 

Creates a new color with given red, green, blue and alpha values.

Parameters:
redValue the red value ranging from 0-1.
blueValue the blue value ranging from 0-1.
greenValue the red value ranging from 0-1.
alphaValue the alpha valua ranging from 0-1.

ui::util::Color::Color float  redValue,
float  greenValue,
float  blueValue
 

Creates a new color with given red, green, blue values.

Parameters:
redValue the red value ranging from 0-1.
blueValue the blue value ranging from 0-1.
greenValue the red value ranging from 0-1.

ui::util::Color::Color int  redValue,
int  greenValue,
int  blueValue
 

Creates a new color with given red, green, blue values.

Parameters:
redValue the red value ranging from 0-255.
blueValue the blue value ranging from 0-255.
greenValue the red value ranging from 0-255.

ui::util::Color::Color int  redValue,
int  greenValue,
int  blueValue,
int  alphaValue
 

Creates a new color with given red, green, blue values.

Parameters:
redValue the red value ranging from 0-255.
blueValue the blue value ranging from 0-255.
greenValue the red value ranging from 0-255.
alphaValue the alpha value ranging from 0-255.


Member Data Documentation

float ui::util::Color::red
 

The red component ranging from 0 to 1.

float ui::util::Color::blue
 

The blue component ranging from 0 to 1.

float ui::util::Color::green
 

The green component ranging from 0 to 1.

float ui::util::Color::alpha
 

The alpha component ranging from 0 to 1.


Generated on Mon Jun 20 19:42:03 2005 for UI by doxygen 1.3.1 using KingsTools