Photon Engine 2.0.0-beta
A physically based renderer.
|
A camera film that receives any quantity. More...
#include <Film.h>
Public Member Functions | |
Film () | |
Film (int64 actualWidthPx, int64 actualHeightPx) | |
Film (int64 actualWidthPx, int64 actualHeightPx, const math::TAABB2D< int64 > &effectiveWindowPx) | |
Film (Film &&other)=default | |
Film & | operator= (Film &&other)=default |
virtual | ~Film ()=default |
virtual void | clear ()=0 |
Set all pixel data to its initial state. | |
virtual void | setActualResPx (const math::TVector2< int64 > &actualResPx) |
Set the apparent size of the film. If only a sub-region of the film is going to be used, set the effective window accordingly may improve performance especially in memory usage. | |
virtual void | setEffectiveWindowPx (const math::TAABB2D< int64 > &effectiveWindow) |
Set the region where the film will be used. Implementation is advised to take advantage of this and only allocate memory for the part within the effective window. | |
void | develop (HdrRgbFrame &out_frame) const |
void | develop (HdrRgbFrame &out_frame, const math::TAABB2D< int64 > ®ionPx) const |
const math::TVector2< int64 > & | getActualResPx () const |
math::TVector2< int64 > | getEffectiveResPx () const |
const math::TAABB2D< int64 > & | getEffectiveWindowPx () const |
A camera film that receives any quantity.
ph::Film::Film | ( | ) |
ph::Film::Film | ( | int64 | actualWidthPx, |
int64 | actualHeightPx ) |
ph::Film::Film | ( | int64 | actualWidthPx, |
int64 | actualHeightPx, | ||
const math::TAABB2D< int64 > & | effectiveWindowPx ) |
|
default |
|
virtualdefault |
|
pure virtual |
Set all pixel data to its initial state.
Implemented in ph::HdrRgbFilm, ph::TSamplingFilm< Sample >, ph::TSamplingFilm< math::Spectrum >, ph::TSamplingFilm< math::Vector3R >, ph::TSamplingFilm< ph::math::TTristimulusSpectrum >, and ph::Vector3Film.
void ph::Film::develop | ( | HdrRgbFrame & | out_frame | ) | const |
void ph::Film::develop | ( | HdrRgbFrame & | out_frame, |
const math::TAABB2D< int64 > & | regionPx ) const |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Set the apparent size of the film. If only a sub-region of the film is going to be used, set the effective window accordingly may improve performance especially in memory usage.
|
inlinevirtual |
Set the region where the film will be used. Implementation is advised to take advantage of this and only allocate memory for the part within the effective window.
Reimplemented in ph::HdrRgbFilm, ph::TSamplingFilm< Sample >, ph::TSamplingFilm< math::Spectrum >, ph::TSamplingFilm< math::Vector3R >, ph::TSamplingFilm< ph::math::TTristimulusSpectrum >, and ph::Vector3Film.