New to Telerik UI for WinFormsStart a free 30-day trial

Abstract base class for calculating animated property values during animation sequences. Provides framework for interpolating between start and end values with easing support.

Definition

Constructors

C#
protected AnimationValueCalculator()

Properties

Gets the type associated with this animation calculator.

C#
public abstract Type AssociatedType { get; }
Property Value:

The type that this calculator can animate.

Methods

Calculates the animated value for the current frame using interpolation and easing.

C#
public abstract object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters:startValueobject

The starting value of the animation.

endValueobject

The ending value of the animation.

currValueobject

The current value of the animation.

stepobject

The animation step value.

currFrameNumint

The current frame number.

totalFrameNumint

The total number of frames.

calcEasingCalculator

The easing calculator to apply.

Returns:

object

The calculated animated value for the current frame.

Calculates the animation end value from start value, step, and the total number of frames.

C#
public abstract object CalculateAnimationEndValue(object animationStartValue, object step, int numFrames)
Parameters:animationStartValueobjectstepobjectnumFramesintReturns:

object

Calculates the animation step from start value, end value, and the total number of frames.

C#
public abstract object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters:animationStartValueobjectanimationEndValueobjectnumFramesintReturns:

object

C#
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames, double minValue, double maxValue)
Parameters:animationStartValuedoubleanimationStepdoublenumFramesintminValuedoublemaxValuedoubleReturns:

double

C#
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames)
Parameters:animationStartValuedoubleanimationStepdoublenumFramesintReturns:

double

C#
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, double numFrames, double minValue, double maxValue)
Parameters:animationStartValuedoubleanimationEndValuedoublenumFramesdoubleminValuedoublemaxValuedoubleReturns:

double

C#
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, int numFrames)
Parameters:animationStartValuedoubleanimationEndValuedoublenumFramesintReturns:

double

C#
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames, float minValue, float maxValue)
Parameters:animationStartValuefloatanimationStepfloatnumFramesintminValuefloatmaxValuefloatReturns:

float

C#
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames)
Parameters:animationStartValuefloatanimationStepfloatnumFramesintReturns:

float

C#
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, float numFrames, float minValue, float maxValue)
Parameters:animationStartValuefloatanimationEndValuefloatnumFramesfloatminValuefloatmaxValuefloatReturns:

float

C#
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, int numFrames)
Parameters:animationStartValuefloatanimationEndValuefloatnumFramesintReturns:

float

C#
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames, int minValue, int maxValue)
Parameters:animationStartValueintanimationStepintnumFramesintminValueintmaxValueintReturns:

int

C#
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames)
Parameters:animationStartValueintanimationStepintnumFramesintReturns:

int

C#
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames, int minValue, int maxValue)
Parameters:animationStartValueintanimationEndValueintnumFramesintminValueintmaxValueintReturns:

int

C#
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames)
Parameters:animationStartValueintanimationEndValueintnumFramesintReturns:

int

Calculates the inverse of the specified animation step.

C#
public abstract object CalculateInversedStep(object step)
Parameters:stepobject

The animation step to invert.

Returns:

object

The inverted animation step.

Converts an animation step value to its string representation for serialization.

C#
public virtual string ConvertAnimationStepToString(object value)
Parameters:valueobject

The animation step value to convert.

Returns:

string

The string representation of the animation step.

Converts a string to an animation value.

C#
public virtual object ConvertToAnimationStepFromString(string value)
Parameters:valuestringReturns:

object