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:
authorvng <viktor.govako@gmail.com>2011-10-05 18:34:43 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:25:11 +0300
commit9d92a05d3ba6b032684d6406d2ec89f2fafebf26 (patch)
tree4d5fbf1a46c0c89075bffdfb1a313ff93ca6a549 /indexer/drawing_rules.cpp
parent0922eff66cc195f076167693a04c27f6cf47332f (diff)
Drawing rules making routine.
Diffstat (limited to 'indexer/drawing_rules.cpp')
-rw-r--r--indexer/drawing_rules.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/indexer/drawing_rules.cpp b/indexer/drawing_rules.cpp
index 05f028e196..895c9d67e5 100644
--- a/indexer/drawing_rules.cpp
+++ b/indexer/drawing_rules.cpp
@@ -971,7 +971,7 @@ Key RulesHolder::CreateRuleImpl2(string const & name,
}
}
-size_t RulesHolder::AddRule(int32_t scale, rule_type_t type, BaseRule * p)
+size_t RulesHolder::AddRule(int scale, rule_type_t type, BaseRule * p)
{
ASSERT ( 0 <= scale && scale <= scales::GetUpperScale(), (scale) );
ASSERT ( 0 <= type && type < count_of_rules, () );
@@ -986,7 +986,7 @@ size_t RulesHolder::AddRule(int32_t scale, rule_type_t type, BaseRule * p)
return ret;
}
-size_t RulesHolder::AddLineRule(int32_t scale, int color, double pixWidth)
+size_t RulesHolder::AddLineRule(int scale, int color, double pixWidth)
{
LineRule * p = new LineRule();
p->m_params.get<4>() = color_t(color);
@@ -994,13 +994,20 @@ size_t RulesHolder::AddLineRule(int32_t scale, int color, double pixWidth)
return AddRule(scale, line, p);
}
-size_t RulesHolder::AddAreaRule(int32_t scale, int color)
+size_t RulesHolder::AddAreaRule(int scale, int color)
{
AreaRule * p = new AreaRule();
p->m_params.get<0>() = color_t(color);
return AddRule(scale, area, p);
}
+size_t RulesHolder::AddSymbolRule(int scale, string const & sym)
+{
+ SymbolRule * p = new SymbolRule();
+ p->m_params.get<0>() = sym;
+ return AddRule(scale, symbol, p);
+}
+
BaseRule const * RulesHolder::Find(Key const & k) const
{
rules_map_t::const_iterator i = m_rules.find(k.m_scale);