1#ifndef __SCALEANIMATION__H__
2#define __SCALEANIMATION__H__
4#include <animation/SAnimation.h>
58 (THIS_
float interpolatedTime, ITransformation *t) OVERRIDE;
64 STDMETHOD_(
void,
copy)(THIS_
const IAnimation *src) OVERRIDE;
76 (THIS_
int width,
int height,
int parentWidth,
int parentHeight,
int nScale) OVERRIDE;
82 ATTR_FLOAT(L
"fromXScale", mFromX, FALSE)
83 ATTR_FLOAT(L
"toXScale", mToX, FALSE)
84 ATTR_FLOAT(L
"fromYScale", mFromY, FALSE)
85 ATTR_FLOAT(L
"toYScale", mToY, FALSE)
86 ATTR_VALUE_DESC(L
"pivotX", mPivotXDesc)
87 ATTR_VALUE_DESC(L
"pivotY", mPivotYDesc)
SAnimation()
Default constructor for SAnimation.
SScaleAnimation()
Default constructor for SScaleAnimation.
void copy(const IAnimation *src) OVERRIDE
Copies the properties of another animation to this animation.
void applyTransformation(float interpolatedTime, ITransformation *t) OVERRIDE
Applies the transformation at a specific interpolated time.
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.
void init(float fromX, float toX, float fromY, float toY, const SValueDescription &pivotX, const SValueDescription &pivotY)
Constructor to use when building a ScaleAnimation from code.
Utility class to parse a string description of a size.