MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / findPartIndexForIndex

Method findPartIndexForIndex

src/core/objects/object.cpp:1047–1056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045}
1046
1047PathPartVector::size_type PathObject::findPartIndexForIndex(MapCoordVector::size_type coords_index) const
1048{
1049 for (PathPartVector::size_type i = 0; i < path_parts.size(); ++i)
1050 {
1051 if (path_parts[i].first_index <= coords_index && path_parts[i].last_index >= coords_index)
1052 return i;
1053 }
1054 Q_ASSERT(false);
1055 return 0;
1056}
1057
1058PathCoord PathObject::findPathCoordForIndex(MapCoordVector::size_type index) const
1059{

Callers 9

fillBoundaryMethod · 0.80
startFollowingMethod · 0.80
updateFollowingMethod · 0.80
startCuttingLineMethod · 0.80
updateCuttingLineMethod · 0.80
startCuttingAreaMethod · 0.80
finishCuttingAreaMethod · 0.80
updateFollowingMethod · 0.80
clickPressMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected