Color Class Reference

#include <Color.h>

List of all members.

Public Member Functions

 Color (void)
 Color (int r, int g, int b, int a)
Color operator- (void) const
int operator== (const Color &v) const
int operator!= (const Color &v) const
Color operator+ (const Color &v) const
Color operator- (const Color &v) const
Color operator * (double fl) const
Color operator/ (double fl) const
Color getRandomColor (void)
Color betrag (void) const


Detailed Description

A special Class for defining Colors. Colors are interpreted as Vectors, so mathematical operations like +, -, ... can be evaluated.


Constructor & Destructor Documentation

Color::Color void   )  [inline]
 

creates Black Color with Alpha=0

Color::Color int  r,
int  g,
int  b,
int  a
[inline]
 

creates Color with vales r,g,b and a for Alpha Channel


Member Function Documentation

Color Color::betrag void   )  const [inline]
 

returns Color that contains absolute values of the Channels from the given Color

Color Color::getRandomColor void   )  [inline]
 

returns Color- and Alpha Channel Values

Color Color::operator * double  fl  )  const [inline]
 

multiplies every Color Channel and the Alpha Channel by Value of f1

int Color::operator!= const Color v  )  const [inline]
 

compares two Colors and returns true, if not all of their Color Channels are equal

Color Color::operator+ const Color v  )  const [inline]
 

adds two Colors (all Color Channels and Alpha Channel)

Color Color::operator- const Color v  )  const [inline]
 

subtracts two Colors (all Color Channels and Alpha Channel)

Color Color::operator- void   )  const [inline]
 

multiplies every Color Channel and the Alpha Channel by -1

Color Color::operator/ double  fl  )  const [inline]
 

divides every Color Channel and the Alpha Channel by Value of f1

int Color::operator== const Color v  )  const [inline]
 

compares two Colors if all their Color Channels are equal


The documentation for this class was generated from the following file:
Generated on Wed Jan 18 14:33:42 2006 for VisUE by  doxygen 1.4.6-NO