Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::PartialRayEnergyEstimator Class Referenceabstract

#include <PartialRayEnergyEstimator.h>

Inheritance diagram for ph::PartialRayEnergyEstimator:
ph::IRayEnergyEstimator ph::TIRayEstimator< math::Spectrum > ph::BVPTDLEstimator

Public Member Functions

void update (const Integrand &integrand) override=0
 
void estimate (const Ray &ray, const Integrand &integrand, SampleFlow &sampleFlow, EnergyEstimation &out_estimation) const override=0
 
void mapAttributeToEstimation (std::size_t attributeId, std::size_t estimationIndex) override
 
void setEstimationIndex (std::size_t index)
 
std::string toString () const override
 
- Public Member Functions inherited from ph::TIRayEstimator< math::Spectrum >
virtual ~TIRayEstimator ()=default
 
virtual void estimate (const Ray &ray, const Integrand &integrand, SampleFlow &sampleFlow, TEstimationArray< math::Spectrum > &out_estimation) const=0
 

Protected Attributes

std::size_t m_estimationIndex
 

Additional Inherited Members

- Public Types inherited from ph::IRayEnergyEstimator
using EnergyEstimation = TEstimationArray<math::Spectrum>
 

Member Function Documentation

◆ estimate()

void ph::PartialRayEnergyEstimator::estimate ( const Ray & ray,
const Integrand & integrand,
SampleFlow & sampleFlow,
EnergyEstimation & out_estimation ) const
overridepure virtual

Implements ph::IRayEnergyEstimator.

Implemented in ph::BVPTDLEstimator.

◆ mapAttributeToEstimation()

void ph::PartialRayEnergyEstimator::mapAttributeToEstimation ( std::size_t attributeId,
std::size_t estimationIndex )
inlineoverridevirtual

◆ setEstimationIndex()

void ph::PartialRayEnergyEstimator::setEstimationIndex ( std::size_t index)
inline

◆ toString()

std::string ph::PartialRayEnergyEstimator::toString ( ) const
inlineoverridevirtual

Reimplemented from ph::IRayEnergyEstimator.

◆ update()

void ph::PartialRayEnergyEstimator::update ( const Integrand & integrand)
overridepure virtual

Implements ph::IRayEnergyEstimator.

Implemented in ph::BVPTDLEstimator.

Member Data Documentation

◆ m_estimationIndex

std::size_t ph::PartialRayEnergyEstimator::m_estimationIndex
protected

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