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 15:32:45 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:28:36 +0300
commit25c8197f789cd4882470589fde89c989e2daeefb (patch)
treeb1cf592fece0ef5dce2dcd80fb6ec206b486ab70 /map/track.hpp
parent8e37b274bcc499515da7ae31f4fe687288de7109 (diff)
review fixes
Diffstat (limited to 'map/track.hpp')
-rw-r--r--map/track.hpp18
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;