Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
Public Member Functions | |
LM_COMPONENT_IMPL_DEF ("hdr") | |
virtual bool | Load (const ConfigNode &node, const Assets &assets) override |
virtual int | Width () const override |
virtual int | Height () const override |
virtual void | RecordContribution (const Math::Vec2 &rasterPos, const Math::Vec3 &contrb) override |
virtual void | AccumulateContribution (const Math::Vec2 &rasterPos, const Math::Vec3 &contrb) override |
virtual void | AccumulateContribution (const Film &film) override |
virtual void | Rescale (const Math::Float &weight) override |
virtual Film * | Clone () const override |
virtual void | Clear () override |
virtual bool | Save (const std::string &path) const override |
virtual bool | RescaleAndSave (const std::string &path, const Math::Float &weight) const override |
virtual void | Allocate (int width, int height) override |
virtual void | SetImageType (BitmapImageType type) override |
virtual BitmapImageType | ImageType () const override |
virtual BitmapImage & | Bitmap () override |
Public Member Functions inherited from Film | |
LM_ASSET_INTERFACE_DEF ("film","films") | |
LM_ASSET_NO_DEPENDENCIES () | |
Public Member Functions inherited from Asset | |
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) |
Static Public Member Functions | |
static void | FreeImageErrorCallback (FREE_IMAGE_FORMAT fif, const char *message) |
High dynamic range bitmap film. Implements HDR version of bitmap image recording.
|
overridevirtual |
Accumulate the contribution to the raster position. This function accumulates #contrb to the position specified by #rasterPos.
rasterPos | Raster position. |
contrb | Contribution. |
Implements Film.
|
overridevirtual |
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. |
Implements Film.
|
overridevirtual |
Allocate the film with given width and height.
width | Width of the film. |
height | Height of the film. |
Implements BitmapFilm.
|
inlineoverridevirtual |
|
overridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
Load an asset. Configure and initialize the asset by the XML elements given by #node. Some assets have references to the other assets, so #assets is also required. Dependent asset must be loaded beforehand.
node | XML node for the configuration. |
assets | Asset manager. |
true | Succeeded to load. |
false | Failed to load. |
Implements Asset.
|
overridevirtual |
Record the contribution to the raster position. This function records #contrb to the position specified by #rasterPos.
rasterPos | Raster position. |
contrb | Contribution. |
Implements Film.
|
overridevirtual |
|
overridevirtual |
Rescale and save as image. Save the film as image after rescaling values for each pixel.
path | Path to the output image. |
weight | Rescaling weight. |
true | Succeeded to save the image. |
false | Failed to save the image. |
Implements BitmapFilm.
|
inlineoverridevirtual |
Save as image. Saves the film as image. If #path is empty, the default path is used.
path | Path to the output image. |
true | Succeeded to save the image. |
false | Failed to save the image. |
Implements BitmapFilm.
|
inlineoverridevirtual |
|
inlineoverridevirtual |