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

Function GetCurrentHalfWidth

libs/drape_frontend/route_renderer.cpp:225–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225float GetCurrentHalfWidth(df::RouteRenderer::SubrouteInfo const & subrouteInfo)
226{
227 if (subrouteInfo.m_subroute->m_maxPixelWidth < 0.0f)
228 return subrouteInfo.m_baseHalfWidth;
229
230 return std::min(subrouteInfo.m_baseHalfWidth, subrouteInfo.m_subroute->m_maxPixelWidth * 0.5f);
231}
232} // namespace
233
234RouteRenderer::RouteRenderer(PreviewPointsRequestCallback && previewPointsRequest)

Callers 3

RenderSubrouteMethod · 0.85
RenderSubrouteArrowsMethod · 0.85
RenderSubrouteMarkersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected