BRDFToBTDF Class Reference

#include <reflection.h>

Inheritance diagram for BRDFToBTDF:
BxDF

List of all members.

Public Member Functions

 BRDFToBTDF (BxDF *b)
Spectrum f (const Vector &wo, const Vector &wi) const
Spectrum Sample_f (const Vector &wo, Vector *wi, float u1, float u2, float *pdf) const
Spectrum rho (const Vector &w, int nSamples, const float *samples) const
Spectrum rho (int nSamples, const float *samples1, const float *samples2) 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 215 of file reflection.h.


Constructor & Destructor Documentation

BRDFToBTDF::BRDFToBTDF ( BxDF b  )  [inline]

Definition at line 218 of file reflection.h.

References brdf.


Member Function Documentation

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

Implements BxDF.

Definition at line 76 of file reflection.cpp.

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

Referenced by Sample_f().

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

Definition at line 222 of file reflection.h.

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

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

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

Reimplemented from BxDF.

Definition at line 312 of file reflection.cpp.

References brdf, and BxDF::Pdf().

Spectrum BRDFToBTDF::rho ( int  nSamples,
const float *  samples1,
const float *  samples2 
) const [inline, virtual]

Reimplemented from BxDF.

Definition at line 231 of file reflection.h.

References brdf, and BxDF::rho().

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

Reimplemented from BxDF.

Definition at line 228 of file reflection.h.

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

Spectrum BRDFToBTDF::Sample_f ( const Vector wo,
Vector wi,
float  u1,
float  u2,
float *  pdf 
) const [virtual]

Reimplemented from BxDF.

Definition at line 81 of file reflection.cpp.

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


Member Data Documentation

BxDF* BRDFToBTDF::brdf [private]

Definition at line 236 of file reflection.h.

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


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 20:00:13 2010 for pbrt by  doxygen 1.6.3