Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

toxic::IPhotonTracer Class Reference

#include <iphotontracer.h>

Inheritance diagram for toxic::IPhotonTracer:

toxic::CausticsPhotonTracer toxic::GlobalPhotonTracer List of all members.

Public Member Functions

virtual ~IPhotonTracer ()
virtual void BuildPhotonMap (const Context &context, PhotonMap *photonmap, const Scene *scene, int photon_count, sheep::ProgressMonitor *progmon=0) const

Protected Member Functions

virtual void emit_photons (const Context &context, PhotonMap *photonmap, const Scene *scene, const ILight *light, int photon_count, sheep::ProgressMonitor *progmon) const
virtual void trace_photon (const Context &context, PhotonMap *photonmap, const Scene *scene, Ray ray, Color3 power) const=0

Constructor & Destructor Documentation

virtual toxic::IPhotonTracer::~IPhotonTracer  )  [inline, virtual]
 

Definition at line 40 of file iphotontracer.h.


Member Function Documentation

void IPhotonTracer::BuildPhotonMap const Context context,
PhotonMap photonmap,
const Scene scene,
int  photon_count,
sheep::ProgressMonitor progmon = 0
const [virtual]
 

'nphotons' is the number of photons to trace for the whole scene (it is then divided amongst all lights).

Todo:
Repare, this is a quick hack!

Repare, scaling is not accurate (some photons may have been lost).

Definition at line 34 of file iphotontracer.cpp.

References emit_photons(), toxic::Scene::GetLight(), toxic::Scene::GetLightCount(), and toxic::PhotonMap::ScalePhotonPower().

void IPhotonTracer::emit_photons const Context context,
PhotonMap photonmap,
const Scene scene,
const ILight light,
int  photon_count,
sheep::ProgressMonitor progmon
const [protected, virtual]
 

Definition at line 77 of file iphotontracer.cpp.

References toxic::ILight::GeneratePhotonRay(), toxic::ILight::GetPower(), and trace_photon().

Referenced by BuildPhotonMap().

virtual void toxic::IPhotonTracer::trace_photon const Context context,
PhotonMap photonmap,
const Scene scene,
Ray  ray,
Color3  power
const [protected, pure virtual]
 

Implemented in toxic::CausticsPhotonTracer, and toxic::GlobalPhotonTracer.

Referenced by emit_photons().


The documentation for this class was generated from the following files:
Generated on Tue May 11 01:31:57 2004 for toxic by doxygen 1.3.6