8#include <Common/primitive_type.h>
38 void clear()
override;
70 void clearRadianceSensors();
71 void resizeRadianceSensorBuffer();
73 std::vector<RadianceSensor> m_pixelRadianceSensors;
93inline void HdrRgbFilm::clearRadianceSensors()
95 std::fill(m_pixelRadianceSensors.begin(), m_pixelRadianceSensors.end(),
RadianceSensor());
98inline void HdrRgbFilm::resizeRadianceSensorBuffer()
const math::TAABB2D< int64 > & getEffectiveWindowPx() const
Definition Film.h:92
A film that records RGB values internally. Although film samples are added as spectral values,...
Definition HdrRgbFilm.h:21
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 HdrRgbFilm.cpp:241
void setRgbPixel(float64 xPx, float64 yPx, const math::Vector3R &rgb, float64 weight=1)
Set a pixel directly. Filter is not applied when setting a pixel directly (effectively applying a box...
Definition HdrRgbFilm.h:84
void setPixel(float64 xPx, float64 yPx, const math::Spectrum &sample) override
Let the pixel developes to the specified sample value. An interface for using the film as an ordinary...
Definition HdrRgbFilm.cpp:72
void addSample(float64 xPx, float64 yPx, const math::Spectrum &sample) override
Applies filter to sample value and add to the film. Generally, this method can produce higher quality...
Definition HdrRgbFilm.cpp:62
void clear() override
Set all pixel data to its initial state.
Definition HdrRgbFilm.cpp:209
void addRgbSample(float64 xPx, float64 yPx, const math::Vector3R &rgb)
Add a pixel sample.
Definition HdrRgbFilm.h:76
void mergeWith(const HdrRgbFilm &other)
Definition HdrRgbFilm.cpp:214
Definition RadianceSensor.h:11
An image reconstruction kernel.
Definition SampleFilter.h:17
A camera film that receives any quantity, for sampling-based rendering techniques.
Definition TSamplingFilm.h:22
A 2-D Axis-Aligned Bounding Box (AABB).
Definition TAABB2D.h:26
Definition TTristimulusSpectrum.h:11
The root for all renderer implementations.
Definition EEngineProject.h:6