diff options
Diffstat (limited to 'routing/world_graph.hpp')
-rw-r--r-- | routing/world_graph.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/routing/world_graph.hpp b/routing/world_graph.hpp index ef40180b9e..9ff880111b 100644 --- a/routing/world_graph.hpp +++ b/routing/world_graph.hpp @@ -25,11 +25,13 @@ public: IndexGraph & GetIndexGraph(NumMwmId numMwmId) { return m_loader->GetIndexGraph(numMwmId); } EdgeEstimator const & GetEstimator() const { return *m_estimator; } + m2::PointD const & GetPoint(Segment const & segment, bool front); RoadGeometry const & GetRoadGeometry(NumMwmId mwmId, uint32_t featureId); // Disable edges between mwms. - // Unblocking is not implemented due to YAGNI principle. - void BlockMwmBorders() { m_crossMwmGraph = nullptr; } + void CloseBorders() { m_bordersAreOpened = false; } + // Enable edges between mwms. + void OpenBorders() { m_bordersAreOpened = true; } // Clear memory used by loaded index graphs. void ClearIndexGraphs() { m_loader->Clear(); } @@ -40,5 +42,6 @@ private: std::unique_ptr<IndexGraphLoader> m_loader; std::shared_ptr<EdgeEstimator> m_estimator; std::vector<Segment> m_twins; + bool m_bordersAreOpened = true; }; } // namespace routing |