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:51:35 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:44:27 +0300
commit158ff90c8afde03626280a7a7c839044d1761bed (patch)
tree014abda05604abac91e746f8781dbdddc30934bd /map/change_viewport_task.hpp
parent2d8da99e3719e5f4fd3cfb0ddaca1e93ad514135 (diff)
added ChangeViewportTask for Viewport animation.
Diffstat (limited to 'map/change_viewport_task.hpp')
-rw-r--r--map/change_viewport_task.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/map/change_viewport_task.hpp b/map/change_viewport_task.hpp
new file mode 100644
index 0000000000..6f662169dd
--- /dev/null
+++ b/map/change_viewport_task.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "../anim/anyrect_interpolation.hpp"
+
+class Framework;
+
+class ChangeViewportTask : public anim::AnyRectInterpolation
+{
+private:
+
+ Framework * m_framework;
+ m2::AnyRectD m_outRect;
+
+public:
+
+ ChangeViewportTask(m2::AnyRectD const & startRect,
+ m2::AnyRectD const & endRect,
+ double rotationSpeed,
+ Framework * framework);
+
+ void OnStep(double ts);
+ void OnEnd(double ts);
+};