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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2010-12-05 19:24:16 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-22 22:33:57 +0300
commitd6e12b7ce4bcbf0ccd1c07eb25de143422913c34 (patch)
treea7e910c330ce4da9b4f2d8be76067adece2561c4 /indexer/drawing_rule_def.hpp
One Month In Minsk. Made in Belarus.
Diffstat (limited to 'indexer/drawing_rule_def.hpp')
-rw-r--r--indexer/drawing_rule_def.hpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/indexer/drawing_rule_def.hpp b/indexer/drawing_rule_def.hpp
new file mode 100644
index 0000000000..b697f43406
--- /dev/null
+++ b/indexer/drawing_rule_def.hpp
@@ -0,0 +1,36 @@
+#pragma once
+
+#include "../std/string.hpp"
+
+namespace drule
+{
+ class Key
+ {
+ public:
+ int m_scale;
+ int m_type;
+ int m_index;
+ int m_priority;
+
+ Key() : m_scale(-1), m_type(-1), m_index(-1), m_priority(-1) {}
+ Key(int s, int t, int i) : m_scale(s), m_type(t), m_index(i), m_priority(-1) {}
+
+ bool operator==(Key const & r) const
+ {
+ return (m_scale == r.m_scale && m_type == r.m_type && m_index == r.m_index);
+ }
+
+ string toString() const;
+ void fromString(string const & s);
+
+ void SetPriority(int pr) { m_priority = pr; }
+ };
+
+ /// drawing type of rule - can be one of ...
+ enum rule_type_t { line, area, symbol, caption, circle, pathtext, waymarker, count_of_rules };
+
+ /// geo type of rule - can be one combined of ...
+ enum rule_geo_t { node = 1, way = 2 };
+
+ int const layer_base_priority = 2000;
+}