Skip to content

Commit

Permalink
now indicating waypoint index and reached status. refs #36
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Nov 5, 2021
1 parent d8b9c39 commit d56a254
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/guisim/GUIVehicle.cpp
Expand Up @@ -716,7 +716,13 @@ GUIVehicle::drawRouteHelper(const GUIVisualizationSettings& s, const MSRoute& r,
Position pos = stop.lane->geometryPositionAtOffset(stopLanePos);
GLHelper::setColor(col);
GLHelper::drawBoxLines(stop.lane->getShape().getOrthogonal(pos, 10, true, stop.lane->getWidth()), 0.1);
std::string label = stop.pars.speed > 0 ? "waypoint" : (stop.reached ? "stopped" : "stop " + toString(stopIndex));
std::string label = (stop.pars.speed > 0
? (stop.reached ? "passing waypoint" : "waypoint ")
: (stop.reached ? "stopped" : "stop "));
if (!stop.reached) {
label += toString(stopIndex);
}

if (stop.isOpposite) {
label += " (opposite)";
}
Expand Down

0 comments on commit d56a254

Please sign in to comment.