MCPcopy Create free account
hub / github.com/comaps/comaps / DrawLine

Method DrawLine

qt/ruler.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void 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
46void Ruler::EraseLine(df::DrapeApi & drapeApi)
47{

Callers 1

SubmitRulerPointMethod · 0.80

Calls 4

DrapeApiLineDataClass · 0.85
RemoveLineMethod · 0.80
ColorClass · 0.50
AddLineMethod · 0.45

Tested by

no test coverage detected