rcrt::BXDF Class Reference

#include <BXDF.h>

Inheritance diagram for rcrt::BXDF:

Inheritance graph
[legend]
Collaboration diagram for rcrt::BXDF:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BXDF (const RGBColor &s, const RGBColor &d, const RGBColor &t, const BXDFType &bt)
virtual ~BXDF ()
virtual RGBColor eval (const Vec3D &wOut, const Vec3D &wInc, const Vec3D &normal) const =0
virtual RGBColor evalDiffuse (const Vec3D &wOut, const Vec3D &wInc, const Vec3D &normal) const =0
virtual RGBColor evalSpecular (const Vec3D &wOut, const Vec3D &wInc, const Vec3D &normal) const =0
virtual bool specular () const =0
virtual bool glossy () const =0
virtual bool diffuse () const =0
virtual bool fresnel () const =0
const RGBColorgetKs () const
const RGBColorgetKd () const
const RGBColorgetKt () const

Public Attributes

const BXDFType type

Protected Attributes

RGBColor ks
RGBColor kd
RGBColor kt


Detailed Description

An abstract class for BRDFs and BTDFs. BTDFs seem to be very rarely described anywhere, mostly BRDFs seem to be used for them, or a general fresnel description is used.

Definition at line 17 of file BXDF.h.


Constructor & Destructor Documentation

rcrt::BXDF::BXDF ( const RGBColor s,
const RGBColor d,
const RGBColor t,
const BXDFType bt 
)

Definition at line 6 of file BXDF.cpp.

rcrt::BXDF::~BXDF (  )  [virtual]

Definition at line 11 of file BXDF.cpp.


Member Function Documentation

virtual RGBColor rcrt::BXDF::eval ( const Vec3D wOut,
const Vec3D wInc,
const Vec3D normal 
) const [pure virtual]

Implemented in rcrt::CookTorrance, rcrt::Lambertian, and rcrt::Phong.

virtual RGBColor rcrt::BXDF::evalDiffuse ( const Vec3D wOut,
const Vec3D wInc,
const Vec3D normal 
) const [pure virtual]

Implemented in rcrt::CookTorrance, rcrt::Lambertian, and rcrt::Phong.

virtual RGBColor rcrt::BXDF::evalSpecular ( const Vec3D wOut,
const Vec3D wInc,
const Vec3D normal 
) const [pure virtual]

Implemented in rcrt::CookTorrance, rcrt::Lambertian, and rcrt::Phong.

virtual bool rcrt::BXDF::specular (  )  const [pure virtual]

Implemented in rcrt::CookTorrance, rcrt::Lambertian, and rcrt::Phong.

virtual bool rcrt::BXDF::glossy (  )  const [pure virtual]

Implemented in rcrt::CookTorrance, rcrt::Lambertian, and rcrt::Phong.

virtual bool rcrt::BXDF::diffuse (  )  const [pure virtual]

Implemented in rcrt::CookTorrance, rcrt::Lambertian, and rcrt::Phong.

virtual bool rcrt::BXDF::fresnel (  )  const [pure virtual]

Implemented in rcrt::CookTorrance, rcrt::Lambertian, and rcrt::Phong.

const RGBColor & rcrt::BXDF::getKs (  )  const

Definition at line 15 of file BXDF.cpp.

References ks.

const RGBColor & rcrt::BXDF::getKd (  )  const

Definition at line 20 of file BXDF.cpp.

References kd.

const RGBColor & rcrt::BXDF::getKt (  )  const

Definition at line 25 of file BXDF.cpp.

References kt.


Member Data Documentation

RGBColor rcrt::BXDF::ks [protected]

Definition at line 20 of file BXDF.h.

Referenced by rcrt::Phong::evalSpecular(), rcrt::CookTorrance::evalSpecular(), and getKs().

RGBColor rcrt::BXDF::kd [protected]

Definition at line 21 of file BXDF.h.

Referenced by rcrt::Phong::eval(), rcrt::Lambertian::eval(), rcrt::CookTorrance::eval(), rcrt::Phong::evalDiffuse(), rcrt::Lambertian::evalDiffuse(), rcrt::CookTorrance::evalDiffuse(), and getKd().

RGBColor rcrt::BXDF::kt [protected]

Definition at line 22 of file BXDF.h.

Referenced by getKt().

const BXDFType rcrt::BXDF::type

Definition at line 40 of file BXDF.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 31 19:32:19 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3