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:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2015-08-19 13:48:15 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:01:54 +0300
commit487a28e33e7f2f4f4f26aeaffcdac379bfd0078b (patch)
tree32718246cf87e07ccdd76a58783035d0c8f6d39d /indexer/drawing_rules.hpp
parent60952b43503ec79bb5e51e9a7cae8151bd84a162 (diff)
Use natural-land as background color for specified scales
Diffstat (limited to 'indexer/drawing_rules.hpp')
-rw-r--r--indexer/drawing_rules.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/indexer/drawing_rules.hpp b/indexer/drawing_rules.hpp
index 57b0aa0e6e..a72b764f99 100644
--- a/indexer/drawing_rules.hpp
+++ b/indexer/drawing_rules.hpp
@@ -17,6 +17,7 @@ class AreaRuleProto;
class SymbolRuleProto;
class CaptionDefProto;
class CircleRuleProto;
+class ContainerProto;
namespace drule
@@ -60,7 +61,8 @@ namespace drule
typedef map<int32_t, array<vector<uint32_t>, count_of_rules> > rules_map_t;
rules_map_t m_rules;
- uint32_t m_bgColor;
+ /// background color for scales in range [0...scales::UPPER_STYLE_SCALE]
+ vector<uint32_t> m_bgColors;
public:
RulesHolder();
@@ -75,7 +77,7 @@ namespace drule
BaseRule const * Find(Key const & k) const;
- uint32_t GetBgColor() const;
+ uint32_t GetBgColor(int scale = 0) const;
#ifdef OMIM_OS_DESKTOP
void LoadFromTextProto(string const & buffer);
@@ -99,6 +101,9 @@ namespace drule
}
}
}
+
+ private:
+ void InitBackgroundColors(ContainerProto const & cp);
};
RulesHolder & rules();