1#ifndef __SRotateAnimation__H__
2#define __SRotateAnimation__H__
4#include <animation/SAnimation.h>
58 (THIS_
int width,
int height,
int parentWidth,
int parentHeight,
int nScale) OVERRIDE;
67 (THIS_
float interpolatedTime, ITransformation *t) OVERRIDE;
73 STDMETHOD_(
void,
copy)(THIS_
const IAnimation *src) OVERRIDE;
80 ATTR_FLOAT(L
"fromDegrees", mFromDegrees, FALSE)
81 ATTR_FLOAT(L
"toDegrees", mToDegrees, FALSE)
82 ATTR_VALUE_DESC(L
"pivotX", mPivotXDesc)
83 ATTR_VALUE_DESC(L
"pivotY", mPivotYDesc)
SAnimation()
Default constructor for SAnimation.
void applyTransformation(float interpolatedTime, ITransformation *t) OVERRIDE
Applies the transformation at a specific interpolated time.
void init(float fromDegrees, float toDegrees, const SValueDescription &pivotX, const SValueDescription &pivotY)
Constructor to use when building a RotateAnimation from code.
void copy(const IAnimation *src) OVERRIDE
Copies the properties of another animation to this animation.
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.
SRotateAnimation()
Default constructor for SRotateAnimation. Default pivotX/pivotY point is (0,0).
Utility class to parse a string description of a size.