#include <AreaLightSampler.h>
Public Member Functions | |
LSTreeLeaf (LightSample sa, const Point2D &uvMi, const Point2D &uvMa, const Point2D &uv, LSTreeNode *p) | |
~LSTreeLeaf () | |
const RGBColor & | getMean () const |
const RGBColor & | getVariance () const |
const float & | getWeight () const |
void | setWeight (const float &w) |
virtual void | getSamples (std::vector< LightSample > &samples) const |
bool | isLeaf () |
LSTreeLeaf * | refine () |
Protected Attributes | |
LightSample | sample |
Point2D | uvMin |
Point2D | uvMax |
Point2D | uvs |
Friends | |
class | AreaLightSampler |
Definition at line 73 of file AreaLightSampler.h.
rcrt::LSTreeLeaf::LSTreeLeaf | ( | LightSample | sa, | |
const Point2D & | uvMi, | |||
const Point2D & | uvMa, | |||
const Point2D & | uv, | |||
LSTreeNode * | p | |||
) |
Definition at line 9 of file AreaLightSampler.cpp.
rcrt::LSTreeLeaf::~LSTreeLeaf | ( | ) | [inline] |
Definition at line 87 of file AreaLightSampler.h.
const RGBColor & rcrt::LSTreeLeaf::getMean | ( | ) | const [virtual] |
Implements rcrt::LSTree.
Definition at line 16 of file AreaLightSampler.cpp.
References rcrt::LightSample::power(), and sample.
const RGBColor & rcrt::LSTreeLeaf::getVariance | ( | ) | const [virtual] |
Implements rcrt::LSTree.
Definition at line 21 of file AreaLightSampler.cpp.
References rcrt::RGBColor::BLACK.
const float & rcrt::LSTreeLeaf::getWeight | ( | ) | const [virtual] |
Implements rcrt::LSTree.
Definition at line 26 of file AreaLightSampler.cpp.
References sample, and rcrt::LightSample::weight().
void rcrt::LSTreeLeaf::setWeight | ( | const float & | w | ) | [virtual] |
Implements rcrt::LSTree.
Definition at line 31 of file AreaLightSampler.cpp.
References sample, and rcrt::LightSample::setWeight().
Referenced by rcrt::AreaLightSampler::subdivide().
void rcrt::LSTreeLeaf::getSamples | ( | std::vector< LightSample > & | samples | ) | const [virtual] |
bool rcrt::LSTreeLeaf::isLeaf | ( | ) | [virtual] |
LSTreeLeaf * rcrt::LSTreeLeaf::refine | ( | ) | [virtual] |
friend class AreaLightSampler [friend] |
LightSample rcrt::LSTreeLeaf::sample [protected] |
Definition at line 78 of file AreaLightSampler.h.
Referenced by getMean(), getSamples(), getWeight(), setWeight(), and rcrt::AreaLightSampler::subdivide().
Point2D rcrt::LSTreeLeaf::uvMin [protected] |
Definition at line 79 of file AreaLightSampler.h.
Referenced by rcrt::AreaLightSampler::subdivide().
Point2D rcrt::LSTreeLeaf::uvMax [protected] |
Definition at line 80 of file AreaLightSampler.h.
Referenced by rcrt::AreaLightSampler::subdivide().
Point2D rcrt::LSTreeLeaf::uvs [protected] |
Definition at line 81 of file AreaLightSampler.h.
Referenced by rcrt::AreaLightSampler::subdivide().