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

change_viewport_task.hpp « map - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 73f15061d78290618afdff688261c0d8dab7c2a1 (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
#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);

  bool IsVisual() const;
};