diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-09-11 16:33:59 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:27:06 +0300 |
commit | a14ee872549bb849a257a5ebdea1845ca2d92690 (patch) | |
tree | 1fa394864f476fc4c814aa8e3bc80244a3e493ad /map/track.cpp | |
parent | d66a7d68983bdd13923646322e147daa0acb783f (diff) |
[core] visualize track
Diffstat (limited to 'map/track.cpp')
-rw-r--r-- | map/track.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/map/track.cpp b/map/track.cpp index f645f06279..85ec8ab00e 100644 --- a/map/track.cpp +++ b/map/track.cpp @@ -77,6 +77,13 @@ void Track::CreateDisplayList(graphics::Screen * dlScreen, MatrixT const & matri SimplifyDP(pts1.begin(), pts1.end(), math::sqr(m_width), m2::DistanceToLineSquare<m2::PointD>(), MakeBackInsertFunctor(pts2)); + if (IsMarked()) + { + graphics::Pen::Info outlineInfo(m_outlineColor, m_width + 2 * m_outlineWidth); + uint32_t outlineId = dlScreen->mapInfo(outlineInfo); + dlScreen->drawPath(pts2.data(), pts2.size(), 0, outlineId, graphics::tracksDepth); + } + dlScreen->drawPath(pts2.data(), pts2.size(), 0, resId, graphics::tracksDepth); dlScreen->setDisplayList(0); @@ -124,6 +131,9 @@ void Track::Swap(Track & rhs) swap(m_width, rhs.m_width); swap(m_color, rhs.m_color); swap(m_rect, rhs.m_rect); + swap(m_isMarked, rhs.m_isMarked); + swap(m_outlineColor, rhs.m_outlineColor); + swap(m_outlineWidth, rhs.m_outlineWidth); m_name.swap(rhs.m_name); m_polyline.Swap(rhs.m_polyline); |