CInterpolatorBase Class
Implements a callback, which is called by the Animation API when it has to calculate a new value of an animation variable.
class CInterpolatorBase : public CUIAnimationInterpolatorBase<CInterpolatorBase>;
Members
Public Constructors
Name |
Description |
---|---|
Constructs the CInterpolatorBase object. |
Public Methods
Name |
Description |
---|---|
Creates an instance of CInterpolatorBase and stores a pointer to custom interpolator, which will be handling events. |
|
Gets the interpolator's dependencies. (Overrides CUIAnimationInterpolatorBase::GetDependencies.) |
|
Gets the interpolator's duration. (Overrides CUIAnimationInterpolatorBase::GetDuration.) |
|
Gets the final value to which the interpolator leads. (Overrides CUIAnimationInterpolatorBase::GetFinalValue.) |
|
Interpolates the value at a given offset (Overrides CUIAnimationInterpolatorBase::InterpolateValue.) |
|
Interpolates the velocity at a given offset (Overrides CUIAnimationInterpolatorBase::InterpolateVelocity.) |
|
Stores a pointer to custom interpolator, which will be handling events. |
|
Sets the interpolator's duration (Overrides CUIAnimationInterpolatorBase::SetDuration.) |
|
Sets the interpolator's initial value and velocity. (Overrides CUIAnimationInterpolatorBase::SetInitialValueAndVelocity.) |
Remarks
This handler is created and passed to IUIAnimationTransitionFactory::CreateTransition when a CCustomTransition object is being created as a part of animation initialization process (started by CAnimationController::AnimateGroup). Usually you don't need to use this class directly, it just routs all events to a CCustomInterpolator-derived class, whose pointer is passed to constructor of CCustomTransition.
Inheritance Hierarchy
CUIAnimationCallbackBase
CUIAnimationInterpolatorBase
CInterpolatorBase
Requirements
Header: afxanimationcontroller.h