rcrt::LightSample Class Reference

#include <LightSample.h>

Collaboration diagram for rcrt::LightSample:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LightSample (const float &weight, const Vec3D &dirToLight, const float &dis, const RGBColor &power)
virtual ~LightSample ()
const float & weight () const
const Vec3DdirToLight () const
const float & dist () const
const RGBColorpower () const
void setWeight (const float &w)

Private Attributes

float weightV
Vec3D dirV
float distV
RGBColor powerV


Detailed Description

A class that provides the necessary information to cast shadow rays and also delivers lightin information.

Definition at line 13 of file LightSample.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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


Member Data Documentation

float rcrt::LightSample::weightV [private]

Definition at line 16 of file LightSample.h.

Referenced by setWeight(), and weight().

Vec3D rcrt::LightSample::dirV [private]

Definition at line 17 of file LightSample.h.

Referenced by dirToLight().

float rcrt::LightSample::distV [private]

Definition at line 18 of file LightSample.h.

Referenced by dist().

RGBColor rcrt::LightSample::powerV [private]

Definition at line 19 of file LightSample.h.

Referenced by power().


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