IUIAnimationInterpolator2 interface (uianimation.h)

Extends the IUIAnimationInterpolator interface that defines methods for creating a custom interpolator. IUIAnimationInterpolator2 supports interpolation in a given dimension.

Inheritance

The IUIAnimationInterpolator2 interface inherits from IUIAnimationInterpolator. IUIAnimationInterpolator2 also has these types of members:

Methods

The IUIAnimationInterpolator2 interface has these methods.

 
IUIAnimationInterpolator2::GetDependencies

For the given dimension, GetDependencies retrieves the aspects of the interpolator that depend on the initial value or velocity that is passed to the IUIAnimationInterpolator2::SetInitialValueAndVelocity method or the duration that is passed to the IUIAnimationInterpolator2::SetDuration method.
IUIAnimationInterpolator2::GetDimension

Gets the number of dimensions that require interpolation.
IUIAnimationInterpolator2::GetDuration

Gets the duration of a transition for the given dimension.
IUIAnimationInterpolator2::GetFinalValue

Gets the final value at the end of the transition for the given dimension.
IUIAnimationInterpolator2::GetPrimitiveInterpolation

Generates a primitive interpolation of the specified animation curve.
IUIAnimationInterpolator2::InterpolateValue

Interpolates the value of an animation variable at the specified offset and for the given dimension.
IUIAnimationInterpolator2::InterpolateVelocity

Interpolates the velocity, or rate of change, at the specified offset for the given dimension.
IUIAnimationInterpolator2::SetDuration

Sets the duration of the transition in the given dimension.
IUIAnimationInterpolator2::SetInitialValueAndVelocity

Sets the initial value and velocity of the transition for the given dimension.

Remarks

Client applications can use the transitions provided in the IUIAnimationTransitionLibrary orIUIAnimationTransitionLibrary2 interfaces, or in a library provided by a third party; however, custom transitions can be created by implementing the IUIAnimationInterpolator or IUIAnimationInterpolator2 interfaces.

Before Windows Animation can use your custom interpolator, you must wrap it in an object that implements the IUIAnimationTransition interface (by calling IUIAnimationTransitionFactory::CreateTransition) or the IUIAnimationTransition2 interface (by calling IUIAnimationTransitionFactory2::CreateTransition) and passing in the custom interpolator. After the interpolator wrapper has been created, client applications interact with your interpolator using the IUIAnimationTransition or IUIAnimationTransition2 interfaces.

Custom interpolators can be reused across applications, but it is recommended that they be exposed using factory interfaces that return an IUIAnimationTransition interface or an IUIAnimationTransition2 interface.

Requirements

Requirement Value
Minimum supported client Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header uianimation.h

See also

IUIAnimationInterpolator

IUIAnimationPrimitiveInterpolation

Interfaces