3#include <animation/STranslateAnimation.h>
26 t->GetMatrix()->setTranslate(dx, dy);
27 t->SetTransformationType(TYPE_MATRIX);
int resolveSize(const SValueDescription &value, int size, int parentSize, int nScale)
Converts the information in the description of a size to an actual dimension.
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.