Util::Color Class Reference

#include <Color.h>

List of all members.

Public Member Functions

 Color (float red, float green, float blue, float alpha)
 Color ()
float getRed () const
float getGreen () const
float getBlue () const
float getAlpha () const
void setRed (float red)
void setGreen (float green)
void setBlue (float blue)
void setAlpha (float alpha)
float diff (const Color &c) const


Detailed Description

The class Color represents a RGBA color value.


Constructor & Destructor Documentation

Util::Color::Color float  red,
float  green,
float  blue,
float  alpha
 

Constructs a Color with the specified values.

Parameters:
red the red color value.
green the green color value.
blue the blue color value.
alpha the alpha value.

Util::Color::Color  ) 
 

Constructs a Color with all values set to zero.


Member Function Documentation

float Util::Color::diff const Color c  )  const
 

Computes the four value differences (red, green, blue, alpha) between this Color and the specified Color, and returns the maximum value difference.

Returns:
the maximum value difference.

float Util::Color::getAlpha  )  const
 

Returns the alpha value.

Returns:
the alpha value.

float Util::Color::getBlue  )  const
 

Returns the blue color value.

Returns:
the blue color value.

float Util::Color::getGreen  )  const
 

Returns the green color value.

Returns:
the green color value.

float Util::Color::getRed  )  const
 

Returns the red color value.

Returns:
the red color value.

void Util::Color::setAlpha float  alpha  ) 
 

Sets the alpha value.

Parameters:
alpha the new alpha value.

void Util::Color::setBlue float  blue  ) 
 

Sets the blue color value.

Parameters:
blue the new blue color value.

void Util::Color::setGreen float  green  ) 
 

Sets the green color value.

Parameters:
green the new green color value.

void Util::Color::setRed float  red  ) 
 

Sets the red color value.

Parameters:
red the new red color value.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:54 2006 for GPU Thesis by  doxygen 1.4.6-NO