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

change_viewport_task.cpp « map - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bf045e66744b0f7610c6e07ad79134b2b8161030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "map/change_viewport_task.hpp"
#include "map/framework.hpp"

ChangeViewportTask::ChangeViewportTask(m2::AnyRectD const & startRect,
                                       m2::AnyRectD const & endRect,
                                       double rotationSpeed,
                                       Framework * framework)
  : BaseT(startRect, endRect, rotationSpeed, m_outRect),
    m_framework(framework)
{
}

void ChangeViewportTask::OnStep(double ts)
{
  BaseT::OnStep(ts);
  m_framework->ShowRectExVisibleScale(m_outRect.GetGlobalRect());
}

void ChangeViewportTask::OnEnd(double ts)
{
  BaseT::OnEnd(ts);
  m_framework->ShowRectExVisibleScale(m_outRect.GetGlobalRect());
}

bool ChangeViewportTask::IsVisual() const
{
  return true;
}