14 |
14 |
15 for (Vertex const& vrt : points3d) |
15 for (Vertex const& vrt : points3d) |
16 points << renderer()->coordconv3_2 (vrt); |
16 points << renderer()->coordconv3_2 (vrt); |
17 |
17 |
18 painter.setPen (renderer()->textPen()); |
18 painter.setPen (renderer()->textPen()); |
19 assert (points.size() == points3d.size()); |
|
20 |
19 |
21 for (int i = 0; i < points.size() - 1; ++i) |
20 if (points.size() == points3d.size()) |
22 { |
21 { |
23 painter.drawLine (QLineF (points[i], points[i + 1])); |
22 for (int i = 0; i < points.size() - 1; ++i) |
24 drawLength (painter, points3d[i], points3d[i + 1], points[i], points[i + 1]); |
23 { |
|
24 painter.drawLine (QLineF (points[i], points[i + 1])); |
|
25 drawLength (painter, points3d[i], points3d[i + 1], points[i], points[i + 1]); |
|
26 } |
|
27 |
|
28 for (QPointF const& point : points) |
|
29 renderer()->drawBlip (painter, point); |
25 } |
30 } |
26 |
|
27 for (QPointF const& point : points) |
|
28 renderer()->drawBlip (painter, point); |
|
29 } |
31 } |
30 |
32 |
31 bool LinePathMode::mouseReleased (MouseEventData const& data) |
33 bool LinePathMode::mouseReleased (MouseEventData const& data) |
32 { |
34 { |
33 if (Super::mouseReleased (data)) |
35 if (Super::mouseReleased (data)) |