lux::Color Class Reference

#include <color.h>

Inheritance diagram for lux::Color:

lux::RGBColor lux::XYZColor

List of all members.

Public Member Functions

 Color ()
Coloroperator+= (const Color &s2)
Color operator+ (const Color &s2) const
Color operator- (const Color &s2) const
Color operator/ (const Color &s2) const
Color operator* (const Color &sp) const
Coloroperator*= (const Color &sp)
Color operator* (float a) const
Coloroperator*= (float a)
Color operator/ (float a) const
Coloroperator/= (float a)
void AddWeighted (float w, const Color &s)
bool operator== (const Color &sp) const
bool operator!= (const Color &sp) const
bool Black () const
Color Sqrt () const
Color Pow (const Color &e) const
Color operator- () const
Color Clamp (float low=0.f, float high=INFINITY) const
bool IsNaN () const
void Print (FILE *f) const
float y () const
bool operator< (const Color &s2) const

Public Attributes

float c [3]

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)

Friends

class boost::serialization::access
class lux::ParamSet
ostream & operator<< (ostream &, const Color &)
Color operator* (float a, const Color &s)
Color Exp (const Color &s)


Detailed Description

Definition at line 33 of file color.h.


Constructor & Destructor Documentation

lux::Color::Color (  )  [inline]

Definition at line 39 of file color.h.


Member Function Documentation

void lux::Color::AddWeighted ( float  w,
const Color s 
) [inline]

Definition at line 91 of file color.h.

References c.

Referenced by lux::Buffer::Add().

bool lux::Color::Black (  )  const [inline]

Definition at line 103 of file color.h.

References c.

Color lux::Color::Clamp ( float  low = 0.f,
float  high = INFINITY 
) const [inline]

Definition at line 137 of file color.h.

References c.

bool lux::Color::IsNaN (  )  const [inline]

Definition at line 145 of file color.h.

References c.

Referenced by lux::FlexImageFilm::MergeSampleArray().

bool lux::Color::operator!= ( const Color sp  )  const [inline]

Definition at line 100 of file color.h.

Color lux::Color::operator* ( float  a  )  const [inline]

Definition at line 70 of file color.h.

References c.

Color lux::Color::operator* ( const Color sp  )  const [inline]

Definition at line 61 of file color.h.

References c.

Color& lux::Color::operator*= ( float  a  )  [inline]

Definition at line 75 of file color.h.

References c.

Color& lux::Color::operator*= ( const Color sp  )  [inline]

Definition at line 66 of file color.h.

References c.

Color lux::Color::operator+ ( const Color s2  )  const [inline]

Definition at line 46 of file color.h.

References c.

Color& lux::Color::operator+= ( const Color s2  )  [inline]

Definition at line 42 of file color.h.

References c.

Color lux::Color::operator- (  )  const [inline]

Definition at line 123 of file color.h.

References c.

Color lux::Color::operator- ( const Color s2  )  const [inline]

Definition at line 51 of file color.h.

References c.

Color lux::Color::operator/ ( float  a  )  const [inline]

Definition at line 83 of file color.h.

Color lux::Color::operator/ ( const Color s2  )  const [inline]

Definition at line 56 of file color.h.

References c.

Color& lux::Color::operator/= ( float  a  )  [inline]

Definition at line 86 of file color.h.

References c.

bool lux::Color::operator< ( const Color s2  )  const [inline]

Definition at line 160 of file color.h.

References y().

bool lux::Color::operator== ( const Color sp  )  const [inline]

Definition at line 94 of file color.h.

References c.

Color lux::Color::Pow ( const Color e  )  const [inline]

Definition at line 116 of file color.h.

References c.

void lux::Color::Print ( FILE *  f  )  const [inline]

Definition at line 151 of file color.h.

References c.

template<class Archive >
void lux::Color::serialize ( Archive &  ar,
const unsigned int  version 
) [inline, private]

Definition at line 170 of file color.h.

References c.

Color lux::Color::Sqrt (  )  const [inline]

Definition at line 109 of file color.h.

References c.

float lux::Color::y (  )  const [inline]

Reimplemented in lux::RGBColor, and lux::XYZColor.

Definition at line 156 of file color.h.

Referenced by operator<().


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Reimplemented in lux::XYZColor.

Definition at line 35 of file color.h.

Color Exp ( const Color s  )  [friend]

Definition at line 130 of file color.h.

friend class lux::ParamSet [friend]

Definition at line 163 of file color.h.

Color operator* ( float  a,
const Color s 
) [friend]

Definition at line 80 of file color.h.

ostream& operator<< ( ostream &  ,
const Color  
) [friend]


Member Data Documentation

float lux::Color::c[3]


The documentation for this class was generated from the following file:

Generated on Mon May 18 07:16:39 2009 for lux by  doxygen 1.5.8