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

CInterpolatorBase::CInterpolatorBase

Constructs the CInterpolatorBase object.

Public Methods

Name

Description

CInterpolatorBase::CreateInstance

Creates an instance of CInterpolatorBase and stores a pointer to custom interpolator, which will be handling events.

CInterpolatorBase::GetDependencies

Gets the interpolator's dependencies. (Overrides CUIAnimationInterpolatorBase::GetDependencies.)

CInterpolatorBase::GetDuration

Gets the interpolator's duration. (Overrides CUIAnimationInterpolatorBase::GetDuration.)

CInterpolatorBase::GetFinalValue

Gets the final value to which the interpolator leads. (Overrides CUIAnimationInterpolatorBase::GetFinalValue.)

CInterpolatorBase::InterpolateValue

Interpolates the value at a given offset (Overrides CUIAnimationInterpolatorBase::InterpolateValue.)

CInterpolatorBase::InterpolateVelocity

Interpolates the velocity at a given offset (Overrides CUIAnimationInterpolatorBase::InterpolateVelocity.)

CInterpolatorBase::SetCustomInterpolator

Stores a pointer to custom interpolator, which will be handling events.

CInterpolatorBase::SetDuration

Sets the interpolator's duration (Overrides CUIAnimationInterpolatorBase::SetDuration.)

CInterpolatorBase::SetInitialValueAndVelocity

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

See Also

Other Resources

MFC Classes