Lightmetrica  0.0.1.50dbee3 (yosakoi)
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
StubFilm Class Reference

Public Member Functions

 LM_COMPONENT_IMPL_DEF ("stub")
 
virtual int Width () const
 
virtual int Height () const
 
virtual bool Save (const std::string &path) const
 
virtual bool RescaleAndSave (const std::string &path, const Math::Float &weight) const
 
virtual void RecordContribution (const Math::Vec2 &rasterPos, const Math::Vec3 &contrb)
 
virtual void AccumulateContribution (const Math::Vec2 &rasterPos, const Math::Vec3 &contrb)
 
virtual void AccumulateContribution (const Film &film)
 
virtual void Rescale (const Math::Float &weight)
 
virtual bool Load (const ConfigNode &node, const Assets &assets)
 
virtual FilmClone () const
 
virtual void Clear ()
 
- 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)
 
Inheritance diagram for StubFilm:
Film Asset Component SIMDAlignedType

Member Function Documentation

virtual void StubFilm::AccumulateContribution ( const Math::Vec2 &  rasterPos,
const Math::Vec3 &  contrb 
)
inlinevirtual

Accumulate the contribution to the raster position. This function accumulates #contrb to the position specified by #rasterPos.

Parameters
rasterPosRaster position.
contrbContribution.

Implements Film.

virtual void StubFilm::AccumulateContribution ( const Film film)
inlinevirtual

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
filmOther film.

Implements Film.

virtual Film* StubFilm::Clone ( ) const
inlinevirtual

Clone the film.

Returns
Duplicated film.

Implements Film.

virtual int StubFilm::Height ( ) const
inlinevirtual

Get the height of the film.

Returns
Height of the film.

Implements Film.

virtual bool StubFilm::Load ( const ConfigNode node,
const Assets assets 
)
inlinevirtual

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
nodeXML node for the configuration.
assetsAsset manager.
trueSucceeded to load.
falseFailed to load.

Implements Asset.

virtual void StubFilm::RecordContribution ( const Math::Vec2 &  rasterPos,
const Math::Vec3 &  contrb 
)
inlinevirtual

Record the contribution to the raster position. This function records #contrb to the position specified by #rasterPos.

Parameters
rasterPosRaster position.
contrbContribution.

Implements Film.

virtual void StubFilm::Rescale ( const Math::Float &  weight)
inlinevirtual

Rescale the pixel values by constant weight.

Parameters
weightRescaling weight.

Implements Film.

virtual int StubFilm::Width ( ) const
inlinevirtual

Get the width of the film.

Returns
Width of the film.

Implements Film.


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