lux::BRDFToBTDF Class Reference

#include <bxdf.h>

Inheritance diagram for lux::BRDFToBTDF:

lux::BxDF

List of all members.

Public Member Functions

 BRDFToBTDF (BxDF *b)
SWCSpectrum rho (const Vector &w, int nSamples, float *samples) const
SWCSpectrum rho (int nSamples, float *samples) const
SWCSpectrum f (const Vector &wo, const Vector &wi) const
SWCSpectrum Sample_f (const Vector &wo, Vector *wi, float u1, float u2, float *pdf, float *pdfBack=NULL) const
float Pdf (const Vector &wo, const Vector &wi) const

Static Public Member Functions

static Vector otherHemisphere (const Vector &w)

Private Attributes

BxDFbrdf


Detailed Description

Definition at line 149 of file bxdf.h.


Constructor & Destructor Documentation

lux::BRDFToBTDF::BRDFToBTDF ( BxDF b  )  [inline]

Definition at line 152 of file bxdf.h.

References brdf.


Member Function Documentation

SWCSpectrum BRDFToBTDF::f ( const Vector wo,
const Vector wi 
) const [virtual]

Implements lux::BxDF.

Definition at line 34 of file bxdf.cpp.

References brdf, lux::BxDF::f(), and otherHemisphere().

Referenced by Sample_f().

static Vector lux::BRDFToBTDF::otherHemisphere ( const Vector w  )  [inline, static]

Definition at line 157 of file bxdf.h.

References lux::Vector::x, lux::Vector::y, and lux::Vector::z.

Referenced by f(), Pdf(), rho(), and Sample_f().

float BRDFToBTDF::Pdf ( const Vector wo,
const Vector wi 
) const [virtual]

Reimplemented from lux::BxDF.

Definition at line 59 of file bxdf.cpp.

References brdf, otherHemisphere(), and lux::BxDF::Pdf().

SWCSpectrum lux::BRDFToBTDF::rho ( int  nSamples,
float *  samples 
) const [inline, virtual]

Reimplemented from lux::BxDF.

Definition at line 164 of file bxdf.h.

References brdf, and lux::BxDF::rho().

SWCSpectrum lux::BRDFToBTDF::rho ( const Vector w,
int  nSamples,
float *  samples 
) const [inline, virtual]

Reimplemented from lux::BxDF.

Definition at line 160 of file bxdf.h.

References brdf, otherHemisphere(), and lux::BxDF::rho().

SWCSpectrum BRDFToBTDF::Sample_f ( const Vector wo,
Vector wi,
float  u1,
float  u2,
float *  pdf,
float *  pdfBack = NULL 
) const [virtual]

Reimplemented from lux::BxDF.

Definition at line 38 of file bxdf.cpp.

References brdf, f(), otherHemisphere(), and lux::BxDF::Sample_f().


Member Data Documentation

Definition at line 172 of file bxdf.h.

Referenced by BRDFToBTDF(), f(), Pdf(), rho(), and Sample_f().


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

Generated on Mon May 18 07:13:51 2009 for lux by  doxygen 1.5.8