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

move_screen_task.cpp « map - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbe41a35b00111311158a55ab2934a7bf835f783 (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
29
30
31
#include "move_screen_task.hpp"

#include "framework.hpp"

MoveScreenTask::MoveScreenTask(Framework * framework,
                               m2::PointD const & startPt,
                               m2::PointD const & endPt,
                               double interval)
  : anim::SegmentInterpolation(startPt,
                               endPt,
                               interval,
                               m_outPt),
    m_framework(framework)
{}

void MoveScreenTask::OnStep(double ts)
{
  anim::SegmentInterpolation::OnStep(ts);
  m_framework->GetNavigator().SetOrg(m_outPt);
}

void MoveScreenTask::OnEnd(double ts)
{
  anim::SegmentInterpolation::OnEnd(ts);
  m_framework->GetNavigator().SetOrg(m_outPt);
}

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