summaryrefslogtreecommitdiff
path: root/src/mbgl/layout/merge_lines.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-09-13 13:44:20 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-09-16 09:00:54 -0700
commit1f375581c3a31adea9281a7494a73e5c8f1c9a17 (patch)
treef84a292e2600a3b7141450fb6f3020f453d9095a /src/mbgl/layout/merge_lines.hpp
parent9ef65440b6bfd2c8da17d2613f8c967682cc0ef9 (diff)
downloadqtlocation-mapboxgl-1f375581c3a31adea9281a7494a73e5c8f1c9a17.tar.gz
[core] Move {clip,merge}_lines to layout directory
Diffstat (limited to 'src/mbgl/layout/merge_lines.hpp')
-rw-r--r--src/mbgl/layout/merge_lines.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mbgl/layout/merge_lines.hpp b/src/mbgl/layout/merge_lines.hpp
new file mode 100644
index 0000000000..bb4c01f6a2
--- /dev/null
+++ b/src/mbgl/layout/merge_lines.hpp
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <unordered_map>
+#include <string>
+#include <vector>
+#include <mbgl/layout/symbol_layout.hpp>
+
+namespace mbgl {
+namespace util {
+
+unsigned int mergeFromRight(std::vector<SymbolFeature> &features,
+ std::unordered_map<std::string, unsigned int> &rightIndex,
+ std::unordered_map<std::string, unsigned int>::iterator left,
+ std::string &rightKey,
+ GeometryCollection &geom);
+
+unsigned int mergeFromLeft(std::vector<SymbolFeature> &features,
+ std::unordered_map<std::string, unsigned int> &leftIndex,
+ std::string &leftKey,
+ std::unordered_map<std::string, unsigned int>::iterator right,
+ GeometryCollection &geom);
+
+void mergeLines(std::vector<SymbolFeature> &features);
+
+} // end namespace util
+} // end namespace mbgl