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:
authorExMix <rahuba.youri@mapswithme.com>2014-09-22 14:15:02 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:28:35 +0300
commit5d2d3894a99a49da405578cd204d1bc541827748 (patch)
tree8e5866dc9067b4a20d7795f1f8b14c89b0df0390 /map/track.hpp
parentef0f588cf3e4e06e3e3b1f9f4145052e766b7b23 (diff)
[core] draw symbols on begin\end points of track
Diffstat (limited to 'map/track.hpp')
-rw-r--r--map/track.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/map/track.hpp b/map/track.hpp
index 96425f3613..cd4c10a890 100644
--- a/map/track.hpp
+++ b/map/track.hpp
@@ -4,6 +4,7 @@
#include "../geometry/screenbase.hpp"
#include "../graphics/color.hpp"
+#include "../graphics/defines.hpp"
#include "../std/noncopyable.hpp"
@@ -83,6 +84,8 @@ public:
m2::RectD const & GetLimitRect() const { return m_rect; }
//@}
+ void AddClosingSymbol(bool isBeginSymbol, string const & symbolName, graphics::EPosition pos, double depth);
+
double GetLengthMeters() const;
double GetShortestSquareDistance(m2::PointD const & point) const;
@@ -98,6 +101,11 @@ private:
float m_outlineWidth;
graphics::Color m_outlineColor;
+ typedef pair<graphics::EPosition, double> TSymbolVisParams;
+ typedef pair<string, TSymbolVisParams> TClosingSymbol;
+ vector<TClosingSymbol> m_beginSymbols;
+ vector<TClosingSymbol> m_endSymbols;
+
PolylineD m_polyline;
m2::RectD m_rect;