color_t Class Reference

#include <color.h>

Inheritance diagram for color_t:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 color_t ()
 color_t (CFLOAT r, CFLOAT g, CFLOAT b)
 color_t (CFLOAT g)
 color_t (CFLOAT af[3])
bool isBlack () const
 ~color_t ()
void set (CFLOAT r, CFLOAT g, CFLOAT b)
color_toperator+= (const color_t &c)
color_toperator-= (const color_t &c)
color_toperator*= (const color_t &c)
color_toperator*= (CFLOAT f)
CFLOAT energy () const
CFLOAT col2bri () const
CFLOAT abscol2bri () const
void gammaAdjust (CFLOAT g)
void expgam_Adjust (CFLOAT e, CFLOAT g, bool clamp_rgb)
CFLOAT getR () const
CFLOAT getG () const
CFLOAT getB () const
void invertRGB ()
void absRGB ()
void darkenRGB (const color_t &col)
void lightenRGB (const color_t &col)
void black ()
CFLOAT minimum () const
CFLOAT maximum () const
CFLOAT absmax () const
void clampRGB0 ()
void clampRGB01 ()

Public Attributes

CFLOAT R
CFLOAT G
CFLOAT B

Friends

color_t operator* (const color_t &a, const color_t &b)
color_t operator* (const CFLOAT f, const color_t &b)
color_t operator* (const color_t &b, const CFLOAT f)
color_t operator/ (const color_t &b, const CFLOAT f)
color_t operator+ (const color_t &a, const color_t &b)
color_t operator- (const color_t &a, const color_t &b)
CFLOAT maxAbsDiff (const color_t &a, const color_t &b)
YAFRAYCORE_EXPORT void operator>> (unsigned char *data, color_t &c)
YAFRAYCORE_EXPORT void operator<< (unsigned char *data, const color_t &c)
YAFRAYCORE_EXPORT void operator>> (float *data, color_t &c)
YAFRAYCORE_EXPORT void operator<< (float *data, const color_t &c)
YAFRAYCORE_EXPORT std::ostream & operator<< (std::ostream &out, const color_t c)
YAFRAYCORE_EXPORT color_t mix (const color_t &a, const color_t &b, CFLOAT point)
YAFRAYCORE_EXPORT color_t convergenceAccell (const color_t &cn_1, const color_t &cn0, const color_t &cn1)

Detailed Description

Definition at line 34 of file color.h.


Constructor & Destructor Documentation

color_t::color_t (  )  [inline]

Definition at line 51 of file color.h.

color_t::color_t ( CFLOAT  r,
CFLOAT  g,
CFLOAT  b 
) [inline]

Definition at line 52 of file color.h.

color_t::color_t ( CFLOAT  g  )  [inline]

Definition at line 53 of file color.h.

color_t::color_t ( CFLOAT  af[3]  )  [inline]

Definition at line 54 of file color.h.

color_t::~color_t (  )  [inline]

Definition at line 56 of file color.h.


Member Function Documentation

CFLOAT color_t::abscol2bri (  )  const [inline]

Definition at line 68 of file color.h.

CFLOAT color_t::absmax (  )  const [inline]

Definition at line 99 of file color.h.

void color_t::absRGB (  )  [inline]

Definition at line 82 of file color.h.

void color_t::black (  )  [inline]

Definition at line 96 of file color.h.

void color_t::clampRGB0 (  )  [inline]

Definition at line 100 of file color.h.

void color_t::clampRGB01 (  )  [inline]

Definition at line 107 of file color.h.

CFLOAT color_t::col2bri (  )  const [inline]

Definition at line 67 of file color.h.

void color_t::darkenRGB ( const color_t col  )  [inline]

Definition at line 83 of file color.h.

CFLOAT color_t::energy (  )  const [inline]

Definition at line 64 of file color.h.

void color_t::expgam_Adjust ( CFLOAT  e,
CFLOAT  g,
bool  clamp_rgb 
) [inline]

Definition at line 176 of file color.h.

void color_t::gammaAdjust ( CFLOAT  g  )  [inline]

Definition at line 69 of file color.h.

CFLOAT color_t::getB (  )  const [inline]

Definition at line 73 of file color.h.

CFLOAT color_t::getG (  )  const [inline]

Definition at line 72 of file color.h.

CFLOAT color_t::getR (  )  const [inline]

Definition at line 71 of file color.h.

void color_t::invertRGB (  )  [inline]

Definition at line 76 of file color.h.

bool color_t::isBlack (  )  const [inline]

Definition at line 55 of file color.h.

void color_t::lightenRGB ( const color_t col  )  [inline]

Definition at line 89 of file color.h.

CFLOAT color_t::maximum (  )  const [inline]

Definition at line 98 of file color.h.

CFLOAT color_t::minimum (  )  const [inline]

Definition at line 97 of file color.h.

color_t & color_t::operator*= ( CFLOAT  f  )  [inline]

Reimplemented in colorA_t.

Definition at line 263 of file color.h.

color_t & color_t::operator*= ( const color_t c  )  [inline]

Reimplemented in colorA_t.

Definition at line 261 of file color.h.

color_t & color_t::operator+= ( const color_t c  )  [inline]

Reimplemented in colorA_t.

Definition at line 259 of file color.h.

color_t & color_t::operator-= ( const color_t c  )  [inline]

Reimplemented in colorA_t.

Definition at line 265 of file color.h.

void color_t::set ( CFLOAT  r,
CFLOAT  g,
CFLOAT  b 
) [inline]

Definition at line 57 of file color.h.


Friends And Related Function Documentation

YAFRAYCORE_EXPORT color_t convergenceAccell ( const color_t cn_1,
const color_t cn0,
const color_t cn1 
) [friend]
CFLOAT maxAbsDiff ( const color_t a,
const color_t b 
) [friend]
YAFRAYCORE_EXPORT color_t mix ( const color_t a,
const color_t b,
CFLOAT  point 
) [friend]

Reimplemented in colorA_t.

color_t operator* ( const color_t b,
const CFLOAT  f 
) [friend]

Reimplemented in colorA_t.

color_t operator* ( const CFLOAT  f,
const color_t b 
) [friend]

Reimplemented in colorA_t.

color_t operator* ( const color_t a,
const color_t b 
) [friend]

Reimplemented in colorA_t.

color_t operator+ ( const color_t a,
const color_t b 
) [friend]

Reimplemented in colorA_t.

color_t operator- ( const color_t a,
const color_t b 
) [friend]

Reimplemented in colorA_t.

color_t operator/ ( const color_t b,
const CFLOAT  f 
) [friend]

Reimplemented in colorA_t.

YAFRAYCORE_EXPORT std::ostream& operator<< ( std::ostream &  out,
const color_t  c 
) [friend]

Reimplemented in colorA_t.

YAFRAYCORE_EXPORT void operator<< ( float *  data,
const color_t c 
) [friend]

Reimplemented in colorA_t.

YAFRAYCORE_EXPORT void operator<< ( unsigned char *  data,
const color_t c 
) [friend]

Reimplemented in colorA_t.

YAFRAYCORE_EXPORT void operator>> ( float *  data,
color_t c 
) [friend]

Reimplemented in colorA_t.

YAFRAYCORE_EXPORT void operator>> ( unsigned char *  data,
color_t c 
) [friend]

Reimplemented in colorA_t.


Member Data Documentation

CFLOAT color_t::B

Definition at line 114 of file color.h.

CFLOAT color_t::G

Definition at line 114 of file color.h.

CFLOAT color_t::R

Definition at line 114 of file color.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 18 Dec 2009 for YafaRay by  doxygen 1.6.1