Color Class Reference

#include <Color.h>


Public Member Functions

 Color ()
 Color (const Color &copy)
Coloroperator= (const Color &copy)
 ~Color ()
double r () const
double g () const
double b () const
 Color (float r, float g, float b)
Color operator+ (const Color &c) const
Coloroperator+= (const Color &c)
Color operator- (const Color &c) const
Coloroperator-= (const Color &c)
Color operator * (const Color &c) const
Coloroperator *= (const Color &c)
Color operator * (double s) const
Coloroperator *= (double s)
Color operator * (float s) const
Coloroperator *= (float s)
Color operator/ (double s) const
Coloroperator/= (double s)
Color operator/ (float s) const
Coloroperator/= (float s)
float maxComponent () const


Detailed Description

Definition at line 11 of file Color.h.


Constructor & Destructor Documentation

Color  )  [inline]
 

Definition at line 13 of file Color.h.

Referenced by operator *(), operator+(), operator-(), and operator/().

Color const Color copy  )  [inline]
 

Definition at line 16 of file Color.h.

References data.

~Color  )  [inline]
 

Definition at line 27 of file Color.h.

Color float  r,
float  g,
float  b
[inline]
 

Definition at line 40 of file Color.h.


Member Function Documentation

double b  )  const [inline]
 

Definition at line 36 of file Color.h.

Referenced by operator<<(), and Image::set().

double g  )  const [inline]
 

Definition at line 33 of file Color.h.

Referenced by operator<<(), and Image::set().

float maxComponent  )  const [inline]
 

Definition at line 95 of file Color.h.

References Max().

Referenced by Scene::traceRay().

Color operator * float  s  )  const [inline]
 

Definition at line 73 of file Color.h.

References Color().

Color operator * double  s  )  const [inline]
 

Definition at line 66 of file Color.h.

References Color().

Color operator * const Color c  )  const [inline]
 

Definition at line 59 of file Color.h.

References Color(), and data.

Color& operator *= float  s  )  [inline]
 

Definition at line 76 of file Color.h.

Color& operator *= double  s  )  [inline]
 

Definition at line 69 of file Color.h.

Color& operator *= const Color c  )  [inline]
 

Definition at line 62 of file Color.h.

References data.

Color operator+ const Color c  )  const [inline]
 

Definition at line 45 of file Color.h.

References Color(), and data.

Color& operator+= const Color c  )  [inline]
 

Definition at line 48 of file Color.h.

References data.

Color operator- const Color c  )  const [inline]
 

Definition at line 52 of file Color.h.

References Color(), and data.

Color& operator-= const Color c  )  [inline]
 

Definition at line 55 of file Color.h.

References data.

Color operator/ float  s  )  const [inline]
 

Definition at line 87 of file Color.h.

References Color().

Color operator/ double  s  )  const [inline]
 

Definition at line 80 of file Color.h.

References Color().

Color& operator/= float  s  )  [inline]
 

Definition at line 90 of file Color.h.

Color& operator/= double  s  )  [inline]
 

Definition at line 83 of file Color.h.

Color& operator= const Color copy  )  [inline]
 

Definition at line 21 of file Color.h.

References data.

double r  )  const [inline]
 

Definition at line 30 of file Color.h.

Referenced by operator<<(), and Image::set().


The documentation for this class was generated from the following file:
Generated on Tue Jan 29 21:34:55 2008 for specter by  doxygen 1.4.6