OpenIG  2.0.4
cross-platform open-source OpenSceneGraph Image Generator
Public Member Functions | Public Attributes | List of all members
OpenIG::PluginBase::PluginContext::Attribute< T > Struct Template Reference

Attribute struct. More...

#include <PluginContext.h>

Inheritance diagram for OpenIG::PluginBase::PluginContext::Attribute< T >:

Public Member Functions

 Attribute (T value)
 Attribute. More...
 
void setValue (const T &value)
 Set some value. More...
 
T & getValue ()
 Gets the value. More...
 

Public Attributes

_value
 

Detailed Description

template<typename T>
struct OpenIG::PluginBase::PluginContext::Attribute< T >

Attribute struct.

This struct gives the user chance to add custom structs in the igplugincore::PluginContext to be passed from the OpenIG::Base::ImageGenerator to all the plugins. The openig::OpenIG Image Generator implementation is keeping a reference of a igplugincore::PluginContext and it cleans it after each frame

Author
Trajce Nikolov Nick openi.nosp@m.g@co.nosp@m.mpro..nosp@m.net
Date
Fri Jan 16 2015

Constructor & Destructor Documentation

template<typename T >
OpenIG::PluginBase::PluginContext::Attribute< T >::Attribute ( value)
inline

Attribute.

Parameters
Acustom value, struct
Author
Trajce Nikolov Nick openi.nosp@m.g@co.nosp@m.mpro..nosp@m.net
Date
Fri Jan 16 2015

Member Function Documentation

template<typename T >
T& OpenIG::PluginBase::PluginContext::Attribute< T >::getValue ( )
inline

Gets the value.

Returns
The value
Author
Trajce Nikolov Nick openi.nosp@m.g@co.nosp@m.mpro..nosp@m.net
Date
Fri Jan 16 2015
template<typename T >
void OpenIG::PluginBase::PluginContext::Attribute< T >::setValue ( const T &  value)
inline

Set some value.

Parameters
Thevalue
Author
Trajce Nikolov Nick openi.nosp@m.g@co.nosp@m.mpro..nosp@m.net
Date
Fri Jan 16 2015

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