25 template<
typename KeyType >
28 const static bool value =
false;
33 template<
typename KeyType >
39 template<
typename KeyType >
45 template<
typename KeyType >
52 template<
typename KeyType >
65 template<
typename KeyType >
72 template<
typename KeyType >
86 template<
typename KeyType >
93 template<
typename KeyType >
100 template<
typename KeyType >
111 #define DECLARE_SPECIALIZATON( type, Function ) \
113 UPtr< IInterpolator< type > > Function< type >( const Key< type >& leftKey, \
114 const Key< type >& rightKey, \
115 UPtr< const IInterpolator< type > >& leftInterpolator, \
116 UPtr< const IInterpolator< type > >& rightInterpolator );
157 #undef DECLARE_SPECIALIZATON
165 template<
typename KeyType >
175 return CreateDiscrete< KeyType >( leftKey, rightKey, leftInterpolator, rightInterpolator );
177 return CreateLinear< KeyType >( leftKey, rightKey, leftInterpolator, rightInterpolator );
179 return CreateCosinus< KeyType >( leftKey, rightKey, leftInterpolator, rightInterpolator );
190 template<
typename KeyType >
197 return CreateLinear( leftKey, rightKey, leftInterpolator, rightInterpolator );
203 template<
typename KeyType >
210 return CreateLinear( leftKey, rightKey, leftInterpolator, rightInterpolator );
223 return CreateDiscrete( leftKey, rightKey, leftInterpolator, rightInterpolator );
228 template<
typename KeyType >
235 return CreateDiscrete( leftKey, rightKey, leftInterpolator, rightInterpolator );
240 template<
typename KeyType >
247 return CreateDiscrete( leftKey, rightKey, leftInterpolator, rightInterpolator );
252 template<
typename KeyType >
259 return CreateLinear( leftKey, rightKey, leftInterpolator, rightInterpolator );
Interpolators helpers functions.
Definition: DefaultInterpolators.cpp:14
uint16_t uint16
Definition: TypesDefinitions.h:29
UPtr< IInterpolator< KeyType > > CreateCosinus(const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
Definition: DefaultInterpolators.inl:41
Base class for interpolators.
Definition: IInterpolator.h:38
int8_t int8
Definition: TypesDefinitions.h:26
KeyType
Definition: all_0.js:13
static const bool value
Definition: DefaultInterpolators.h:28
UPtr< IInterpolator< KeyType > > CreateDiscrete(const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
Definition: DefaultInterpolators.inl:30
uint64_t uint64
Definition: TypesDefinitions.h:33
int64_t int64
Definition: TypesDefinitions.h:32
InterpolatorType
Definition: IInterpolator.h:24
uint32_t uint32
Definition: TypesDefinitions.h:31
Animation key.
Definition: IInterpolator.h:21
uint8_t uint8
Definition: TypesDefinitions.h:27
UPtr< IInterpolator< KeyType > > Create(InterpolatorType type, const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
Definition: DefaultInterpolators.h:166
DECLARE_SPECIALIZATON(float, CreateLinear)
Trait for enabling types for parameter animation.
Definition: DefaultInterpolators.h:26
int32_t int32
Definition: TypesDefinitions.h:30
UPtr< IInterpolator< KeyType > > CreateLinear(const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
Definition: DefaultInterpolators.inl:18
int16_t int16
Definition: TypesDefinitions.h:28
Temporary interpolator for internal use.
Definition: IInterpolator.h:67