rcrt::LSTreeLeaf Class Reference

#include <AreaLightSampler.h>

Inheritance diagram for rcrt::LSTreeLeaf:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LSTreeLeaf (LightSample sa, const Point2D &uvMi, const Point2D &uvMa, const Point2D &uv, LSTreeNode *p)
 ~LSTreeLeaf ()
const RGBColorgetMean () const
const RGBColorgetVariance () const
const float & getWeight () const
void setWeight (const float &w)
virtual void getSamples (std::vector< LightSample > &samples) const
bool isLeaf ()
LSTreeLeafrefine ()

Protected Attributes

LightSample sample
Point2D uvMin
Point2D uvMax
Point2D uvs

Friends

class AreaLightSampler


Detailed Description

Definition at line 73 of file AreaLightSampler.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Implements rcrt::LSTree.

Definition at line 36 of file AreaLightSampler.cpp.

References sample.

bool rcrt::LSTreeLeaf::isLeaf (  )  [virtual]

Reimplemented from rcrt::LSTree.

Definition at line 41 of file AreaLightSampler.cpp.

LSTreeLeaf * rcrt::LSTreeLeaf::refine (  )  [virtual]

Implements rcrt::LSTree.

Definition at line 46 of file AreaLightSampler.cpp.


Friends And Related Function Documentation

friend class AreaLightSampler [friend]

Reimplemented from rcrt::LSTree.

Definition at line 75 of file AreaLightSampler.h.


Member Data Documentation

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


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