Public Member Functions | |
ComputeRadianceTask (ProgressReporter &prog, uint32_t tn, uint32_t nt, vector< RadiancePhoton > &rps, const vector< Spectrum > &rhor, const vector< Spectrum > &rhot, uint32_t nlookup, float md2, int ndirect, KdTree< Photon > *direct, int nindirect, KdTree< Photon > *indirect, int ncaus, KdTree< Photon > *caustic) | |
void | Run () |
Private Attributes | |
ProgressReporter & | progress |
uint32_t | taskNum |
uint32_t | numTasks |
vector< RadiancePhoton > & | radiancePhotons |
const vector< Spectrum > & | rpReflectances |
const vector< Spectrum > & | rpTransmittances |
uint32_t | nLookup |
float | maxDistSquared |
int | nDirectPaths |
int | nIndirectPaths |
int | nCausticPaths |
KdTree< Photon > * | directMap |
KdTree< Photon > * | indirectMap |
KdTree< Photon > * | causticMap |
Definition at line 90 of file photonmap.cpp.
ComputeRadianceTask::ComputeRadianceTask | ( | ProgressReporter & | prog, | |
uint32_t | tn, | |||
uint32_t | nt, | |||
vector< RadiancePhoton > & | rps, | |||
const vector< Spectrum > & | rhor, | |||
const vector< Spectrum > & | rhot, | |||
uint32_t | nlookup, | |||
float | md2, | |||
int | ndirect, | |||
KdTree< Photon > * | direct, | |||
int | nindirect, | |||
KdTree< Photon > * | indirect, | |||
int | ncaus, | |||
KdTree< Photon > * | caustic | |||
) | [inline] |
Definition at line 92 of file photonmap.cpp.
void ComputeRadianceTask::Run | ( | ) | [virtual] |
Implements Task.
Definition at line 577 of file photonmap.cpp.
References Assert, causticMap, directMap, EPhoton(), indirectMap, INV_PI, CoefficientSpectrum< nSamples >::IsBlack(), RadiancePhoton::Lo, maxDistSquared, RadiancePhoton::n, nCausticPaths, nDirectPaths, nIndirectPaths, nLookup, numTasks, RadiancePhoton::p, progress, radiancePhotons, rpReflectances, rpTransmittances, taskNum, and ProgressReporter::Update().
KdTree<Photon> * ComputeRadianceTask::causticMap [private] |
Definition at line 114 of file photonmap.cpp.
Referenced by Run().
KdTree<Photon>* ComputeRadianceTask::directMap [private] |
Definition at line 114 of file photonmap.cpp.
Referenced by Run().
KdTree<Photon> * ComputeRadianceTask::indirectMap [private] |
Definition at line 114 of file photonmap.cpp.
Referenced by Run().
float ComputeRadianceTask::maxDistSquared [private] |
Definition at line 112 of file photonmap.cpp.
Referenced by Run().
int ComputeRadianceTask::nCausticPaths [private] |
Definition at line 113 of file photonmap.cpp.
Referenced by Run().
int ComputeRadianceTask::nDirectPaths [private] |
Definition at line 113 of file photonmap.cpp.
Referenced by Run().
int ComputeRadianceTask::nIndirectPaths [private] |
Definition at line 113 of file photonmap.cpp.
Referenced by Run().
uint32_t ComputeRadianceTask::nLookup [private] |
Definition at line 111 of file photonmap.cpp.
Referenced by Run().
uint32_t ComputeRadianceTask::numTasks [private] |
Definition at line 108 of file photonmap.cpp.
Referenced by Run().
ProgressReporter& ComputeRadianceTask::progress [private] |
Definition at line 107 of file photonmap.cpp.
Referenced by Run().
vector<RadiancePhoton>& ComputeRadianceTask::radiancePhotons [private] |
Definition at line 109 of file photonmap.cpp.
Referenced by Run().
const vector<Spectrum>& ComputeRadianceTask::rpReflectances [private] |
Definition at line 110 of file photonmap.cpp.
Referenced by Run().
const vector<Spectrum> & ComputeRadianceTask::rpTransmittances [private] |
Definition at line 110 of file photonmap.cpp.
Referenced by Run().
uint32_t ComputeRadianceTask::taskNum [private] |
Definition at line 108 of file photonmap.cpp.
Referenced by Run().