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-06-05 13:04:44 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:19:06 +0300
commit22c864c35ccfb2eccf662f57c823f0e80dac8fd4 (patch)
treec88813ce545f4119394b8148abc76dd76b0e7cc9 /indexer/drawing_rules.hpp
parent5bc39c45a852e9c4e05ed26a78579c72cabde90d (diff)
Draw tunnels transparent:
- set special layer flag when generating; - add additional id (transparent) for drawing rule;
Diffstat (limited to 'indexer/drawing_rules.hpp')
-rw-r--r--indexer/drawing_rules.hpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/indexer/drawing_rules.hpp b/indexer/drawing_rules.hpp
index d3b5f1c10c..ed784c7463 100644
--- a/indexer/drawing_rules.hpp
+++ b/indexer/drawing_rules.hpp
@@ -19,20 +19,26 @@ namespace drule
class BaseRule
{
string m_class;
+ mutable uint32_t m_id1, m_id2;
char m_type;
- mutable uint32_t m_id;
-
public:
static uint32_t const empty_id = 0xFFFFFFFF;
- BaseRule() : m_id(empty_id) {}
+ BaseRule() : m_id1(empty_id), m_id2(empty_id) {}
virtual ~BaseRule() {}
- uint32_t GetID() const { return m_id; }
- void SetID(uint32_t id) const { m_id = id; }
- void MakeEmptyID() { m_id = empty_id; }
+ /// @todo Rewrite this. Make an array of IDs.
+ //@{
+ uint32_t GetID() const { return m_id1; }
+ void SetID(uint32_t id) const { m_id1 = id; }
+ void MakeEmptyID() { m_id1 = empty_id; }
+
+ uint32_t GetID2() const { return m_id2; }
+ void SetID2(uint32_t id) const { m_id2 = id; }
+ void MakeEmptyID2() { m_id2 = empty_id; }
+ //@}
void SetClassName(string const & cl) { m_class = cl; }
void SetType(char type) { m_type = type; }