From d82fa0f7b8a7d9ef24893c76b4c8a8f9cd9b6d35 Mon Sep 17 00:00:00 2001 From: Olga Khlopkova Date: Thu, 26 Nov 2020 12:21:52 +0300 Subject: [PATCH] [routing] Methods for handling RegionsGraph in WorldGraph. --- routing/world_graph.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routing/world_graph.hpp b/routing/world_graph.hpp index 7ce2fd4607..658bf0b702 100644 --- a/routing/world_graph.hpp +++ b/routing/world_graph.hpp @@ -58,6 +58,10 @@ public: std::vector & edges, std::vector & parentWeights) = 0; + bool IsRegionsGraphMode() const { return m_isRegionsGraphMode; } + + void SetRegionsGraphMode(bool isRegionsGraphMode) { m_isRegionsGraphMode = isRegionsGraphMode; } + void GetEdgeList(Segment const & vertex, bool isOutgoing, bool useRoutingOptions, std::vector & edges); @@ -121,6 +125,8 @@ public: protected: void GetTwins(Segment const & segment, bool isOutgoing, bool useRoutingOptions, std::vector & edges); + + bool m_isRegionsGraphMode = false; }; std::string DebugPrint(WorldGraphMode mode);