Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Public Attributes | List of all members
AnimationImpl< KeyType, AddressType > Class Template Reference

#include <Animation.h>

Inheritance diagram for AnimationImpl< KeyType, AddressType >:
AnimationTyped< KeyType > IAnimation

Public Member Functions

 AnimationImpl (EngineObject *object, const std::string &propertyPath)
 
virtual ~AnimationImpl ()=default
 
virtual void Animate (EngineObject *object, TimelineBase *timeline) override
 
virtual void Animate (EngineObject *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 Member Functions inherited from AnimationTyped< KeyType >
virtual ~AnimationTyped ()=default
 
- Public Member Functions inherited from IAnimation
 IAnimation ()=default
 
virtual ~IAnimation ()=default
 

Public Attributes

AnimEvaluator< KeyType, AddressType > Evaluator
 

Additional Inherited Members

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

Constructor & Destructor Documentation

template<typename KeyType , typename AddressType >
AnimationImpl< KeyType, AddressType >::AnimationImpl ( EngineObject object,
const std::string &  propertyPath 
)
inline
template<typename KeyType , typename AddressType >
virtual AnimationImpl< KeyType, AddressType >::~AnimationImpl ( )
virtualdefault

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 >
void AnimationImpl< KeyType, AddressType >::Animate ( EngineObject object,
TimelineBase timeline 
)
inlineoverridevirtual

Implements IAnimation.

template<typename KeyType , typename AddressType >
void AnimationImpl< KeyType, AddressType >::Animate ( EngineObject object,
TimeType  time 
)
inlineoverridevirtual

Implements IAnimation.

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 >.

Member Data Documentation

template<typename KeyType , typename AddressType >
AnimEvaluator< KeyType, AddressType > AnimationImpl< KeyType, AddressType >::Evaluator

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