20template<
typename Sample>
71 void setSoftEdge(
bool useSoftEdge, float32 softness = 1.0f);
82 void updateSampleDimensions();
A camera film that receives any quantity.
Definition Film.h:17
An image reconstruction kernel.
Definition SampleFilter.h:17
A camera film that receives any quantity, for sampling-based rendering techniques.
Definition TSamplingFilm.h:22
void clear() override=0
Set all pixel data to its initial state.
virtual void setPixel(float64 xPx, float64 yPx, const Sample &sample)=0
Let the pixel developes to the specified sample value. An interface for using the film as an ordinary...
const SampleFilter & getFilter() const
Definition TSamplingFilm.ipp:72
void setSoftEdge(bool useSoftEdge, float32 softness=1.0f)
Whether to increase the sampling window converage for prettier boundaries in developed frame....
Definition TSamplingFilm.ipp:63
math::TVector2< float64 > getSampleResPx() const
Definition TSamplingFilm.ipp:78
virtual void addSample(float64 xPx, float64 yPx, const Sample &sample)=0
Applies filter to sample value and add to the film. Generally, this method can produce higher quality...
bool isSoftEdged() const
Definition TSamplingFilm.ipp:97
const math::TAABB2D< float64 > & getSampleWindowPx() const
Definition TSamplingFilm.ipp:84
void setEffectiveWindowPx(const math::TAABB2D< int64 > &effectiveWindow) override
Set the region where the film will be used. Implementation is advised to take advantage of this and o...
Definition TSamplingFilm.ipp:55
SamplingFilmDimensions getDimensions() const
Definition TSamplingFilm.ipp:91
A 2-D Axis-Aligned Bounding Box (AABB).
Definition TAABB2D.h:26
Represents a 2-D vector.
Definition TVector2.h:19
The root for all renderer implementations.
Definition EEngineProject.h:6
Definition SamplingFilmDimensions.h:12