diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-01-29 09:43:29 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:36:51 +0300 |
commit | fcd1a968808575d3ca24f6e3f081f00447706229 (patch) | |
tree | 5c87b3f59d6be3426779758d125b703e045c48eb /map/track.cpp | |
parent | 3b7c568c14f453a6f06aa1a85b7ce48e44ec20f7 (diff) |
Adding new unit tests for clipArrowBodyAndGetArrowDirection()
Diffstat (limited to 'map/track.cpp')
-rw-r--r-- | map/track.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/map/track.cpp b/map/track.cpp index 2eb99db3b2..f998ed31e6 100644 --- a/map/track.cpp +++ b/map/track.cpp @@ -63,14 +63,14 @@ void Track::Draw(graphics::Screen * pScreen, MatrixT const & matrix) const pScreen->drawDisplayList(m_dList, matrix); } -void Track::CreateDisplayListPolyline(graphics::Screen * dlScreen, PointContainerT const & pts2) const +void Track::CreateDisplayListPolyline(graphics::Screen * dlScreen, PointContainerT const & pts) const { double baseDepthTrack = graphics::tracksDepth - 10 * m_outlines.size(); for (TrackOutline const & outline : m_outlines) { graphics::Pen::Info const outlineInfo(outline.m_color, outline.m_lineWidth); uint32_t const outlineId = dlScreen->mapInfo(outlineInfo); - dlScreen->drawPath(pts2.data(), pts2.size(), 0, outlineId, baseDepthTrack); + dlScreen->drawPath(pts.data(), pts.size(), 0, outlineId, baseDepthTrack); baseDepthTrack += 10; } } @@ -89,7 +89,7 @@ void Track::CreateDisplayList(graphics::Screen * dlScreen, MatrixT const & matri PointContainerT pts; pts.reserve(m_polyline.GetSize()); - SymplifyAndTransformPolyline(m_polyline, matrix, GetMainWidth(), pts); + TransformAndSymplifyPolyline(m_polyline, matrix, GetMainWidth(), pts); CreateDisplayListPolyline(dlScreen, pts); dlScreen->setDisplayList(0); @@ -133,7 +133,7 @@ void TransformPolyline(Track::PolylineD const & polyline, MatrixT const & matrix transform(polyline.Begin(), polyline.End(), pts.begin(), DoLeftProduct<MatrixT>(matrix)); } -void SymplifyAndTransformPolyline(Track::PolylineD const & polyline, MatrixT const & matrix, double width, PointContainerT & pts) +void TransformAndSymplifyPolyline(Track::PolylineD const & polyline, MatrixT const & matrix, double width, PointContainerT & pts) { PointContainerT pts1(polyline.GetSize()); TransformPolyline(polyline, matrix, pts1); |