OMK::AttributeAnimatorAccTypeT< PrmType, PrmAccType > Class Template Reference
[Attribute feature]

Attribute with indirect access to value for types that are sons of OMKType. More...

#include <OMKAttributeAnimator.h>

Inheritance diagram for OMK::AttributeAnimatorAccTypeT< PrmType, PrmAccType >:

Inheritance graph
[legend]
Collaboration diagram for OMK::AttributeAnimatorAccTypeT< PrmType, PrmAccType >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void setAccessor (IAccessorT< PrmAccType > *accessor)
 Set the new accessor.

Detailed Description

template<typename PrmType, typename PrmAccType>
class OMK::AttributeAnimatorAccTypeT< PrmType, PrmAccType >

Attribute with indirect access to value for types that are sons of OMKType.

Date:
2007-05-01
Author:
BenoƮt Chanclou
Parameters:
PrmType The type of the attribute.
PrmAccType The type of the asscociated accessor.
In most of the cases AttributeAccT is more appropriated, because it allows to use types that are not sons of OMKType.

Definition at line 311 of file OMKAttributeAnimator.h.


Constructor & Destructor Documentation

template<typename PrmType, typename PrmAccType>
OMK::AttributeAnimatorAccTypeT< PrmType, PrmAccType >::AttributeAnimatorAccTypeT ( const Name id,
IAccessorT< PrmAccType > *  accessor 
) [inline]

Constructor.

Parameters:
[in] id See _id.

Definition at line 318 of file OMKAttributeAnimator.h.

00319     : IAttributeAnimatorT< PrmType, PrmType, AccessorAccT< PrmType,  PrmAccType > >( id, AccessorAccT< PrmType,  PrmAccType >( accessor ) ) {}

template<typename PrmType, typename PrmAccType>
virtual OMK::AttributeAnimatorAccTypeT< PrmType, PrmAccType >::~AttributeAnimatorAccTypeT (  )  [inline, virtual]

Destructor.

Definition at line 321 of file OMKAttributeAnimator.h.

00321 {}

template<typename PrmType, typename PrmAccType>
OMK::AttributeAnimatorAccTypeT< PrmType, PrmAccType >::AttributeAnimatorAccTypeT ( const Name id,
IAccessorT< PrmAccType > *  accessor 
) [inline]

Constructor.

Parameters:
[in] id See _id.

Definition at line 318 of file OMKAttributeAnimator.h.

00319     : IAttributeAnimatorT< PrmType, PrmType, AccessorAccT< PrmType,  PrmAccType > >( id, AccessorAccT< PrmType,  PrmAccType >( accessor ) ) {}

template<typename PrmType, typename PrmAccType>
virtual OMK::AttributeAnimatorAccTypeT< PrmType, PrmAccType >::~AttributeAnimatorAccTypeT (  )  [inline, virtual]

Destructor.

Definition at line 321 of file OMKAttributeAnimator.h.

00321 {}


Member Function Documentation

template<typename PrmType, typename PrmAccType>
void OMK::AttributeAnimatorAccTypeT< PrmType, PrmAccType >::setAccessor ( IAccessorT< PrmAccType > *  accessor  )  [inline]

Set the new accessor.

Parameters:
[in] accessor The new accessor to the value.
Use this method to change the current accessor. See example in the class description.

see AccessorAccT for example.

Definition at line 330 of file OMKAttributeAnimator.h.

References OMK::IAttributeT< PrmType, ModelType, AccessorType >::_accessor.

00331   {
00332     this->_accessor.setAccessor( accessor ) ;
00333   }


logo OpenMask

Documentation generated on Mon Jun 9 11:46:03 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007