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.

Definition

Constructors

AnimationValueCalculator()

Declaration

cs-api-definition
protected AnimationValueCalculator()

Properties

AssociatedType

Gets the type associated with this animation calculator.

Declaration

cs-api-definition
public abstract Type AssociatedType { get; }

Property Value

Type

The type that this calculator can animate.

Methods

CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

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

Declaration

cs-api-definition
public abstract object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)

Parameters

startValue

object

The starting value of the animation.

endValue

object

The ending value of the animation.

currValue

object

The current value of the animation.

step

object

The animation step value.

currFrameNum

int

The current frame number.

totalFrameNum

int

The total number of frames.

calc

EasingCalculator

The easing calculator to apply.

Returns

object

The calculated animated value for the current frame.

CalculateAnimationEndValue(object, object, int)

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

Declaration

cs-api-definition
public abstract object CalculateAnimationEndValue(object animationStartValue, object step, int numFrames)

Parameters

animationStartValue

object

step

object

numFrames

int

Returns

object

CalculateAnimationStep(object, object, int)

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

Declaration

cs-api-definition
public abstract object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)

Parameters

animationStartValue

object

animationEndValue

object

numFrames

int

Returns

object

CalculateDoubleEndValue(double, double, int)

Declaration

cs-api-definition
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames)

Parameters

animationStartValue

double

animationStep

double

numFrames

int

Returns

double

CalculateDoubleEndValue(double, double, int, double, double)

Declaration

cs-api-definition
protected double CalculateDoubleEndValue(double animationStartValue, double animationStep, int numFrames, double minValue, double maxValue)

Parameters

animationStartValue

double

animationStep

double

numFrames

int

minValue

double

maxValue

double

Returns

double

CalculateDoubleStep(double, double, double, double, double)

Declaration

cs-api-definition
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, double numFrames, double minValue, double maxValue)

Parameters

animationStartValue

double

animationEndValue

double

numFrames

double

minValue

double

maxValue

double

Returns

double

CalculateDoubleStep(double, double, int)

Declaration

cs-api-definition
protected double CalculateDoubleStep(double animationStartValue, double animationEndValue, int numFrames)

Parameters

animationStartValue

double

animationEndValue

double

numFrames

int

Returns

double

CalculateFloatEndValue(float, float, int)

Declaration

cs-api-definition
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames)

Parameters

animationStartValue

float

animationStep

float

numFrames

int

Returns

float

CalculateFloatEndValue(float, float, int, float, float)

Declaration

cs-api-definition
protected float CalculateFloatEndValue(float animationStartValue, float animationStep, int numFrames, float minValue, float maxValue)

Parameters

animationStartValue

float

animationStep

float

numFrames

int

minValue

float

maxValue

float

Returns

float

CalculateFloatStep(float, float, float, float, float)

Declaration

cs-api-definition
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, float numFrames, float minValue, float maxValue)

Parameters

animationStartValue

float

animationEndValue

float

numFrames

float

minValue

float

maxValue

float

Returns

float

CalculateFloatStep(float, float, int)

Declaration

cs-api-definition
protected float CalculateFloatStep(float animationStartValue, float animationEndValue, int numFrames)

Parameters

animationStartValue

float

animationEndValue

float

numFrames

int

Returns

float

CalculateIntEndValue(int, int, int)

Declaration

cs-api-definition
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames)

Parameters

animationStartValue

int

animationStep

int

numFrames

int

Returns

int

CalculateIntEndValue(int, int, int, int, int)

Declaration

cs-api-definition
protected int CalculateIntEndValue(int animationStartValue, int animationStep, int numFrames, int minValue, int maxValue)

Parameters

animationStartValue

int

animationStep

int

numFrames

int

minValue

int

maxValue

int

Returns

int

CalculateIntStep(int, int, int)

Declaration

cs-api-definition
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames)

Parameters

animationStartValue

int

animationEndValue

int

numFrames

int

Returns

int

CalculateIntStep(int, int, int, int, int)

Declaration

cs-api-definition
protected int CalculateIntStep(int animationStartValue, int animationEndValue, int numFrames, int minValue, int maxValue)

Parameters

animationStartValue

int

animationEndValue

int

numFrames

int

minValue

int

maxValue

int

Returns

int

CalculateInversedStep(object)

Calculates the inverse of the specified animation step.

Declaration

cs-api-definition
public abstract object CalculateInversedStep(object step)

Parameters

step

object

The animation step to invert.

Returns

object

The inverted animation step.

ConvertAnimationStepToString(object)

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

Declaration

cs-api-definition
public virtual string ConvertAnimationStepToString(object value)

Parameters

value

object

The animation step value to convert.

Returns

string

The string representation of the animation step.

ConvertToAnimationStepFromString(string)

Converts a string to an animation value.

Declaration

cs-api-definition
public virtual object ConvertToAnimationStepFromString(string value)

Parameters

value

string

Returns

object