lux::DirectLighting Class Reference

#include <directlighting.h>

Inheritance diagram for lux::DirectLighting:

lux::SurfaceIntegrator lux::Integrator

List of all members.

Public Types

enum  LightStrategy { SAMPLE_ALL_UNIFORM, SAMPLE_ONE_UNIFORM, SAMPLE_AUTOMATIC }

Public Member Functions

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

Static Public Member Functions

static SurfaceIntegratorCreateSurfaceIntegrator (const ParamSet &params)

Private Member Functions

SWCSpectrum LiInternal (const Scene *scene, const RayDifferential &ray, const Sample *sample, float *alpha, int rayDepth) const

Private Attributes

LightStrategy lightStrategy
int maxDepth
int sampleOffset


Detailed Description

Definition at line 34 of file directlighting.h.


Member Enumeration Documentation

Enumerator:
SAMPLE_ALL_UNIFORM 
SAMPLE_ONE_UNIFORM 
SAMPLE_AUTOMATIC 

Definition at line 37 of file directlighting.h.


Constructor & Destructor Documentation

DirectLighting::DirectLighting ( LightStrategy  ls,
int  md 
)

Definition at line 31 of file directlighting.cpp.

References lightStrategy, and maxDepth.

Referenced by CreateSurfaceIntegrator().

lux::DirectLighting::~DirectLighting (  )  [inline]

Definition at line 43 of file directlighting.h.


Member Function Documentation

SurfaceIntegrator * DirectLighting::CreateSurfaceIntegrator ( const ParamSet params  )  [static]

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

SWCSpectrum DirectLighting::LiInternal ( const Scene scene,
const RayDifferential ray,
const Sample sample,
float *  alpha,
int  rayDepth 
) const [private]

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


Member Data Documentation

Definition at line 56 of file directlighting.h.

Referenced by DirectLighting(), LiInternal(), and RequestSamples().

Definition at line 60 of file directlighting.h.

Referenced by LiInternal(), and RequestSamples().


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

Generated on Fri Jul 24 11:52:04 2009 for lux by  doxygen 1.5.9