rcrt::LSTree Class Reference

#include <AreaLightSampler.h>

Inheritance diagram for rcrt::LSTree:

Inheritance graph
[legend]
Collaboration diagram for rcrt::LSTree:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LSTree (LSTreeNode *p=0)
 LSTree (const ShadowType &t, const int &s, LSTreeNode *p=0)
virtual ~LSTree ()
virtual const RGBColorgetMean () const =0
virtual const RGBColorgetVariance () 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 ShadowTypegetType () const
LSTreeNodegetParent ()
virtual bool isLeaf ()
virtual LSTreeLeafrefine ()=0

Protected Attributes

ShadowType type
int size
LSTreeNodeparent

Friends

class AreaLightSampler


Detailed Description

Definition at line 23 of file AreaLightSampler.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual const RGBColor& rcrt::LSTree::getMean (  )  const [pure virtual]

Implemented in rcrt::LSTreeLeaf, and rcrt::LSTreeNode.

Referenced by rcrt::LSTreeNode::update().

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]

Implemented in rcrt::LSTreeLeaf, and rcrt::LSTreeNode.

Referenced by rcrt::LSTreeNode::update().

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]

Implemented in rcrt::LSTreeLeaf, and rcrt::LSTreeNode.

Referenced by rcrt::LSTreeNode::refine().


Friends And Related Function Documentation

friend class AreaLightSampler [friend]

Reimplemented in rcrt::LSTreeLeaf, and rcrt::LSTreeNode.

Definition at line 25 of file AreaLightSampler.h.


Member Data Documentation

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().


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 19:32:33 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3