| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/contextdata.h>

Public Member Functions | |
| ContextData (const T &value, const ID &category) | |
| Constructs a attribute object that puts the given object at the specified stack. | |
| virtual | ~ContextData () |
| void | setData (const T &t) |
| Sets the object that will be stored in the context. | |
| const T & | getData () const |
| Returns the object that will be stored in the context, see setData. | |
| virtual ID | category () const |
| Returns the ID specifying the stack the object will be put on. | |
| bool | operator== (const ContextData &other) const |
| VRS_TYPEINFO (ContextData, MonoAttribute) | |
| VRS::ContextData< T >::ContextData | ( | const T & | value, | |
| const ID & | category | |||
| ) |
Constructs a attribute object that puts the given object at the specified stack.
The stack within an engine's context is specified by category. It has to assigned explicitly by the application and should be unique. Don't use class names as categories. You can get a unique category for example with 'ID("blabla")'.
| virtual VRS::ContextData< T >::~ContextData | ( | ) | [virtual] |
| void VRS::ContextData< T >::setData | ( | const T & | t | ) |
Sets the object that will be stored in the context.
The given object will be put on the stack specified by the given ID (see constructor) when the scene graph evaluation reaches the ContextData object.
| const T& VRS::ContextData< T >::getData | ( | ) | const |
Returns the object that will be stored in the context, see setData.
| virtual ID VRS::ContextData< T >::category | ( | ) | const [virtual] |
| bool VRS::ContextData< T >::operator== | ( | const ContextData< T > & | other | ) | const |
| VRS::ContextData< T >::VRS_TYPEINFO | ( | ContextData< T > | , | |
| MonoAttribute | ||||
| ) |