diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-09-22 15:32:45 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:28:36 +0300 |
commit | 25c8197f789cd4882470589fde89c989e2daeefb (patch) | |
tree | b1cf592fece0ef5dce2dcd80fb6ec206b486ab70 /map/track.hpp | |
parent | 8e37b274bcc499515da7ae31f4fe687288de7109 (diff) |
review fixes
Diffstat (limited to 'map/track.hpp')
-rw-r--r-- | map/track.hpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/map/track.hpp b/map/track.hpp index cd4c10a890..3c0b4756d4 100644 --- a/map/track.hpp +++ b/map/track.hpp @@ -84,7 +84,8 @@ public: m2::RectD const & GetLimitRect() const { return m_rect; } //@} - void AddClosingSymbol(bool isBeginSymbol, string const & symbolName, graphics::EPosition pos, double depth); + void AddClosingSymbol(bool isBeginSymbol, string const & symbolName, + graphics::EPosition pos, double depth); double GetLengthMeters() const; double GetShortestSquareDistance(m2::PointD const & point) const; @@ -101,10 +102,17 @@ 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; + struct ClosingSymbol + { + ClosingSymbol(string const & iconName, graphics::EPosition pos, double depth) + : m_iconName(iconName), m_position(pos), m_depth(depth) {} + string m_iconName; + graphics::EPosition m_position; + double m_depth; + }; + + vector<ClosingSymbol> m_beginSymbols; + vector<ClosingSymbol> m_endSymbols; PolylineD m_polyline; m2::RectD m_rect; |