Public Types | |
typedef PointKDTree< Photon > | PhotonMap |
Photon map data structure. | |
Public Types inherited from NoriObject | |
enum | EClassType { EScene = 0 , EMesh , ETexture , EBSDF , EPhaseFunction , EEmitter , EMedium , ECamera , EIntegrator , ESampler , ETest , EReconstructionFilter , EClassTypeCount } |
Public Member Functions | |
PhotonMapper (const PropertyList &props) | |
virtual void | preprocess (const Scene *scene) override |
Perform an (optional) preprocess step. | |
virtual Color3f | Li (const Scene *scene, Sampler *sampler, const Ray3f &_ray) const override |
Sample the incident radiance along a ray. More... | |
virtual std::string | toString () const override |
Return a brief string summary of the instance (for debugging purposes) | |
Public Member Functions inherited from Integrator | |
virtual | ~Integrator () |
Release all memory. | |
virtual EClassType | getClassType () const override |
Return the type of object (i.e. Mesh/BSDF/etc.) provided by this instance. | |
Public Member Functions inherited from NoriObject | |
virtual | ~NoriObject () |
Virtual destructor. | |
virtual void | addChild (NoriObject *child) |
Add a child object to the current instance. More... | |
virtual void | setParent (NoriObject *parent) |
Set the parent object. More... | |
virtual void | activate () |
Perform some action associated with the object. More... | |
void | setIdName (const std::string &name) |
Allow to assign a name to the object. | |
const std::string & | getIdName () const |
Additional Inherited Members | |
Static Public Member Functions inherited from NoriObject | |
static std::string | classTypeName (EClassType type) |
Turn a class type into a human-readable string. | |
Protected Attributes inherited from NoriObject | |
std::string | m_idname |
Definition at line 28 of file photonmapper.cpp.
|
inlineoverridevirtual |
Sample the incident radiance along a ray.
scene | A pointer to the underlying scene |
sampler | A pointer to a sample generator |
ray | The ray in question |
Implements Integrator.
Definition at line 71 of file photonmapper.cpp.