![]() |
Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
#include <film.h>
Public Member Functions | |
| LM_ASSET_INTERFACE_DEF ("film","films") | |
| LM_ASSET_NO_DEPENDENCIES () | |
| virtual int | Width () const =0 |
| virtual int | Height () const =0 |
| virtual void | RecordContribution (const Math::Vec2 &rasterPos, const Math::Vec3 &contrb)=0 |
| virtual void | AccumulateContribution (const Math::Vec2 &rasterPos, const Math::Vec3 &contrb)=0 |
| virtual void | AccumulateContribution (const Film &film)=0 |
| virtual void | Rescale (const Math::Float &weight)=0 |
| virtual Film * | Clone () const =0 |
| virtual void | Clear ()=0 |
Public Member Functions inherited from Asset | |
| virtual bool | Load (const ConfigNode &node, const Assets &assets)=0 |
| LM_PUBLIC_API std::string | ID () const |
| LM_HIDDEN_API void | SetID (const std::string &id) |
Public Member Functions inherited from Component | |
| virtual std::string | ComponentInterfaceTypeName () const =0 |
| virtual std::string | ComponentImplTypeName () const =0 |
Public Member Functions inherited from SIMDAlignedType | |
| void * | operator new (std::size_t size) throw (std::bad_alloc) |
| void | operator delete (void *p) |
Film. A base class of the films. The class is used to rendered images equipped with cameras.
|
pure virtual |
Accumulate the contribution to the raster position. This function accumulates #contrb to the position specified by #rasterPos.
| rasterPos | Raster position. |
| contrb | Contribution. |
Implemented in HDRBitmapFilm, LDRBitmapFilm, and StubFilm.
|
pure virtual |
Accumulate the contribution to the entire film. This function accumulates the contribution of the other film. The other film must be same size and type.
| film | Other film. |
Implemented in HDRBitmapFilm, LDRBitmapFilm, and StubFilm.
|
pure virtual |
|
pure virtual |
Get the height of the film.
Implemented in HDRBitmapFilm, LDRBitmapFilm, and StubFilm.
|
pure virtual |
Record the contribution to the raster position. This function records #contrb to the position specified by #rasterPos.
| rasterPos | Raster position. |
| contrb | Contribution. |
Implemented in HDRBitmapFilm, LDRBitmapFilm, and StubFilm.
|
pure virtual |
Rescale the pixel values by constant weight.
| weight | Rescaling weight. |
Implemented in HDRBitmapFilm, LDRBitmapFilm, and StubFilm.
|
pure virtual |
Get the width of the film.
Implemented in HDRBitmapFilm, LDRBitmapFilm, and StubFilm.
1.8.8