1#ifndef __STRANSLATEANIMATION__H__
2#define __STRANSLATEANIMATION__H__
4#include <animation/SAnimation.h>
55 (THIS_
float interpolatedTime, ITransformation *t) OVERRIDE;
67 (THIS_
int width,
int height,
int parentWidth,
int parentHeight,
int nScale) OVERRIDE;
SAnimation()
Default constructor for SAnimation.
float mToXDelta
The ending X delta value.
SValueDescription mToYValue
Description of the ending Y value.
SValueDescription mToXValue
Description of the ending X value.
SValueDescription mFromXValue
Description of the starting X value.
float mToYDelta
The ending Y delta value.
STranslateAnimation()
Default constructor for STranslateAnimation.
void init(const SValueDescription &fromX, const SValueDescription &toX, const SValueDescription &fromY, const SValueDescription &toY)
Constructor to use when building a TranslateAnimation from code.
float mFromYDelta
The starting Y delta value.
SValueDescription mFromYValue
Description of the starting Y value.
void initialize(int width, int height, int parentWidth, int parentHeight, int nScale) OVERRIDE
Initializes the animation with the dimensions of the object and its parent.
float mFromXDelta
The starting X delta value.
void applyTransformation(float interpolatedTime, ITransformation *t) OVERRIDE
Applies the transformation at a specific interpolated time.
Utility class to parse a string description of a size.