PerspectiveBxDF Class Reference

Inheritance diagram for PerspectiveBxDF:
[legend]
Collaboration diagram for PerspectiveBxDF:
[legend]

List of all members.

Public Member Functions

 PerspectiveBxDF (bool lens, float FD, float f, float A, const Point &pL, const Transform &R2C, float xS, float xE, float yS, float yE)
virtual ~PerspectiveBxDF ()
virtual void f (const TsPack *tspack, const Vector &wo, const Vector &wi, SWCSpectrum *const f) const
virtual bool Sample_f (const TsPack *tspack, const Vector &wo, Vector *wi, float u1, float u2, SWCSpectrum *const f, float *pdf, float *pdfBack=NULL, bool reverse=false) const
virtual float Pdf (const TsPack *tspack, const Vector &wi, const Vector &wo) const

Private Attributes

bool hasLens
float FocalDistance
float fov
float xStart
float xEnd
float yStart
float yEnd
float Area
Point p
const TransformRasterToCamera

Detailed Description

Definition at line 41 of file perspective.cpp.


Constructor & Destructor Documentation

PerspectiveBxDF::PerspectiveBxDF ( bool  lens,
float  FD,
float  f,
float  A,
const Point pL,
const Transform R2C,
float  xS,
float  xE,
float  yS,
float  yE 
) [inline]

Definition at line 44 of file perspective.cpp.

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

Definition at line 50 of file perspective.cpp.


Member Function Documentation

virtual void PerspectiveBxDF::f ( const TsPack tspack,
const Vector wo,
const Vector wi,
SWCSpectrum *const   f 
) const [inline, virtual]
virtual float PerspectiveBxDF::Pdf ( const TsPack tspack,
const Vector wi,
const Vector wo 
) const [inline, virtual]
virtual bool PerspectiveBxDF::Sample_f ( const TsPack tspack,
const Vector wo,
Vector wi,
float  u1,
float  u2,
SWCSpectrum *const   f,
float *  pdf,
float *  pdfBack = NULL,
bool  reverse = false 
) const [inline, virtual]

Samples the BxDF. Returns the result of the BxDF for the sampled direction in f.

Reimplemented from lux::BxDF.

Definition at line 67 of file perspective.cpp.

References Area, cimg_library::cos(), FocalDistance, hasLens, if(), lux::Normalize(), p, RasterToCamera, lux::Point::x, lux::Vector::y, lux::Point::y, lux::Vector::z, lux::Normal::z, and lux::Point::z.


Member Data Documentation

float PerspectiveBxDF::Area [private]

Definition at line 105 of file perspective.cpp.

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

Definition at line 105 of file perspective.cpp.

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

float PerspectiveBxDF::fov [private]

Definition at line 105 of file perspective.cpp.

bool PerspectiveBxDF::hasLens [private]

Definition at line 104 of file perspective.cpp.

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

Definition at line 106 of file perspective.cpp.

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

Definition at line 107 of file perspective.cpp.

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

float PerspectiveBxDF::xEnd [private]

Definition at line 105 of file perspective.cpp.

Referenced by f(), and Pdf().

float PerspectiveBxDF::xStart [private]

Definition at line 105 of file perspective.cpp.

Referenced by f(), and Pdf().

float PerspectiveBxDF::yEnd [private]

Definition at line 105 of file perspective.cpp.

Referenced by f(), and Pdf().

float PerspectiveBxDF::yStart [private]

Definition at line 105 of file perspective.cpp.

Referenced by f(), and Pdf().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208