Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiarhei Rachytski <sir@Siarheis-MacBook.local>2012-10-01 13:52:47 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:44:27 +0300
commit0109b47987dd4cf48c50ed77fe2aea23827f7576 (patch)
tree288b4865feb72e63f7e37f02a49291d2a9f3dc21 /map/animator.hpp
parent158ff90c8afde03626280a7a7c839044d1761bed (diff)
using ChangeViewportTask for animating transition and rotation when pressing on direction arrow.
Diffstat (limited to 'map/animator.hpp')
-rw-r--r--map/animator.hpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/map/animator.hpp b/map/animator.hpp
index 9b3006827d..cdc6898ee3 100644
--- a/map/animator.hpp
+++ b/map/animator.hpp
@@ -2,9 +2,12 @@
#include "../std/shared_ptr.hpp"
+#include "../geometry/point2d.hpp"
+#include "../geometry/any_rect2d.hpp"
+
class Framework;
class RotateScreenTask;
-
+class ChangeViewportTask;
/// Class, which is responsible for
/// tracking all map animations.
class Animator
@@ -14,6 +17,7 @@ private:
Framework * m_framework;
shared_ptr<RotateScreenTask> m_rotateScreenTask;
+ shared_ptr<ChangeViewportTask> m_changeViewportTask;
public:
@@ -25,5 +29,10 @@ public:
double duration);
/// stopping screen rotation
void StopRotation();
-
+ /// move screen from one point to another
+ shared_ptr<ChangeViewportTask> const & ChangeViewport(m2::AnyRectD const & start,
+ m2::AnyRectD const & endPt,
+ double rotationSpeed);
+ /// stop screen moving
+ void StopChangeViewport();
};