| 32 | } |
| 33 | |
| 34 | void Ruler::DrawLine(df::DrapeApi & drapeApi) |
| 35 | { |
| 36 | if (!IsValidPolyline()) |
| 37 | return; |
| 38 | |
| 39 | static dp::Color const lightGreyColor = dp::Color(102, 102, 102, 210); |
| 40 | |
| 41 | drapeApi.RemoveLine(m_id); |
| 42 | SetId(); |
| 43 | drapeApi.AddLine(m_id, df::DrapeApiLineData(m_polyline, lightGreyColor).Width(7.0f).ShowPoints(true).ShowId()); |
| 44 | } |
| 45 | |
| 46 | void Ruler::EraseLine(df::DrapeApi & drapeApi) |
| 47 | { |
no test coverage detected