19 #if !defined(__NORI_SAMPLER_H)
20 #define __NORI_SAMPLER_H
22 #include <nori/object.h>
69 virtual std::unique_ptr<Sampler>
clone()
const = 0;
107 size_t m_sampleCount;
Weighted pixel storage for a rectangular subregion of an image.
Base class of all objects.
Abstract sample generator.
virtual void prepare(const ImageBlock &block)=0
Prepare to render a new image block.
virtual std::unique_ptr< Sampler > clone() const =0
Create an exact clone of the current instance.
virtual float next1D()=0
Retrieve the next component value from the current sample.
virtual EClassType getClassType() const override
Return the type of object (i.e. Mesh/Sampler/etc.) provided by this instance.
virtual void advance()=0
Advance to the next sample.
virtual Point2f next2D()=0
Retrieve the next two component values from the current sample.
virtual size_t getSampleCount() const
Return the number of configured pixel samples.
virtual void generate()=0
Prepare to generate new samples.
virtual ~Sampler()
Release all memory.