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

toxic::IEDF Class Reference

#include <iedf.h>

Inheritance diagram for toxic::IEDF:

sheep::IClonable< IEDF > toxic::LambertianEDF List of all members.

Public Member Functions

virtual ~IEDF ()
virtual sheep::Real Evaluate (const Context &context, const sheep::Vector3 &direction) const=0
 Evaluates the function. The emission direction is expressed in local space.

virtual void Sample (const Context &context, sheep::Vector3 *direction, sheep::Real *prob) const=0
sheep::Real GetEmittedRadiance (const Context &context, const sheep::Vector3 &normal, const sheep::Vector3 &direction) const
 Utility function.


Constructor & Destructor Documentation

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

Definition at line 40 of file iedf.h.


Member Function Documentation

virtual sheep::Real toxic::IEDF::Evaluate const Context context,
const sheep::Vector3 direction
const [pure virtual]
 

Evaluates the function. The emission direction is expressed in local space.

Implemented in toxic::LambertianEDF.

sheep::Real toxic::IEDF::GetEmittedRadiance const Context context,
const sheep::Vector3 normal,
const sheep::Vector3 direction
const [inline]
 

Utility function.

Parameters:
normal  On the light source, expressed in world space or object space.
direction  Away from the light source, expressed in same space as the normal.

Definition at line 88 of file iedf.h.

Referenced by toxic::Sphere::ComputeIrradiance(), and toxic::IAreaLight::ComputeIrradiance().

virtual void toxic::IEDF::Sample const Context context,
sheep::Vector3 direction,
sheep::Real prob
const [pure virtual]
 

Samples the function in order to obtain an emission direction. The probability with which the direction has been chosen is also computed. The emission direction is expressed in local space.

Implemented in toxic::LambertianEDF.

Referenced by toxic::IAreaLight::GeneratePhotonRay().


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