void Animation::AnimateBy(Property& target, Property::Value& relativeValue, AlphaFunction alpha, TimePeriod period)
{
- ProxyObject& proxy = dynamic_cast<ProxyObject&>( GetImplementation(target.object) );
+ Object& object = dynamic_cast<Object&>( GetImplementation(target.object) );
ExtendDuration( period );
{
case Property::BOOLEAN:
{
- AddAnimatorConnector( AnimatorConnector<bool>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<bool>::New( object,
target.propertyIndex,
target.componentIndex,
new AnimateByBoolean(relativeValue.Get<bool>()),
case Property::FLOAT:
{
- AddAnimatorConnector( AnimatorConnector<float>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<float>::New( object,
target.propertyIndex,
target.componentIndex,
new AnimateByFloat(relativeValue.Get<float>()),
case Property::INTEGER:
{
- AddAnimatorConnector( AnimatorConnector<int>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<int>::New( object,
target.propertyIndex,
target.componentIndex,
new AnimateByInteger(relativeValue.Get<int>()),
case Property::VECTOR2:
{
- AddAnimatorConnector( AnimatorConnector<Vector2>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<Vector2>::New( object,
target.propertyIndex,
target.componentIndex,
new AnimateByVector2(relativeValue.Get<Vector2>()),
case Property::VECTOR3:
{
- AddAnimatorConnector( AnimatorConnector<Vector3>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<Vector3>::New( object,
target.propertyIndex,
target.componentIndex,
new AnimateByVector3(relativeValue.Get<Vector3>()),
case Property::VECTOR4:
{
- AddAnimatorConnector( AnimatorConnector<Vector4>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<Vector4>::New( object,
target.propertyIndex,
target.componentIndex,
new AnimateByVector4(relativeValue.Get<Vector4>()),
{
AngleAxis angleAxis = relativeValue.Get<AngleAxis>();
- AddAnimatorConnector( AnimatorConnector<Quaternion>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<Quaternion>::New( object,
target.propertyIndex,
target.componentIndex,
new RotateByAngleAxis(angleAxis.angle, angleAxis.axis),
void Animation::AnimateTo(Property& target, Property::Value& destinationValue, AlphaFunction alpha, TimePeriod period)
{
- ProxyObject& proxy = dynamic_cast<ProxyObject&>( GetImplementation(target.object) );
+ Object& object = dynamic_cast<Object&>( GetImplementation(target.object) );
- AnimateTo( proxy, target.propertyIndex, target.componentIndex, destinationValue, alpha, period );
+ AnimateTo( object, target.propertyIndex, target.componentIndex, destinationValue, alpha, period );
}
-void Animation::AnimateTo(ProxyObject& targetObject, Property::Index targetPropertyIndex, int componentIndex, Property::Value& destinationValue, AlphaFunction alpha, TimePeriod period)
+void Animation::AnimateTo(Object& targetObject, Property::Index targetPropertyIndex, int componentIndex, Property::Value& destinationValue, AlphaFunction alpha, TimePeriod period)
{
Property::Type type = targetObject.GetPropertyType(targetPropertyIndex);
if(componentIndex != Property::INVALID_COMPONENT_INDEX)
void Animation::AnimateBetween(Property target, const KeyFrames& keyFrames, AlphaFunction alpha, TimePeriod period, Interpolation interpolation)
{
- ProxyObject& proxy = dynamic_cast<ProxyObject&>( GetImplementation(target.object) );
+ Object& object = dynamic_cast<Object&>( GetImplementation(target.object) );
ExtendDuration( period );
const KeyFrameBoolean* kf;
GetSpecialization(keyFrames, kf);
KeyFrameBooleanPtr kfCopy = KeyFrameBoolean::Clone(*kf);
- AddAnimatorConnector( AnimatorConnector<bool>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<bool>::New( object,
target.propertyIndex,
target.componentIndex,
new KeyFrameBooleanFunctor(kfCopy),
const KeyFrameNumber* kf;
GetSpecialization(keyFrames, kf);
KeyFrameNumberPtr kfCopy = KeyFrameNumber::Clone(*kf);
- AddAnimatorConnector( AnimatorConnector<float>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<float>::New( object,
target.propertyIndex,
target.componentIndex,
new KeyFrameNumberFunctor(kfCopy,interpolation),
const KeyFrameInteger* kf;
GetSpecialization(keyFrames, kf);
KeyFrameIntegerPtr kfCopy = KeyFrameInteger::Clone(*kf);
- AddAnimatorConnector( AnimatorConnector<int>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<int>::New( object,
target.propertyIndex,
target.componentIndex,
new KeyFrameIntegerFunctor(kfCopy,interpolation),
const KeyFrameVector2* kf;
GetSpecialization(keyFrames, kf);
KeyFrameVector2Ptr kfCopy = KeyFrameVector2::Clone(*kf);
- AddAnimatorConnector( AnimatorConnector<Vector2>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<Vector2>::New( object,
target.propertyIndex,
target.componentIndex,
new KeyFrameVector2Functor(kfCopy,interpolation),
const KeyFrameVector3* kf;
GetSpecialization(keyFrames, kf);
KeyFrameVector3Ptr kfCopy = KeyFrameVector3::Clone(*kf);
- AddAnimatorConnector( AnimatorConnector<Vector3>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<Vector3>::New( object,
target.propertyIndex,
target.componentIndex,
new KeyFrameVector3Functor(kfCopy,interpolation),
const KeyFrameVector4* kf;
GetSpecialization(keyFrames, kf);
KeyFrameVector4Ptr kfCopy = KeyFrameVector4::Clone(*kf);
- AddAnimatorConnector( AnimatorConnector<Vector4>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<Vector4>::New( object,
target.propertyIndex,
target.componentIndex,
new KeyFrameVector4Functor(kfCopy,interpolation),
const KeyFrameQuaternion* kf;
GetSpecialization(keyFrames, kf);
KeyFrameQuaternionPtr kfCopy = KeyFrameQuaternion::Clone(*kf);
- AddAnimatorConnector( AnimatorConnector<Quaternion>::New( proxy,
+ AddAnimatorConnector( AnimatorConnector<Quaternion>::New( object,
target.propertyIndex,
target.componentIndex,
new KeyFrameQuaternionFunctor(kfCopy),