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

rule_drawer.hpp « drape_frontend - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f80952d28a2e5427413929e6e143177605c984e7 (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
32
33
34
35
36
37
38
39
40
#pragma once

#include "tile_key.hpp"

#include "../geometry/rect2d.hpp"
#include "../geometry/screenbase.hpp"

#include "../std/function.hpp"
#include "../std/set.hpp"
#include "../std/string.hpp"

class FeatureType;

namespace df
{

class EngineContext;
class Stylist;
typedef function<void (FeatureType const &, Stylist &)> drawer_callback_fn;

class RuleDrawer
{
public:
  RuleDrawer(drawer_callback_fn const & fn,
             TileKey const & tileKey,
             EngineContext & context);

  void operator() (FeatureType const & f);

private:
  drawer_callback_fn m_callback;
  TileKey m_tileKey;
  EngineContext & m_context;
  m2::RectD m_globalRect;
  ScreenBase m_geometryConvertor;
  double m_currentScaleGtoP;
  set<string> m_coastlines;
};

} // namespace dfo