Nori  24
PhotonMapper Class Reference
Inheritance diagram for PhotonMapper:
Collaboration diagram for PhotonMapper:

Public Types

typedef PointKDTree< PhotonPhotonMap
 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
 

Detailed Description

Definition at line 28 of file photonmapper.cpp.

Member Function Documentation

◆ Li()

virtual Color3f PhotonMapper::Li ( const Scene scene,
Sampler sampler,
const Ray3f ray 
) const
inlineoverridevirtual

Sample the incident radiance along a ray.

Parameters
sceneA pointer to the underlying scene
samplerA pointer to a sample generator
rayThe ray in question
Returns
A (usually) unbiased estimate of the radiance in this direction

Implements Integrator.

Definition at line 71 of file photonmapper.cpp.


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