#include <RGBAColor.h>
Public Member Functions | |
RGBAColor () | |
RGBAColor (float c, float a=1) | |
RGBAColor (float r, float g, float b, float a=1) | |
RGBAColor (const RGBAColor &col) | |
RGBAColor (const RGBColor &col) | |
virtual | ~RGBAColor () |
const RGBAColor & | operator= (const RGBAColor &col) |
RGBAColor | operator+ (const RGBAColor &col) const |
RGBAColor | operator- (const RGBAColor &col) const |
RGBAColor | operator * (float f) const |
RGBAColor | operator/ (float f) const |
RGBAColor | blendAssoc (const RGBAColor &col) |
RGBAColor | blendOver (const RGBAColor &col) |
float | r () const |
float | g () const |
float | b () const |
float | a () const |
float | getLuminance () const |
RGBColor | getRGB () const |
Private Member Functions | |
void | assign (const RGBAColor &col) |
Private Attributes | |
float | values [4] |
Definition at line 9 of file RGBAColor.h.
rcrt::RGBAColor::RGBAColor | ( | ) |
Definition at line 6 of file RGBAColor.cpp.
References values.
Referenced by operator *(), operator+(), operator-(), and operator/().
rcrt::RGBAColor::RGBAColor | ( | float | c, | |
float | a = 1 | |||
) |
rcrt::RGBAColor::RGBAColor | ( | float | r, | |
float | g, | |||
float | b, | |||
float | a = 1 | |||
) |
rcrt::RGBAColor::RGBAColor | ( | const RGBAColor & | col | ) |
rcrt::RGBAColor::RGBAColor | ( | const RGBColor & | col | ) |
Definition at line 31 of file RGBAColor.cpp.
References rcrt::RGBColor::b(), rcrt::RGBColor::g(), rcrt::RGBColor::r(), and values.
rcrt::RGBAColor::~RGBAColor | ( | ) | [virtual] |
Definition at line 39 of file RGBAColor.cpp.
void rcrt::RGBAColor::assign | ( | const RGBAColor & | col | ) | [private] |
Definition at line 43 of file RGBAColor.cpp.
References values.
Referenced by operator=(), and RGBAColor().
RGBAColor rcrt::RGBAColor::operator * | ( | float | f | ) | const |
RGBAColor rcrt::RGBAColor::operator/ | ( | float | f | ) | const |
float rcrt::RGBAColor::r | ( | ) | const |
Definition at line 108 of file RGBAColor.cpp.
References values.
Referenced by getLuminance(), rcrt::operator<<(), rcrt::Image::ToneMapping(), rcrt::StereoMetaTracer::trace(), and rcrt::Image::WritePNG().
float rcrt::RGBAColor::g | ( | ) | const |
Definition at line 113 of file RGBAColor.cpp.
References values.
Referenced by getLuminance(), operator/(), rcrt::operator<<(), rcrt::Image::ToneMapping(), rcrt::StereoMetaTracer::trace(), and rcrt::Image::WritePNG().
float rcrt::RGBAColor::b | ( | ) | const |
Definition at line 118 of file RGBAColor.cpp.
References values.
Referenced by getLuminance(), rcrt::operator<<(), rcrt::Image::ToneMapping(), rcrt::StereoMetaTracer::trace(), and rcrt::Image::WritePNG().
float rcrt::RGBAColor::a | ( | ) | const |
Definition at line 123 of file RGBAColor.cpp.
References values.
Referenced by rcrt::operator<<(), rcrt::Image::ToneMapping(), and rcrt::StereoMetaTracer::trace().
float rcrt::RGBAColor::getLuminance | ( | ) | const |
Definition at line 128 of file RGBAColor.cpp.
Referenced by rcrt::ImageTexture::getBump(), and rcrt::DisplacedTriangle::getDispPoint().
RGBColor rcrt::RGBAColor::getRGB | ( | ) | const |
Definition at line 133 of file RGBAColor.cpp.
References values.
Referenced by rcrt::WoodMaterial::sample().
float rcrt::RGBAColor::values[4] [private] |
Definition at line 12 of file RGBAColor.h.
Referenced by a(), assign(), b(), blendAssoc(), blendOver(), g(), getRGB(), operator *(), operator+(), operator-(), operator/(), r(), and RGBAColor().