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

Method GenerateRouteAltitudeChart

libs/map/routing_manager.cpp:1394–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1392}
1393
1394bool RoutingManager::DistanceAltitude::GenerateRouteAltitudeChart(uint32_t width, uint32_t height,
1395 vector<uint8_t> & imageRGBAData) const
1396{
1397 if (GetSize() == 0)
1398 return false;
1399
1400 return maps::GenerateChart(width, height, m_distances, m_altitudes, GetStyleReader().GetCurrentStyle(),
1401 imageRGBAData);
1402}
1403
1404void RoutingManager::DistanceAltitude::CalculateAscentDescent(uint32_t & totalAscentM, uint32_t & totalDescentM) const
1405{

Calls 2

GenerateChartFunction · 0.85
GetCurrentStyleMethod · 0.80

Tested by

no test coverage detected