|
| LM_COMPONENT_IMPL_DEF ("ldr") |
|
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 |
|
| LM_ASSET_INTERFACE_DEF ("film","films") |
|
| LM_ASSET_NO_DEPENDENCIES () |
|
LM_PUBLIC_API std::string | ID () const |
|
LM_HIDDEN_API void | SetID (const std::string &id) |
|
virtual std::string | ComponentInterfaceTypeName () const =0 |
|
virtual std::string | ComponentImplTypeName () const =0 |
|
void * | operator new (std::size_t size) throw (std::bad_alloc) |
|
void | operator delete (void *p) |
|
|
static void | FreeImageErrorCallback (FREE_IMAGE_FORMAT fif, const char *message) |
|
void LDRBitmapFilm::AccumulateContribution |
( |
const Math::Vec2 & |
rasterPos, |
|
|
const Math::Vec3 & |
contrb |
|
) |
| |
|
overridevirtual |
Accumulate the contribution to the raster position. This function accumulates #contrb to the position specified by #rasterPos.
- Parameters
-
rasterPos | Raster position. |
contrb | Contribution. |
Implements Film.
void LDRBitmapFilm::AccumulateContribution |
( |
const Film & |
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.
- Parameters
-
Implements Film.
void LDRBitmapFilm::Allocate |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
overridevirtual |
Allocate the film with given width and height.
- Parameters
-
width | Width of the film. |
height | Height of the film. |
Implements BitmapFilm.
Get internal bitmap data.
- Returns
- A bitmap.
Implements BitmapFilm.
Film * LDRBitmapFilm::Clone |
( |
| ) |
const |
|
overridevirtual |
Clone the film.
- Returns
- Duplicated film.
Implements Film.
virtual int LDRBitmapFilm::Height |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the height of the film.
- Returns
- Height of the film.
Implements Film.
virtual BitmapImageType LDRBitmapFilm::ImageType |
( |
| ) |
const |
|
inlineoverridevirtual |
Get bitmap image type.
- Returns
- Bitmap image type.
Implements BitmapFilm.
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.
- Parameters
-
node | XML node for the configuration. |
assets | Asset manager. |
true | Succeeded to load. |
false | Failed to load. |
Implements Asset.
void LDRBitmapFilm::RecordContribution |
( |
const Math::Vec2 & |
rasterPos, |
|
|
const Math::Vec3 & |
contrb |
|
) |
| |
|
overridevirtual |
Record the contribution to the raster position. This function records #contrb to the position specified by #rasterPos.
- Parameters
-
rasterPos | Raster position. |
contrb | Contribution. |
Implements Film.
void LDRBitmapFilm::Rescale |
( |
const Math::Float & |
weight | ) |
|
|
overridevirtual |
Rescale the pixel values by constant weight.
- Parameters
-
Implements Film.
bool LDRBitmapFilm::RescaleAndSave |
( |
const std::string & |
path, |
|
|
const Math::Float & |
weight |
|
) |
| const |
|
overridevirtual |
Rescale and save as image. Save the film as image after rescaling values for each pixel.
- Parameters
-
path | Path to the output image. |
weight | Rescaling weight. |
- Return values
-
true | Succeeded to save the image. |
false | Failed to save the image. |
Implements BitmapFilm.
virtual bool LDRBitmapFilm::Save |
( |
const std::string & |
path | ) |
const |
|
inlineoverridevirtual |
Save as image. Saves the film as image. If #path is empty, the default path is used.
- Parameters
-
path | Path to the output image. |
- Return values
-
true | Succeeded to save the image. |
false | Failed to save the image. |
Implements BitmapFilm.
virtual void LDRBitmapFilm::SetImageType |
( |
BitmapImageType |
type | ) |
|
|
inlineoverridevirtual |
Set bitmap image type.
- Parameters
-
Implements BitmapFilm.
virtual int LDRBitmapFilm::Width |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the width of the film.
- Returns
- Width of the film.
Implements Film.
The documentation for this class was generated from the following file:
- /home/travis/build/hi2p-perim/lightmetrica/src/liblightmetrica/ldrfilm.cpp