Class AnimationValueCalculator
Abstract base class for calculating animated property values during animation sequences. Provides framework for interpolating between start and end values with easing support.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public abstract class AnimationValueCalculator
Constructors
AnimationValueCalculator()
Declaration
protected AnimationValueCalculator()
Properties
AssociatedType
Gets the type associated with this animation calculator.
Declaration
public abstract Type AssociatedType { get; }
Property Value
System.Type
The type that this calculator can animate. |
Methods
CalculateAnimatedValue(Object, Object, Object, Object, Int32, Int32, EasingCalculator)
Calculates the animated value for the current frame using interpolation and easing.
Declaration
public abstract object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters
System.Object
startValue
The starting value of the animation. |
System.Object
endValue
The ending value of the animation. |
System.Object
currValue
The current value of the animation. |
System.Object
step
The animation step value. |
System.Int32
currFrameNum
The current frame number. |
System.Int32
totalFrameNum
The total number of frames. |
EasingCalculator
calc
The easing calculator to apply. |
Returns
System.Object
The calculated animated value for the current frame. |
CalculateAnimationEndValue(Object, Object, Int32)
Calculates the animation end value from start value, step, and the total number of frames.
Declaration
public abstract object CalculateAnimationEndValue(object animationStartValue, object step, int numFrames)
Parameters
System.Object
animationStartValue
|
System.Object
step
|
System.Int32
numFrames
|
Returns
System.Object
|
CalculateAnimationStep(Object, Object, Int32)
Calculates the animation step from start value, end value, and the total number of frames.
Declaration
public abstract object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters
System.Object
animationStartValue
|
System.Object
animationEndValue
|
System.Int32
numFrames
|
Returns
System.Object
|
CalculateDoubleEndValue(Double, Double, Int32)
Declaration
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames)
Parameters
System.Double
animationStartValue
|
System.Double
animationStep
|
System.Int32
numFrames
|
Returns
System.Double
|
CalculateDoubleEndValue(Double, Double, Int32, Double, Double)
Declaration
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames, double minValue, double maxValue)
Parameters
System.Double
animationStartValue
|
System.Double
animationStep
|
System.Int32
numFrames
|
System.Double
minValue
|
System.Double
maxValue
|
Returns
System.Double
|
CalculateDoubleStep(Double, Double, Double, Double, Double)
Declaration
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, double numFrames, double minValue, double maxValue)
Parameters
System.Double
animationStartValue
|
System.Double
animationEndValue
|
System.Double
numFrames
|
System.Double
minValue
|
System.Double
maxValue
|
Returns
System.Double
|
CalculateDoubleStep(Double, Double, Int32)
Declaration
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, int numFrames)
Parameters
System.Double
animationStartValue
|
System.Double
animationEndValue
|
System.Int32
numFrames
|
Returns
System.Double
|
CalculateFloatEndValue(Single, Single, Int32)
Declaration
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames)
Parameters
System.Single
animationStartValue
|
System.Single
animationStep
|
System.Int32
numFrames
|
Returns
System.Single
|
CalculateFloatEndValue(Single, Single, Int32, Single, Single)
Declaration
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames, float minValue, float maxValue)
Parameters
System.Single
animationStartValue
|
System.Single
animationStep
|
System.Int32
numFrames
|
System.Single
minValue
|
System.Single
maxValue
|
Returns
System.Single
|
CalculateFloatStep(Single, Single, Int32)
Declaration
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, int numFrames)
Parameters
System.Single
animationStartValue
|
System.Single
animationEndValue
|
System.Int32
numFrames
|
Returns
System.Single
|
CalculateFloatStep(Single, Single, Single, Single, Single)
Declaration
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, float numFrames, float minValue, float maxValue)
Parameters
System.Single
animationStartValue
|
System.Single
animationEndValue
|
System.Single
numFrames
|
System.Single
minValue
|
System.Single
maxValue
|
Returns
System.Single
|
CalculateIntEndValue(Int32, Int32, Int32)
Declaration
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames)
Parameters
System.Int32
animationStartValue
|
System.Int32
animationStep
|
System.Int32
numFrames
|
Returns
System.Int32
|
CalculateIntEndValue(Int32, Int32, Int32, Int32, Int32)
Declaration
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames, int minValue, int maxValue)
Parameters
System.Int32
animationStartValue
|
System.Int32
animationStep
|
System.Int32
numFrames
|
System.Int32
minValue
|
System.Int32
maxValue
|
Returns
System.Int32
|
CalculateIntStep(Int32, Int32, Int32)
Declaration
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames)
Parameters
System.Int32
animationStartValue
|
System.Int32
animationEndValue
|
System.Int32
numFrames
|
Returns
System.Int32
|
CalculateIntStep(Int32, Int32, Int32, Int32, Int32)
Declaration
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames, int minValue, int maxValue)
Parameters
System.Int32
animationStartValue
|
System.Int32
animationEndValue
|
System.Int32
numFrames
|
System.Int32
minValue
|
System.Int32
maxValue
|
Returns
System.Int32
|
CalculateInversedStep(Object)
Calculates the inverse of the specified animation step.
Declaration
public abstract object CalculateInversedStep(object step)
Parameters
System.Object
step
The animation step to invert. |
Returns
System.Object
The inverted animation step. |
ConvertAnimationStepToString(Object)
Converts an animation step value to its string representation for serialization.
Declaration
public virtual string ConvertAnimationStepToString(object value)
Parameters
System.Object
value
The animation step value to convert. |
Returns
System.String
The string representation of the animation step. |
ConvertToAnimationStepFromString(String)
Converts a string to an animation value.
Declaration
public virtual object ConvertToAnimationStepFromString(string value)
Parameters
System.String
value
|
Returns
System.Object
|