Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

OpenCAL::Utils::Color Class Reference

#include <Color.h>

Collaboration diagram for OpenCAL::Utils::Color:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Color (float r=0.0f, float g=0.0f, float b=0.0f, float a=1.0f)
 Color (float *values)
 Color (const Color &source)
 Copy constructor.
float * get ()
float getR () const
float getG () const
float getB () const
float getA () const
void set (float r, float g, float b, float a=1.0f)
void set (float *values)
void setR (float r)
void setG (float g)
void setB (float b)
void setA (float a)
Color operator/ (float factor) const
 operator const float * () const

Static Public Attributes

Color white
Color black
Color red
Color blue
Color green
Color yellow

Private Attributes

float m_values [4]

Detailed Description

This class represents an RGBA color !

Todo:
make the statics const

Definition at line 32 of file Color.h.


The documentation for this class was generated from the following files:
Generated on Sun Aug 15 19:19:37 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8