| 373 | } |
| 374 | |
| 375 | CirclesPackHandle * RouteRenderer::GetPreviewHandle(size_t & index) |
| 376 | { |
| 377 | for (auto & handle : m_previewHandlesCache) |
| 378 | { |
| 379 | if (handle.second < handle.first->GetPointsCount()) |
| 380 | { |
| 381 | index = handle.second++; |
| 382 | return handle.first; |
| 383 | } |
| 384 | } |
| 385 | index = 0; |
| 386 | return nullptr; |
| 387 | } |
| 388 | |
| 389 | // Route mask is used to adjust line color for subroutes after the first stop. So subroute to the first stop |
| 390 | // point has default color, while subsequent subroutes color is adjusted with RouteArrowsMaskCar, |
nothing calls this directly
no test coverage detected