Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Public Member Functions | List of all members
DummyInterpolator< KeyType > Class Template Reference

Temporary interpolator for internal use. More...

#include <IInterpolator.h>

Inheritance diagram for DummyInterpolator< KeyType >:
IInterpolator< KeyType >

Public Member Functions

virtual KeyType Interpolate (TimeType time, Key< KeyType > &left, Key< KeyType > &right)
 Main function invoked by evaluator.
 
virtual void Update (const Key< KeyType > &leftKey, const Key< KeyType > &rightKey, UPtr< const IInterpolator< KeyType > > &leftInterpolator, UPtr< const IInterpolator< KeyType > > &rightInterpolator)
 Function updates interpolator, when left or right key value changes. More...
 
virtual KeyType LeftTangent (const Key< KeyType > &left, const Key< KeyType > &right) const
 Returns curve tangent. Function can be used by surrounding interpolators to smooth curve.
 
virtual KeyType RightTangent (const Key< KeyType > &left, const Key< KeyType > &right) const
 Returns curve tangent. Function can be used by surrounding interpolators to smooth curve.
 

Detailed Description

template<typename KeyType>
class DummyInterpolator< KeyType >

Temporary interpolator for internal use.

Member Function Documentation

template<typename KeyType>
virtual void DummyInterpolator< KeyType >::Update ( const Key< KeyType > &  leftKey,
const Key< KeyType > &  rightKey,
UPtr< const IInterpolator< KeyType > > &  leftInterpolator,
UPtr< const IInterpolator< KeyType > > &  rightInterpolator 
)
inlinevirtual

Function updates interpolator, when left or right key value changes.

Note
Left or right interpolator can be nullptr, but keys always exist.

Implements IInterpolator< KeyType >.


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