#include <AreaLightSampler.h>
Public Member Functions | |
LSTree (LSTreeNode *p=0) | |
LSTree (const ShadowType &t, const int &s, LSTreeNode *p=0) | |
virtual | ~LSTree () |
virtual const RGBColor & | getMean () const =0 |
virtual const RGBColor & | getVariance () const =0 |
virtual const float & | getWeight () const =0 |
virtual void | setWeight (const float &w)=0 |
virtual void | getSamples (std::vector< LightSample > &samples) const =0 |
const int & | getSize () const |
const ShadowType & | getType () const |
LSTreeNode * | getParent () |
virtual bool | isLeaf () |
virtual LSTreeLeaf * | refine ()=0 |
Protected Attributes | |
ShadowType | type |
int | size |
LSTreeNode * | parent |
Friends | |
class | AreaLightSampler |
Definition at line 23 of file AreaLightSampler.h.
rcrt::LSTree::LSTree | ( | LSTreeNode * | p = 0 |
) | [inline] |
Definition at line 34 of file AreaLightSampler.h.
rcrt::LSTree::LSTree | ( | const ShadowType & | t, | |
const int & | s, | |||
LSTreeNode * | p = 0 | |||
) | [inline] |
Definition at line 37 of file AreaLightSampler.h.
virtual rcrt::LSTree::~LSTree | ( | ) | [inline, virtual] |
Definition at line 41 of file AreaLightSampler.h.
virtual const RGBColor& rcrt::LSTree::getMean | ( | ) | const [pure virtual] |
virtual const RGBColor& rcrt::LSTree::getVariance | ( | ) | const [pure virtual] |
Implemented in rcrt::LSTreeLeaf, and rcrt::LSTreeNode.
virtual const float& rcrt::LSTree::getWeight | ( | ) | const [pure virtual] |
virtual void rcrt::LSTree::setWeight | ( | const float & | w | ) | [pure virtual] |
Implemented in rcrt::LSTreeLeaf, and rcrt::LSTreeNode.
Referenced by rcrt::AreaLightSampler::subdivide().
virtual void rcrt::LSTree::getSamples | ( | std::vector< LightSample > & | samples | ) | const [pure virtual] |
Implemented in rcrt::LSTreeLeaf, and rcrt::LSTreeNode.
Referenced by rcrt::LSTreeNode::getSamples().
const int& rcrt::LSTree::getSize | ( | ) | const [inline] |
Definition at line 50 of file AreaLightSampler.h.
References size.
Referenced by rcrt::LSTreeNode::refine(), and rcrt::LSTreeNode::update().
const ShadowType& rcrt::LSTree::getType | ( | ) | const [inline] |
Definition at line 55 of file AreaLightSampler.h.
References type.
Referenced by rcrt::LSTreeNode::refine(), and rcrt::LSTreeNode::update().
LSTreeNode* rcrt::LSTree::getParent | ( | ) | [inline] |
Definition at line 60 of file AreaLightSampler.h.
References parent.
Referenced by rcrt::AreaLightSampler::subdivide().
virtual bool rcrt::LSTree::isLeaf | ( | ) | [inline, virtual] |
Reimplemented in rcrt::LSTreeLeaf.
Definition at line 65 of file AreaLightSampler.h.
Referenced by rcrt::LSTreeNode::refine().
virtual LSTreeLeaf* rcrt::LSTree::refine | ( | ) | [pure virtual] |
friend class AreaLightSampler [friend] |
Reimplemented in rcrt::LSTreeLeaf, and rcrt::LSTreeNode.
Definition at line 25 of file AreaLightSampler.h.
ShadowType rcrt::LSTree::type [protected] |
Definition at line 28 of file AreaLightSampler.h.
Referenced by getType(), and rcrt::LSTreeNode::update().
int rcrt::LSTree::size [protected] |
Definition at line 29 of file AreaLightSampler.h.
Referenced by getSize(), and rcrt::LSTreeNode::update().
LSTreeNode* rcrt::LSTree::parent [protected] |
Definition at line 30 of file AreaLightSampler.h.
Referenced by getParent(), rcrt::LSTreeNode::refine(), rcrt::AreaLightSampler::subdivide(), and rcrt::LSTreeNode::update().