Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Public Member Functions | Public Attributes | List of all members
AnimationImpl< KeyType, AddressType > Class Template Reference
Inheritance diagram for AnimationImpl< KeyType, AddressType >:
AnimationTyped< KeyType > IAnimation

Public Member Functions

 AnimationImpl (Object *object, const std::string &propertyPath)
 
virtual void Animate (Object *object, TimelineBase *timeline) override
 
virtual void Animate (Object *object, TimeType time) override
 
virtual bool AddKey (TimeType time, const KeyType &value) override
 Adds key and sets default interpolator. More...
 
virtual bool AddKey (TimeType time, const KeyType &value, InterpolatorType interpolatorType) override
 Adds key and sets default interpolator. More...
 
virtual bool UpdateKey (TimeType time, const KeyType &newValue, UPtr< Interpolator > &&interpolator) override
 Adds key and sets default interpolator. More...
 
virtual bool UpdateKey (TimeType time, const KeyType &newValue) override
 Udates key given by time. Sets new interpolator. More...
 
virtual bool RemoveKey (TimeType time) override
 Removes key in given time. More...
 
virtual bool ChangeInterpolator (Size idx, UPtr< Interpolator > &&interpolator) override
 
virtual bool ChangeInterpolator (Size idx, InterpolatorType interpolatorType) override
 
virtual InterpolatorGetInterpolator (Size idx) override
 Gets interpolator under index. You're not owner of this interpolator. More...
 
virtual const Key< KeyType > * GetKey (TimeType time) override
 Return key in given time. More...
 
virtual KeySet< KeyType > & GetKeySet () override
 Returns KeySet object. More...
 

Public Attributes

AnimEvaluator< KeyType, AddressType > Evaluator
 

Additional Inherited Members

- Public Types inherited from AnimationTyped< KeyType >
typedef IInterpolator< KeyType > Interpolator
 

Member Function Documentation

template<typename KeyType , typename AddressType >
bool AnimationImpl< KeyType, AddressType >::AddKey ( TimeType  time,
const KeyType &  value 
)
inlineoverridevirtual

Adds key and sets default interpolator.

Returns
False if key already exists.

Implements AnimationTyped< KeyType >.

template<typename KeyType , typename AddressType >
bool AnimationImpl< KeyType, AddressType >::AddKey ( TimeType  time,
const KeyType &  value,
InterpolatorType  interpolatorType 
)
inlineoverridevirtual

Adds key and sets default interpolator.

Returns
False if key already exists.

Implements AnimationTyped< KeyType >.

template<typename KeyType , typename AddressType >
bool AnimationImpl< KeyType, AddressType >::ChangeInterpolator ( Size  idx,
UPtr< Interpolator > &&  interpolator 
)
inlineoverridevirtual
template<typename KeyType , typename AddressType >
bool AnimationImpl< KeyType, AddressType >::ChangeInterpolator ( Size  idx,
InterpolatorType  interpolatorType 
)
inlineoverridevirtual
template<typename KeyType , typename AddressType >
IInterpolator< KeyType > * AnimationImpl< KeyType, AddressType >::GetInterpolator ( Size  idx)
inlineoverridevirtual

Gets interpolator under index. You're not owner of this interpolator.

Implements AnimationTyped< KeyType >.

template<typename KeyType , typename AddressType >
const Key< KeyType > * AnimationImpl< KeyType, AddressType >::GetKey ( TimeType  time)
inlineoverridevirtual

Return key in given time.

Implements AnimationTyped< KeyType >.

template<typename KeyType , typename AddressType >
KeySet< KeyType > & AnimationImpl< KeyType, AddressType >::GetKeySet ( )
inlineoverridevirtual

Returns KeySet object.

Implements AnimationTyped< KeyType >.

template<typename KeyType , typename AddressType >
bool AnimationImpl< KeyType, AddressType >::RemoveKey ( TimeType  time)
inlineoverridevirtual

Removes key in given time.

Returns
False if There's no key in given time.

Implements AnimationTyped< KeyType >.

template<typename KeyType , typename AddressType >
bool AnimationImpl< KeyType, AddressType >::UpdateKey ( TimeType  time,
const KeyType &  newValue,
UPtr< Interpolator > &&  interpolator 
)
inlineoverridevirtual

Adds key and sets default interpolator.

Returns
False if key already exists.

Implements AnimationTyped< KeyType >.

template<typename KeyType , typename AddressType >
bool AnimationImpl< KeyType, AddressType >::UpdateKey ( TimeType  time,
const KeyType &  newValue 
)
inlineoverridevirtual

Udates key given by time. Sets new interpolator.

Returns
False if There's no key in given time.

Implements AnimationTyped< KeyType >.


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