#include <LightSample.h>
Public Member Functions | |
LightSample (const float &weight, const Vec3D &dirToLight, const float &dis, const RGBColor &power) | |
virtual | ~LightSample () |
const float & | weight () const |
const Vec3D & | dirToLight () const |
const float & | dist () const |
const RGBColor & | power () const |
void | setWeight (const float &w) |
Private Attributes | |
float | weightV |
Vec3D | dirV |
float | distV |
RGBColor | powerV |
Definition at line 13 of file LightSample.h.
rcrt::LightSample::LightSample | ( | const float & | weight, | |
const Vec3D & | dirToLight, | |||
const float & | dis, | |||
const RGBColor & | power | |||
) |
Definition at line 6 of file LightSample.cpp.
rcrt::LightSample::~LightSample | ( | ) | [virtual] |
Definition at line 11 of file LightSample.cpp.
const float & rcrt::LightSample::weight | ( | ) | const |
Definition at line 15 of file LightSample.cpp.
References weightV.
Referenced by rcrt::SimpleTracer::directLight(), rcrt::PhotonTracer::directLight(), rcrt::LSTreeLeaf::getWeight(), rcrt::AreaLight::illuminate(), rcrt::AreaLightSampler::subdivide(), and rcrt::RayCaster::trace().
const Vec3D & rcrt::LightSample::dirToLight | ( | ) | const |
Definition at line 20 of file LightSample.cpp.
References dirV.
Referenced by rcrt::SimpleTracer::directLight(), rcrt::PhotonTracer::directLight(), and rcrt::RayCaster::trace().
const float & rcrt::LightSample::dist | ( | ) | const |
Definition at line 25 of file LightSample.cpp.
References distV.
Referenced by rcrt::SimpleTracer::directLight(), rcrt::PhotonTracer::directLight(), and rcrt::RayCaster::trace().
const RGBColor & rcrt::LightSample::power | ( | ) | const |
Definition at line 30 of file LightSample.cpp.
References powerV.
Referenced by rcrt::SimpleTracer::directLight(), rcrt::PhotonTracer::directLight(), rcrt::LSTreeLeaf::getMean(), and rcrt::RayCaster::trace().
void rcrt::LightSample::setWeight | ( | const float & | w | ) |
Definition at line 35 of file LightSample.cpp.
References weightV.
Referenced by rcrt::AreaLight::illuminate(), rcrt::AreaLightSampler::sample(), and rcrt::LSTreeLeaf::setWeight().
float rcrt::LightSample::weightV [private] |
Vec3D rcrt::LightSample::dirV [private] |
float rcrt::LightSample::distV [private] |
RGBColor rcrt::LightSample::powerV [private] |