diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2019-05-15 19:50:06 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2019-05-17 13:08:37 +0300 |
commit | 2b495905b69fda0784e4fbf4ebb07a11cebcc734 (patch) | |
tree | acbc3ac7adaafb7f87088222b9c3b50bde6f9bc0 /map | |
parent | 7df84d85594d16f1045c4897a6d1794f2581b88c (diff) |
[drape] Rotate method added.
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.cpp | 6 | ||||
-rw-r--r-- | map/framework.hpp | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index edf2a7cfa5..f1cdd20fcc 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1320,6 +1320,12 @@ void Framework::Move(double factorX, double factorY, bool isAnim) m_drapeEngine->Move(factorX, factorY, isAnim); } +void Framework::Rotate(double azimuth, bool isAnim) +{ + if (m_drapeEngine != nullptr) + m_drapeEngine->Rotate(azimuth, isAnim); +} + void Framework::TouchEvent(df::TouchEvent const & touch) { if (m_drapeEngine != nullptr) diff --git a/map/framework.hpp b/map/framework.hpp index 4d8deeb750..5830ef68a5 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -672,6 +672,8 @@ public: /// factorY = 1.5 moves the map one and a half size up. void Move(double factorX, double factorY, bool isAnim); + void Rotate(double azimuth, bool isAnim); + void TouchEvent(df::TouchEvent const & touch); //@} |