CCustomInterpolator Class
Implements a basic interpolator.
class CCustomInterpolator;
Members
Public Constructors
Name |
Description |
---|---|
Overloaded. Constructs a custom interpolator object and initializes duration and velocity to specified values. |
Public Methods
Name |
Description |
---|---|
Gets the interpolator's dependencies. |
|
Gets the interpolator's duration. |
|
Gets the final value to which the interpolator leads. |
|
Initializes duration and final value. |
|
Interpolates the value at a given offset. |
|
Interpolates the velocity at a given offset |
|
Sets the interpolator's duration. |
|
Sets the interpolator's initial value and velocity. |
Protected Data Members
Name |
Description |
---|---|
The interpolated value. |
|
The interpolated velocity. |
|
The duration of the transition. |
|
The final value of a variable at the end of the transition. |
|
The value of the variable at the start of the transition. |
|
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
Requirements
Header: afxanimationcontroller.h