The spica renderer
Public Member Functions | Protected Member Functions | List of all members
spica::HDRFilm Class Reference
Inheritance diagram for spica::HDRFilm:
spica::Film spica::CObject spica::Uncopyable

Public Member Functions

 HDRFilm (const Point2i &resolution, const std::shared_ptr< Filter > &filter, const std::string &filename, const std::shared_ptr< std::function< void(const Image &)>> &callback=nullptr)
 
 HDRFilm (RenderParams &params)
 
- Public Member Functions inherited from spica::Film
 Film (const Point2i &resolution, const std::shared_ptr< Filter > &filter, const std::string &filename, const std::shared_ptr< std::function< void(const Image &)>> &callback=nullptr)
 
Point2i resolution () const
 
double aspect () const
 
void save (int id=0) const
 Save the result by dividing sum(w * I) by sum(w). More...
 
void saveMLT (double scale, int id=0) const
 Save the result by computing, (sum(w * I) * ns / (sum(w)), where ns is number of samples generated for a pixel. More...
 
void setImage (const Image &image)
 
void addPixel (const Point2i &pixel, const Point2d &pInPixel, const Spectrum &color)
 
void addPixel (const Point2d &pixel, const Spectrum &color)
 
void setFilename (const std::string filename)
 
void setSaveCallback (std::unique_ptr< std::function< void(const Image &)>> &&callback)
 
double weight (const Point2d &pixel) const
 

Protected Member Functions

void saveImage (const std::string &filename, const Image &image) const override
 

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