DirectLighting Class Reference

Inheritance diagram for DirectLighting:

SurfaceIntegrator Integrator

List of all members.

Public Member Functions

 DirectLighting (LightStrategy ls, int md)
 ~DirectLighting ()
Spectrum Li (const Scene *scene, const RayDifferential &ray, const Sample *sample, float *alpha) const
void RequestSamples (Sample *sample, const Scene *scene)

Private Attributes

LightStrategy strategy
int rayDepth
int maxDepth
int * lightSampleOffset
int lightNumOffset
int * bsdfSampleOffset
int * bsdfComponentOffset
float * avgY
float * avgYsample
float * cdf
float overallAvgY


Detailed Description

Definition at line 32 of file directlighting.cpp.


Constructor & Destructor Documentation

DirectLighting::DirectLighting ( LightStrategy  ls,
int  md 
)

Definition at line 84 of file directlighting.cpp.

References avgY, avgYsample, cdf, maxDepth, overallAvgY, rayDepth, and strategy.

Referenced by CreateSurfaceIntegrator().

DirectLighting::~DirectLighting (  ) 

Definition at line 79 of file directlighting.cpp.

References avgY, avgYsample, and cdf.


Member Function Documentation

Spectrum DirectLighting::Li ( const Scene scene,
const RayDifferential ray,
const Sample sample,
float *  alpha 
) const [virtual]

void DirectLighting::RequestSamples ( Sample sample,
const Scene scene 
) [inline, virtual]


Member Data Documentation

Definition at line 69 of file directlighting.cpp.

Referenced by CreateSurfaceIntegrator(), DirectLighting(), Li(), and RequestSamples().

int DirectLighting::rayDepth [mutable, private]

Definition at line 70 of file directlighting.cpp.

Referenced by DirectLighting(), and Li().

int DirectLighting::maxDepth [private]

Definition at line 71 of file directlighting.cpp.

Referenced by CreateSurfaceIntegrator(), DirectLighting(), and Li().

Definition at line 73 of file directlighting.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 73 of file directlighting.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 74 of file directlighting.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 74 of file directlighting.cpp.

Referenced by Li(), and RequestSamples().

float* DirectLighting::avgY [mutable, private]

Definition at line 75 of file directlighting.cpp.

Referenced by DirectLighting(), Li(), and ~DirectLighting().

float * DirectLighting::avgYsample [mutable, private]

Definition at line 75 of file directlighting.cpp.

Referenced by DirectLighting(), Li(), and ~DirectLighting().

float * DirectLighting::cdf [mutable, private]

Definition at line 75 of file directlighting.cpp.

Referenced by DirectLighting(), Li(), and ~DirectLighting().

float DirectLighting::overallAvgY [mutable, private]

Definition at line 76 of file directlighting.cpp.

Referenced by DirectLighting(), and Li().


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

Generated on Mon Jul 20 17:31:54 2009 for pbrt by  doxygen 1.5.6