25 template<
typename KeyType,
typename AddressType >
79 template<
typename KeyType,
typename AddressType >
81 : m_param( object, propertyPath )
93 template<
typename KeyType,
typename AddressType >
96 KeyType value = m_keySet.Evaluate( time );
97 m_param.SetValue(
object, value );
102 template<
typename KeyType,
typename AddressType >
105 return m_keySet.AddKey( time, value );
110 template<
typename KeyType,
typename AddressType >
118 template<
typename KeyType,
typename AddressType >
126 template<
typename KeyType,
typename AddressType >
129 return m_keySet.UpdateKey( time, newValue );
134 template<
typename KeyType,
typename AddressType >
137 return m_keySet.RemoveKey( time );
142 template<
typename KeyType,
typename AddressType >
145 return m_keySet.ChangeInterpolator( idx, std::move( interpolator ) );
150 template<
typename KeyType,
typename AddressType >
153 return m_keySet.GetKey( time );
158 template<
typename KeyType,
typename AddressType >
Base class for interpolators.
Definition: IInterpolator.h:38
void Evaluate(EngineObject *object, TimeType time)
Definition: AnimEvaluator.h:94
IInterpolator< KeyType > Interpolator
Definition: AnimEvaluator.h:29
KeyType
Definition: all_0.js:13
KeySet< KeyType > m_keySet
Definition: AnimEvaluator.h:31
Evaluates animation.
Definition: AnimEvaluator.h:26
AnimEvaluator()=default
Constructor for serialization only.
bool RemoveKey(TimeType time)
Removes key in given time.
Definition: AnimEvaluator.h:135
const Key< KeyType > * GetKey(TimeType time)
Return key in given time.
Definition: AnimEvaluator.h:151
InterpolatorType
Definition: IInterpolator.h:24
bool UpdateKey(TimeType time, const KeyType &newValue, UPtr< Interpolator > &&interpolator)
Udates key given by time. Sets new interpolator.
Definition: AnimEvaluator.h:119
Animation key.
Definition: IInterpolator.h:21
size_t Size
Definition: TypesDefinitions.h:35
Klasa bazowa dla obiektów, które mają być dostępne w edytorze poprzez rttr. Należy po niej odziedzicz...
Definition: EngineObject.h:22
Set of animation keys and interpolators.
Definition: KeySet.h:25
bool AddKey(TimeType time, const KeyType &value)
Adds key and sets default interpolator.
Definition: AnimEvaluator.h:103
AddressType m_param
Definition: AnimEvaluator.h:32
bool ChangeInterpolator(Size idx, UPtr< Interpolator > &&interpolator)
Updates interpolator. Key remains unchanged.
Definition: AnimEvaluator.h:143
double TimeType
Definition: TypesDefinitions.h:39
virtual KeySet< KeyType > & GetKeySet()
Returns KeySet.
Definition: AnimEvaluator.h:159