AbsorbentBSDF Class Reference

Ideal, cool, black-body absorbent material (absorbs all incoming light). More...

#include <AbsorbentBSDF.h>

Inheritance diagram for AbsorbentBSDF:

BSDF Sampler SSEAligned

List of all members.

Public Member Functions

Constructors
 AbsorbentBSDF (SurfacePoint &pt, Material *parent=NULL)
virtual ~AbsorbentBSDF ()
Main usage interface
virtual Event sample ()
 Samples an exitent vector at the given surface point.
virtual real_t getPdf (const Event &event)
virtual SpectralSampleSet getBSDF (const Vector3 &wi, const Vector3 &wo)
 Evaluates the spectral BSDF at the given surface point with respect to the out vector, 'wo', at the underlying surface point and given incident vector, 'wi'.


Detailed Description

Ideal, cool, black-body absorbent material (absorbs all incoming light).

Author:
Travis Fischer (fisch0920@gmail.com)

Matthew Jacobs (jacobs.mh@gmail.com)

Date:
Fall 2008

Definition at line 16 of file AbsorbentBSDF.h.


Constructor & Destructor Documentation

AbsorbentBSDF::AbsorbentBSDF ( SurfacePoint pt,
Material parent = NULL 
) [inline, explicit]

Definition at line 21 of file AbsorbentBSDF.h.

virtual AbsorbentBSDF::~AbsorbentBSDF (  )  [inline, virtual]

Definition at line 25 of file AbsorbentBSDF.h.


Member Function Documentation

Event AbsorbentBSDF::sample (  )  [virtual]

Samples an exitent vector at the given surface point.

Returns:
the sampled vector as a Vector3 wrapped in an Event object
Note:
returns Vector3::zero() if no exitent vector was sampled (to model a certain probability of absorption, for instance)
Example usage:

    const Event &event = bsdf.sample();
    const Vector3 &wo  = event.getValue();
    const real_t pd    = bsdf.getPdf(event);        // p(x) probability
    const SpectralSampleSet &fs = bsdf.getBSDF(wo); // f(x) reflectivity
 

Implements BSDF.

Definition at line 13 of file AbsorbentBSDF.cpp.

real_t AbsorbentBSDF::getPdf ( const Event event  )  [virtual]

Returns:
the probability density of having sampled the given out out vector event with respect to whatever underlying sampling strategy is being used to sample the BSDF
Note:
probability density is assumed to be with respect to projected solid angle (the conversion from solid angle to projected solid angle involves dividing the solid angle density by the absolute value of the cosine of the angle between the local surface normal and the exitant vector in event)

Implements BSDF.

Definition at line 17 of file AbsorbentBSDF.cpp.

SpectralSampleSet AbsorbentBSDF::getBSDF ( const Vector3 wi,
const Vector3 wo 
) [virtual]

Evaluates the spectral BSDF at the given surface point with respect to the out vector, 'wo', at the underlying surface point and given incident vector, 'wi'.

Returns:
the spectral radiance leaving in direction wo, per unit of irradiance arriving from wi (unitless fraction in [0, 1])

Implements BSDF.

Definition at line 21 of file AbsorbentBSDF.cpp.


The documentation for this class was generated from the following files:

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6