ExPhotonIntegrator Class Reference

Inheritance diagram for ExPhotonIntegrator:

SurfaceIntegrator Integrator

List of all members.

Public Member Functions

 ExPhotonIntegrator (int ncaus, int nindir, int nLookup, int mdepth, float maxdist, bool finalGather, int gatherSamples, float rrt, float ga)
 ~ExPhotonIntegrator ()
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 *)

Private Member Functions

Spectrum estimateE (KdTree< Photon, PhotonProcess > *map, int count, const Point &p, const Normal &n) const

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

int gatherSampleOffset [2]
int gatherComponentOffset [2]
u_int nCausticPhotons
u_int nIndirectPhotons
u_int nLookup
int specularDepth
int maxSpecularDepth
float maxDistSquared
float rrTreshold
bool finalGather
float cosGatherAngle
int gatherSamples
int * lightSampleOffset
int lightNumOffset
int * bsdfSampleOffset
int * bsdfComponentOffset
int nCausticPaths
int nIndirectPaths
KdTree< Photon, PhotonProcess > * causticMap
KdTree< Photon, PhotonProcess > * indirectMap
KdTree< RadiancePhoton,
RadiancePhotonProcess > * 
radianceMap


Detailed Description

Definition at line 107 of file exphotonmap.cpp.


Constructor & Destructor Documentation

ExPhotonIntegrator::ExPhotonIntegrator ( int  ncaus,
int  nindir,
int  nLookup,
int  mdepth,
float  maxdist,
bool  finalGather,
int  gatherSamples,
float  rrt,
float  ga 
)

ExPhotonIntegrator::~ExPhotonIntegrator (  ) 

Definition at line 266 of file exphotonmap.cpp.

References causticMap, indirectMap, and radianceMap.


Member Function Documentation

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

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

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

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

Definition at line 119 of file exphotonmap.cpp.

Referenced by Preprocess().

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

Spectrum ExPhotonIntegrator::estimateE ( KdTree< Photon, PhotonProcess > *  map,
int  count,
const Point p,
const Normal n 
) const [private]


Member Data Documentation

Definition at line 131 of file exphotonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 131 of file exphotonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 132 of file exphotonmap.cpp.

Referenced by ExPhotonIntegrator(), and Preprocess().

Definition at line 132 of file exphotonmap.cpp.

Referenced by ExPhotonIntegrator(), and Preprocess().

Definition at line 133 of file exphotonmap.cpp.

Referenced by estimateE(), ExPhotonIntegrator(), and Li().

int ExPhotonIntegrator::specularDepth [mutable, private]

Definition at line 134 of file exphotonmap.cpp.

Referenced by ExPhotonIntegrator(), and Li().

Definition at line 135 of file exphotonmap.cpp.

Referenced by ExPhotonIntegrator(), and Li().

Definition at line 136 of file exphotonmap.cpp.

Referenced by estimateE(), ExPhotonIntegrator(), and Li().

Definition at line 136 of file exphotonmap.cpp.

Referenced by CreateSurfaceIntegrator(), and ExPhotonIntegrator().

Definition at line 138 of file exphotonmap.cpp.

Referenced by ExPhotonIntegrator(), and Li().

Definition at line 139 of file exphotonmap.cpp.

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

Definition at line 141 of file exphotonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 141 of file exphotonmap.cpp.

Referenced by RequestSamples().

Definition at line 142 of file exphotonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 142 of file exphotonmap.cpp.

Referenced by Li(), and RequestSamples().

Definition at line 143 of file exphotonmap.cpp.

Referenced by Li(), and Preprocess().

Definition at line 143 of file exphotonmap.cpp.

Referenced by Li(), and Preprocess().

Definition at line 144 of file exphotonmap.cpp.

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

Definition at line 145 of file exphotonmap.cpp.

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

Definition at line 146 of file exphotonmap.cpp.

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


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