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

Method SetRadius

libs/map/user_mark.cpp:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void ColoredMarkPoint::SetRadius(float radius)
79{
80 SetDirty();
81
82 auto const vs = static_cast<float>(df::VisualParams::Instance().GetVisualScale());
83 m_coloredSymbols.m_zoomInfo.begin()->second.m_radiusInPixels = radius * vs;
84}
85
86drape_ptr<df::UserPointMark::ColoredSymbolZoomInfo> ColoredMarkPoint::GetColoredSymbols() const
87{

Callers 1

ShowUserPositionMethod · 0.80

Calls 2

GetVisualScaleMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected