CInterpolatorBase Class

Visual Studio 2010 SP1 is required.

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.

CInterpolatorBase::GetDuration

Gets the interpolator's duration.

CInterpolatorBase::GetFinalValue

Gets the final value to which the interpolator leads.

CInterpolatorBase::InterpolateValue

Interpolates the value at a given offset.

CInterpolatorBase::InterpolateVelocity

Interpolates the velocity at a given offset.

CInterpolatorBase::SetCustomInterpolator

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

CInterpolatorBase::SetDuration

Sets the interpolator's duration.

CInterpolatorBase::SetInitialValueAndVelocity

Sets the interpolator's initial value and velocity.

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

MFC Classes

CUIAnimationCallbackBase

CUIAnimationInterpolatorBase

CInterpolatorBase

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes