Skip to content

Commit

Permalink
Added DottedContourType::WALKINGAREA. Fixed #15794
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Dec 5, 2024
1 parent 509c22f commit e5619f4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/netedit/elements/network/GNEWalkingArea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ GNEWalkingArea::drawGL(const GUIVisualizationSettings& s) const {
}
// draw dotted contour
if (contourMode) {
myNetworkElementContour.drawDottedContour(s, GUIDottedGeometry::DottedContourType::REMOVE, s.dottedContourSettings.segmentWidth, false);
myNetworkElementContour.drawDottedContour(s, GUIDottedGeometry::DottedContourType::WALKINGAREA, s.dottedContourSettings.segmentWidth, false);
} else {
myNetworkElementContour.drawDottedContours(s, d, this, s.dottedContourSettings.segmentWidth, true);
}
Expand Down
2 changes: 2 additions & 0 deletions src/utils/gui/div/GUIDottedGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ GUIDottedGeometry::DottedGeometryColor::getColor(const GUIVisualizationSettings&
myColorFlag = true;
return RGBColor::CYAN.changedBrightness(-30);
}
case DottedContourType::WALKINGAREA:
return settings.junctionColorer.getScheme().getColor(6);
default:
return RGBColor::BLACK;
}
Expand Down
19 changes: 10 additions & 9 deletions src/utils/gui/div/GUIDottedGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ class GUIDottedGeometry {
public:
/// @enum for dotted cotour type
enum class DottedContourType {
INSPECT, // Inspecting element
REMOVE, // Mouse over element to remove
SELECT, // Mouse over element to select
MOVE, // Mouse over element to move
FRONT, // Element marked as "front element"
OVER, // Mouse over element (orange)
FROM, // Element marked as from (green)
TO, // Element marked as to (magenta)
RELATED, // Element marked as related (cyan)
INSPECT, // Inspecting element
REMOVE, // Mouse over element to remove
SELECT, // Mouse over element to select
MOVE, // Mouse over element to move
FRONT, // Element marked as "front element"
OVER, // Mouse over element (orange)
FROM, // Element marked as from (green)
TO, // Element marked as to (magenta)
RELATED, // Element marked as related (cyan)
WALKINGAREA, // Used if we're drawing walking areas in contour mode
NOTHING
};

Expand Down

0 comments on commit e5619f4

Please sign in to comment.