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

Color Class Reference

Class representing an RGB color value. More...

#include <color.h>

List of all members.

Public Member Functions

 Color ()
 Initializes the color to black (0,0,0).
 Color (float _r, float _g, float _b)
 Initializes the color to (r,g,b).
Color operator+ (const Color &c) const
 Component-wise addition with color.
Coloroperator+= (const Color &c)
 Component-wise addition with color in place.
Color operator- ()
 Component-wise negation.
Color operator- (const Color &c) const
 Component-wise subtraction with color.
Coloroperator-= (const Color &c)
 Component-wise subtraction with color in place.
Color operator * (float s) const
 Component-wise multiplication with scalar.
Coloroperator *= (float s)
 Component-wise multiplication with scalar (in place).
Color operator * (const Color &c) const
 Component-wise multiplication with color.
Coloroperator *= (const Color &c)
 Component-wise multiplication with color in place.
Color operator/ (float s) const
 Component-wise division with scalar.
Coloroperator/= (float s)
 Component-wise division with scalar (in place).
Color operator/ (const Color &c) const
 Component-wise division with color.
Coloroperator/= (const Color &c)
 Component-wise division with color in place.

Public Attributes

float r
 Red component.
float g
 Green component.
float b
 Blue component.

Friends

Color operator * (float s, const Color &c)
 Component-wise multiplication with scalar (mixed-mode).
std::ostream & operator<< (std::ostream &os, const Color &c)
 Write color values to an output stream in text format.


Detailed Description

Class representing an RGB color value.


The documentation for this class was generated from the following file:
Generated on Tue Mar 14 09:46:36 2006 for ASR by  doxygen 1.4.4