PhotonIntegrator Class Reference

Inheritance diagram for PhotonIntegrator:

SurfaceIntegrator Integrator

List of all members.

Public Member Functions

 PhotonIntegrator (int ncaus, int ndir, int nindir, int nLookup, int mdepth, float maxdist, bool finalGather, int gatherSamples, bool directWithPhotons)
 ~PhotonIntegrator ()
Spectrum Li (const Scene *scene, const RayDifferential &ray, const Sample *sample, float *alpha) const
void RequestSamples (Sample *sample, const Scene *scene)
void Preprocess (const Scene *)

Static Private Member Functions

static bool unsuccessful (int needed, int found, int shot)
static Spectrum LPhoton (KdTree< Photon, PhotonProcess > *map, int nPaths, int nLookup, BSDF *bsdf, const Intersection &isect, const Vector &w, float maxDistSquared)

Private Attributes

u_int nCausticPhotons
u_int nIndirectPhotons
u_int nDirectPhotons
u_int nLookup
int specularDepth
int maxSpecularDepth
float maxDistSquared
bool directWithPhotons
bool finalGather
int gatherSamples
int * lightSampleOffset
int lightNumOffset
int * bsdfSampleOffset
int * bsdfComponentOffset
int gatherSampleOffset
int gatherComponentOffset
int nCausticPaths
int nDirectPaths
int nIndirectPaths
KdTree< Photon, PhotonProcess > * causticMap
KdTree< Photon, PhotonProcess > * directMap
KdTree< Photon, PhotonProcess > * indirectMap


Detailed Description

Definition at line 35 of file photonmap.cpp.


Constructor & Destructor Documentation

PhotonIntegrator::PhotonIntegrator ( int  ncaus,
int  ndir,
int  nindir,
int  nLookup,
int  mdepth,
float  maxdist,
bool  finalGather,
int  gatherSamples,
bool  directWithPhotons 
)

PhotonIntegrator::~PhotonIntegrator (  ) 

Definition at line 120 of file photonmap.cpp.

References causticMap, directMap, and indirectMap.


Member Function Documentation

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

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

void PhotonIntegrator::Preprocess ( const Scene scene  )  [virtual]

static bool PhotonIntegrator::unsuccessful ( int  needed,
int  found,
int  shot 
) [inline, static, private]

Definition at line 48 of file photonmap.cpp.

Referenced by Preprocess().

Spectrum PhotonIntegrator::LPhoton ( KdTree< Photon, PhotonProcess > *  map,
int  nPaths,
int  nLookup,
BSDF bsdf,
const Intersection isect,
const Vector w,
float  maxDistSquared 
) [static, private]


Member Data Documentation

Definition at line 56 of file photonmap.cpp.

Referenced by PhotonIntegrator(), and Preprocess().

Definition at line 56 of file photonmap.cpp.

Referenced by PhotonIntegrator(), and Preprocess().

Definition at line 56 of file photonmap.cpp.

Referenced by PhotonIntegrator(), and Preprocess().

Definition at line 57 of file photonmap.cpp.

Referenced by Li(), and PhotonIntegrator().

int PhotonIntegrator::specularDepth [mutable, private]

Definition at line 58 of file photonmap.cpp.

Referenced by Li(), and PhotonIntegrator().

Definition at line 59 of file photonmap.cpp.

Referenced by Li(), and PhotonIntegrator().

Definition at line 60 of file photonmap.cpp.

Referenced by Li(), and PhotonIntegrator().

Definition at line 61 of file photonmap.cpp.

Referenced by Li(), and PhotonIntegrator().

Definition at line 61 of file photonmap.cpp.

Referenced by Li(), PhotonIntegrator(), and RequestSamples().

Definition at line 62 of file photonmap.cpp.

Referenced by Li(), PhotonIntegrator(), and RequestSamples().

Definition at line 64 of file photonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 64 of file photonmap.cpp.

Referenced by RequestSamples().

Definition at line 65 of file photonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 65 of file photonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 66 of file photonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 66 of file photonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 67 of file photonmap.cpp.

Referenced by Li(), and Preprocess().

Definition at line 67 of file photonmap.cpp.

Referenced by Li(), and Preprocess().

Definition at line 67 of file photonmap.cpp.

Referenced by Li(), and Preprocess().

Definition at line 68 of file photonmap.cpp.

Referenced by Li(), PhotonIntegrator(), Preprocess(), and ~PhotonIntegrator().

Definition at line 69 of file photonmap.cpp.

Referenced by Li(), PhotonIntegrator(), Preprocess(), and ~PhotonIntegrator().

Definition at line 70 of file photonmap.cpp.

Referenced by Li(), PhotonIntegrator(), Preprocess(), and ~PhotonIntegrator().


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

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