blob: 2a292f1cf330c088a262bf6ac4aa3cd8473c8253 (
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
|
#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);
}
|