X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftransition-effects%2Fcube-transition-wave-effect-impl.cpp;h=818e670ff13b5357cb5d12d68e306e3ab7a27b6a;hp=d483ff13c0f1b0eaafc6df7561d3e0894f5978b0;hb=df92f45e89c92ca9b2286d51116ff7b69e75c569;hpb=306d2f61a1b64179e801fa8a0bb2bd7b4e9dd682 diff --git a/dali-toolkit/internal/transition-effects/cube-transition-wave-effect-impl.cpp b/dali-toolkit/internal/transition-effects/cube-transition-wave-effect-impl.cpp index d483ff1..818e670 100644 --- a/dali-toolkit/internal/transition-effects/cube-transition-wave-effect-impl.cpp +++ b/dali-toolkit/internal/transition-effects/cube-transition-wave-effect-impl.cpp @@ -74,15 +74,15 @@ void CubeTransitionWaveEffect::OnStartTransition( Vector2 panPosition, Vector2 p { for( unsigned int idx = 0; idx < totalNum; idx++ ) { - mTiles[mContainerIndex][idx].SetRotation( Degree( angle), Vector3::YAXIS ); + mTiles[mContainerIndex][idx].SetOrientation( Degree( angle), Vector3::YAXIS ); } } else if(!mChangeTurningDirection) // reset rotation, translation { for( unsigned int idx = 0; idx < totalNum; idx++ ) { - mTiles[mContainerIndex][idx].MoveBy( translation ); - mTiles[mContainerIndex][idx].SetRotation( Degree( angle), Vector3::YAXIS ); + mTiles[mContainerIndex][idx].TranslateBy( translation ); + mTiles[mContainerIndex][idx].SetOrientation( Degree( angle), Vector3::YAXIS ); } } @@ -97,14 +97,14 @@ void CubeTransitionWaveEffect::OnStartTransition( Vector2 panPosition, Vector2 p // the delay value is within 0.f ~ 2.f*thirdAnimationDuration float delay = thirdAnimationDuration * CalculateDelay(x*mTileSize.width,y*mTileSize.height); - mAnimation.RotateTo( mBoxes[idx], Degree( -angle ), Vector3::YAXIS, - AlphaFunctions::EaseOutSine, delay, thirdAnimationDuration ); - mAnimation.MoveBy( mBoxes[idx], Vector3(0.f,0.f,-mCubeDisplacement), - AlphaFunctions::Bounce, delay, thirdAnimationDuration ); - mAnimation.ColorTo( mTiles[anotherIndex][idx], HALF_BRIGHTNESS, - AlphaFunctions::EaseOut, delay, thirdAnimationDuration ); - mAnimation.ColorTo( mTiles[mContainerIndex][idx], FULL_BRIGHTNESS, - AlphaFunctions::EaseIn, delay, thirdAnimationDuration ); + mAnimation.AnimateTo( Property( mBoxes[idx], Actor::Property::ORIENTATION ), Quaternion( Radian( Degree( -angle ) ), Vector3::YAXIS ), + AlphaFunction::EASE_OUT_SINE, TimePeriod( delay, thirdAnimationDuration ) ); + mAnimation.AnimateBy( Property( mBoxes[idx], Actor::Property::POSITION ), Vector3( 0.f, 0.f, -mCubeDisplacement ), + AlphaFunction::BOUNCE, TimePeriod( delay, thirdAnimationDuration ) ); + mAnimation.AnimateTo( Property( mTiles[anotherIndex][idx], Actor::Property::COLOR ), HALF_BRIGHTNESS, + AlphaFunction::EASE_OUT, TimePeriod( delay, thirdAnimationDuration ) ); + mAnimation.AnimateTo( Property( mTiles[mContainerIndex][idx], Actor::Property::COLOR ), FULL_BRIGHTNESS, + AlphaFunction::EASE_IN, TimePeriod( delay, thirdAnimationDuration ) ); } } @@ -118,7 +118,7 @@ void CubeTransitionWaveEffect::OnStopTransition() unsigned int totalNum = mNumRows * mNumColumns; for( unsigned int idx = 0; idx < totalNum; idx++ ) { - mBoxes[idx].SetRotation( Degree( angle ), Vector3::YAXIS ); + mBoxes[idx].SetOrientation( Degree( angle ), Vector3::YAXIS ); } }