SkyPortalBxDF Class Reference

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

List of all members.

Public Member Functions

 SkyPortalBxDF (const SkyLight &sky, const Transform &WL, const Vector &x, const Vector &y, const Vector &z, const Point &p, const vector< boost::shared_ptr< Primitive > > &portalList, u_int portal, float u)
virtual ~SkyPortalBxDF ()
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 void f (const TsPack *tspack, const Vector &wo, const Vector &wi, SWCSpectrum *const f) const
virtual float Pdf (const TsPack *tspack, const Vector &wi, const Vector &wo) const

Private Attributes

const SkyLightskyLight
const TransformWorldToLight
Vector X
Vector Y
Vector Z
Point ps
const vector
< boost::shared_ptr< Primitive > > & 
PortalShapes
u_int shapeIndex
float u3

Detailed Description

Definition at line 57 of file sky.cpp.


Constructor & Destructor Documentation

SkyPortalBxDF::SkyPortalBxDF ( const SkyLight sky,
const Transform WL,
const Vector x,
const Vector y,
const Vector z,
const Point p,
const vector< boost::shared_ptr< Primitive > > &  portalList,
u_int  portal,
float  u 
) [inline]

Definition at line 60 of file sky.cpp.

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

Definition at line 61 of file sky.cpp.


Member Function Documentation

virtual void SkyPortalBxDF::f ( const TsPack tspack,
const Vector wo,
const Vector wi,
SWCSpectrum *const   f 
) const [inline, virtual]

Evaluates the BxDF. Accumulates the result in the f parameter.

Implements lux::BxDF.

Definition at line 93 of file sky.cpp.

References lux::SkyLight::GetSkySpectralRadiance(), lux::Normalize(), skyLight, lux::SphericalPhi(), lux::SphericalTheta(), WorldToLight, X, lux::Vector::x, Y, lux::Vector::y, Z, and lux::Vector::z.

virtual float SkyPortalBxDF::Pdf ( const TsPack tspack,
const Vector wi,
const Vector wo 
) const [inline, virtual]
virtual bool SkyPortalBxDF::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]

Member Data Documentation

const vector<boost::shared_ptr<Primitive> >& SkyPortalBxDF::PortalShapes [private]

Definition at line 120 of file sky.cpp.

Referenced by Pdf(), and Sample_f().

Definition at line 119 of file sky.cpp.

Referenced by Pdf(), and Sample_f().

Definition at line 121 of file sky.cpp.

Referenced by Sample_f().

Definition at line 116 of file sky.cpp.

Referenced by f(), and Sample_f().

float SkyPortalBxDF::u3 [private]

Definition at line 122 of file sky.cpp.

Referenced by Sample_f().

Definition at line 117 of file sky.cpp.

Referenced by f(), and Sample_f().

Definition at line 118 of file sky.cpp.

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

Definition at line 118 of file sky.cpp.

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

Definition at line 118 of file sky.cpp.

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


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