PhotonMap::NearestPhotons Class Reference

#include <PhotonMap.h>

List of all members.

Public Member Functions

 NearestPhotons (unsigned n, const Vector3 p, float maxDist, const Photon *pa, unsigned hsp)
 ~NearestPhotons ()
Photonoperator() (int i) const
int numPhotons () const
Vector3 pointLocation () const

Public Attributes

int max
int found
bool gotHeap
float pos [3]
float * dist2
const Photon ** index
const Photonphotons
unsigned halfStoredPhotons


Detailed Description

Priority queue for the nearest photons.

Definition at line 141 of file PhotonMap.h.


Constructor & Destructor Documentation

NearestPhotons unsigned  n,
const Vector3  p,
float  maxDist,
const Photon pa,
unsigned  hsp
[inline]
 

Definition at line 153 of file PhotonMap.h.

References PhotonMap::NearestPhotons::dist2, PhotonMap::NearestPhotons::index, and PhotonMap::NearestPhotons::pos.

~NearestPhotons  )  [inline]
 

Definition at line 163 of file PhotonMap.h.

References PhotonMap::NearestPhotons::dist2, and PhotonMap::NearestPhotons::index.


Member Function Documentation

int numPhotons void   )  const [inline]
 

Definition at line 169 of file PhotonMap.h.

References PhotonMap::NearestPhotons::found.

Referenced by PhotonMap::getIrradiance(), and PhotonMap::getNeighbourhood().

Photon& operator() int  i  )  const [inline]
 

Definition at line 165 of file PhotonMap.h.

References PhotonMap::NearestPhotons::index.

Vector3 pointLocation  )  const [inline]
 

Definition at line 171 of file PhotonMap.h.

References PhotonMap::NearestPhotons::pos.


Member Data Documentation

float* dist2
 

Definition at line 147 of file PhotonMap.h.

Referenced by PhotonMap::_locate_photons(), PhotonMap::NearestPhotons::NearestPhotons(), and PhotonMap::NearestPhotons::~NearestPhotons().

int found
 

Definition at line 144 of file PhotonMap.h.

Referenced by PhotonMap::_locate_photons(), PhotonMap::getIrradiance(), PhotonMap::getNeighbourhood(), and PhotonMap::NearestPhotons::numPhotons().

bool gotHeap
 

Definition at line 145 of file PhotonMap.h.

Referenced by PhotonMap::_locate_photons().

unsigned halfStoredPhotons
 

Definition at line 150 of file PhotonMap.h.

const Photon** index
 

Definition at line 148 of file PhotonMap.h.

Referenced by PhotonMap::_locate_photons(), PhotonMap::NearestPhotons::NearestPhotons(), PhotonMap::NearestPhotons::operator()(), and PhotonMap::NearestPhotons::~NearestPhotons().

int max
 

Definition at line 143 of file PhotonMap.h.

Referenced by PhotonMap::_locate_photons().

const Photon* photons
 

Definition at line 149 of file PhotonMap.h.

Referenced by PhotonMap::_locate_photons().

float pos[3]
 

Definition at line 146 of file PhotonMap.h.

Referenced by PhotonMap::_locate_photons(), PhotonMap::NearestPhotons::NearestPhotons(), and PhotonMap::NearestPhotons::pointLocation().


The documentation for this class was generated from the following file:
Generated on Wed Jun 28 12:24:33 2006 for esg by  doxygen 1.4.6