Expand Minimize

IUIAnimationInterpolator2 interface

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

When to implement

Client applications implement this interface to create custom transitions.

When to use

Client applications do not call the IUIAnimationInterpolator2 methods directly.

Members

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

Methods

The IUIAnimationInterpolator2 interface has these methods.

MethodDescription
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.

GetDimension

Gets the number of dimensions that require interpolation.

GetDuration

Gets the duration of a transition for the given dimension.

GetFinalValue

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

GetPrimitiveInterpolation

Generates a primitive interpolation of the specified animation curve.

InterpolateValue

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

InterpolateVelocity

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

SetDuration

Sets the duration of the transition in the given dimension.

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

Minimum supported client

Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported [desktop apps | Windows Store apps]

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

IID

IID_IUIAnimationInterpolator2 is defined as EA76AFF8-EA22-4a23-A0EF-A6A966703518

See also

Interfaces
IUIAnimationPrimitiveInterpolation

 

 

Community Additions

ADD
Show:
© 2014 Microsoft