Condividi tramite


CCustomInterpolator Class

Implements a basic interpolator.

class CCustomInterpolator;

Members

Public Constructors

Name

Description

CCustomInterpolator::CCustomInterpolator

Overloaded. Constructs a custom interpolator object and initializes duration and velocity to specified values.

Public Methods

Name

Description

CCustomInterpolator::GetDependencies

Gets the interpolator's dependencies.

CCustomInterpolator::GetDuration

Gets the interpolator's duration.

CCustomInterpolator::GetFinalValue

Gets the final value to which the interpolator leads.

CCustomInterpolator::Init

Initializes duration and final value.

CCustomInterpolator::InterpolateValue

Interpolates the value at a given offset.

CCustomInterpolator::InterpolateVelocity

Interpolates the velocity at a given offset

CCustomInterpolator::SetDuration

Sets the interpolator's duration.

CCustomInterpolator::SetInitialValueAndVelocity

Sets the interpolator's initial value and velocity.

Protected Data Members

Name

Description

CCustomInterpolator::m_currentValue

The interpolated value.

CCustomInterpolator::m_currentVelocity

The interpolated velocity.

CCustomInterpolator::m_duration

The duration of the transition.

CCustomInterpolator::m_finalValue

The final value of a variable at the end of the transition.

CCustomInterpolator::m_initialValue

The value of the variable at the start of the transition.

CCustomInterpolator::m_initialVelocity

The velocity of the variable at the start of the transition.

Remarks

Derive a class from CCustomInterpolator and override all necessary methods in order to implement a custom interpolation algorithm. A pointer to this class should be passed as a parameter to CCustomTransition.

Inheritance Hierarchy

CCustomInterpolator

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes