#include <OMKAttributeAnimator.h>
Inheritance diagram for OMK::AttributeAnimatorAccT< PrmType, PrmAccType >:
Public Member Functions | |
void | setAccessor (IAccessorT< PrmAccType > *accessor) |
Set the new accessor. |
PrmType | The type of the attribute. | |
PrmAccType | The type of the asscociated accessor. |
class MyObject : public ExtensibleSimulatedObject { ... AttributeAnimatorT< int > myIntegerAttributeAnimator ; AttributeAnimatorT< float, int > myIntegerAttributeAnimatorSeeAsAFloat ; MyObject( Controller& ctrl, const ObjectDescriptor& objectDescriptor ) : ExtensibleSimulatedObject( ctrl, objectDescriptor ), myIntegerAttributeAnimator( "theInteger", 0 ), myIntegerAttributeAnimatorSeeAsFloat( "theFloat", &myIntegerAttributeAnimator ) { ... } ... } ;
The value is reached through the associated accessor.
The PrmType is cast with SimpleTypeT.
Definition at line 273 of file OMKAttributeAnimator.h.
OMK::AttributeAnimatorAccT< PrmType, PrmAccType >::AttributeAnimatorAccT | ( | const Name & | id, | |
IAccessorT< PrmAccType > * | accessor | |||
) | [inline] |
Constructor.
[in] | id | See _id. |
Definition at line 280 of file OMKAttributeAnimator.h.
00281 : IAttributeAnimatorT< PrmType, OMK::Type::SimpleTypeT< PrmType >, AccessorAccT< PrmType, PrmAccType > >( id, AccessorAccT< PrmType, PrmAccType >( accessor ) ) {}
virtual OMK::AttributeAnimatorAccT< PrmType, PrmAccType >::~AttributeAnimatorAccT | ( | ) | [inline, virtual] |
OMK::AttributeAnimatorAccT< PrmType, PrmAccType >::AttributeAnimatorAccT | ( | const Name & | id, | |
IAccessorT< PrmAccType > * | accessor | |||
) | [inline] |
Constructor.
[in] | id | See _id. |
Definition at line 280 of file OMKAttributeAnimator.h.
00281 : IAttributeAnimatorT< PrmType, OMK::Type::SimpleTypeT< PrmType >, AccessorAccT< PrmType, PrmAccType > >( id, AccessorAccT< PrmType, PrmAccType >( accessor ) ) {}
virtual OMK::AttributeAnimatorAccT< PrmType, PrmAccType >::~AttributeAnimatorAccT | ( | ) | [inline, virtual] |
void OMK::AttributeAnimatorAccT< PrmType, PrmAccType >::setAccessor | ( | IAccessorT< PrmAccType > * | accessor | ) | [inline] |
Set the new accessor.
[in] | accessor | The new accessor to the value. |
see AccessorAccT for example.
Definition at line 292 of file OMKAttributeAnimator.h.
References OMK::IAttributeT< PrmType, ModelType, AccessorType >::_accessor.
00293 { 00294 this->_accessor.setAccessor( accessor ) ; 00295 }
Documentation generated on Mon Jun 9 11:46:03 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |