Nori
|
Represents a linear RGB color and a weight. More...
#include <color.h>
Public Types | |
typedef Eigen::Array4f | Base |
Public Member Functions | |
Color4f () | |
Create an zero value. | |
Color4f (const Color3f &c) | |
Create from a 3-channel color. | |
Color4f (float r, float g, float b, float w) | |
Initialize the color vector with specific per-channel values. | |
template<typename Derived > | |
Color4f (const Eigen::ArrayBase< Derived > &p) | |
Construct a color vector from ArrayBase (needed to play nice with Eigen) | |
template<typename Derived > | |
Color4f & | operator= (const Eigen::ArrayBase< Derived > &p) |
Assign a color vector from ArrayBase (needed to play nice with Eigen) | |
Color3f | normalized () const |
Normalize and convert into a Color3f value. | |
QString | toString () const |
Return a human-readable string summary. |
Represents a linear RGB color and a weight.
This is used by Nori's image reconstruction filter code
typedef Eigen::Array4f Color4f::Base |
Color4f::Color4f | ( | const Color3f & | c | ) | [inline] |
Color4f::Color4f | ( | float | r, |
float | g, | ||
float | b, | ||
float | w | ||
) | [inline] |
Color4f::Color4f | ( | const Eigen::ArrayBase< Derived > & | p | ) | [inline] |
Color3f Color4f::normalized | ( | ) | const [inline] |
Color4f& Color4f::operator= | ( | const Eigen::ArrayBase< Derived > & | p | ) | [inline] |
QString Color4f::toString | ( | ) | const [inline] |