Color Class Reference

A RGBA color value. More...

#include <Color.h>

List of all members.

Public Types

typedef unsigned char ColorUnit

Public Member Functions

 Color (ColorUnit R, ColorUnit G, ColorUnit B, ColorUnit A=maxChannelValue)
void set (ColorUnit R, ColorUnit G, ColorUnit B, ColorUnit A)
ColorUnit R () const
ColorUnit G () const
ColorUnit B () const
ColorUnit A () const
void setR (ColorUnit r)
void setG (ColorUnit g)
void setB (ColorUnit b)
void setA (ColorUnit a)
Color operator *= (float v)
Color operator * (float v) const
bool opaque () const

Static Public Attributes

static const ColorUnit maxChannelValue = 255

Private Attributes

ColorUnit mR
ColorUnit mG
ColorUnit mB
ColorUnit mA


Detailed Description

A RGBA color value.

It can store integer values for each channel in the range of 0 to 255.


Member Typedef Documentation

typedef unsigned char Color::ColorUnit
 


Constructor & Destructor Documentation

Color::Color ColorUnit  R,
ColorUnit  G,
ColorUnit  B,
ColorUnit  A = maxChannelValue
[inline]
 


Member Function Documentation

ColorUnit Color::A  )  const [inline]
 

ColorUnit Color::B  )  const [inline]
 

ColorUnit Color::G  )  const [inline]
 

bool Color::opaque  )  const [inline]
 

Color Color::operator * float  v  )  const [inline]
 

Color Color::operator *= float  v  )  [inline]
 

ColorUnit Color::R  )  const [inline]
 

void Color::set ColorUnit  R,
ColorUnit  G,
ColorUnit  B,
ColorUnit  A
[inline]
 

void Color::setA ColorUnit  a  )  [inline]
 

void Color::setB ColorUnit  b  )  [inline]
 

void Color::setG ColorUnit  g  )  [inline]
 

void Color::setR ColorUnit  r  )  [inline]
 


Member Data Documentation

ColorUnit Color::mA [private]
 

const ColorUnit Color::maxChannelValue = 255 [static]
 

ColorUnit Color::mB [private]
 

ColorUnit Color::mG [private]
 

ColorUnit Color::mR [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Jan 23 19:44:59 2006 for Visualization by  doxygen 1.4.6