blob: 141dd03db23555c1b369504e8c862fbb06d84099 (
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
|
#pragma once
#include "generator/feature_merger.hpp"
#include "indexer/cell_id.hpp"
#include "geometry/tree4d.hpp"
#include "geometry/region2d.hpp"
class FeatureBuilder1;
class CoastlineFeaturesGenerator
{
FeatureMergeProcessor m_merger;
using TTree = m4::Tree<m2::RegionI>;
TTree m_tree;
uint32_t m_coastType;
public:
CoastlineFeaturesGenerator(uint32_t coastType);
void AddRegionToTree(FeatureBuilder1 const & fb);
void operator() (FeatureBuilder1 const & fb);
/// @return false if coasts are not merged and FLAG_fail_on_coasts is set
bool Finish();
void GetFeatures(vector<FeatureBuilder1> & vecFb);
};
|