Skip to content

Commit

Permalink
Fixed problem drawing contour of LaneAreaDetectors. Refs #15551
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Nov 12, 2024
1 parent e00020c commit 44a1224
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/netedit/elements/additional/GNELaneAreaDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,10 @@ GNELaneAreaDetector::drawLanePartialGL(const GUIVisualizationSettings& s, const
// draw additional ID
drawName(getCenteringBoundary().getCenter(), s.scale, s.addName);
// draw dotted contour
myAdditionalContour.drawDottedContours(s, d, this, s.dottedContourSettings.segmentWidth, true);
segment->getContour()->drawDottedContours(s, d, this, s.dottedContourSettings.segmentWidth, true);
}
// calculate contour and draw dotted geometry
myAdditionalContour.calculateContourExtrudedShape(s, d, this, E2Geometry.getShape(), getType(), s.detectorSettings.E2Width, E2Exaggeration,
segment->getContour()->calculateContourExtrudedShape(s, d, this, E2Geometry.getShape(), getType(), s.detectorSettings.E2Width, E2Exaggeration,
segment->isFirstSegment(), segment->isLastSegment(), 0);
// check if add this path element to redraw buffer
if (!gViewObjectsHandler.isPathElementMarkForRedraw(this) && segment->getContour()->checkDrawPathContour(s, d, this)) {
Expand Down Expand Up @@ -373,10 +373,10 @@ GNELaneAreaDetector::drawJunctionPartialGL(const GUIVisualizationSettings& s, co
// draw E2 partial
drawE2PartialJunction(s, d, onlyContour, offsetFront, E2Geometry, E2Exaggeration);
// draw dotted contour
myAdditionalContour.drawDottedContours(s, d, this, s.dottedContourSettings.segmentWidth, true);
segment->getContour()->drawDottedContours(s, d, this, s.dottedContourSettings.segmentWidth, true);
}
// calculate contour
myAdditionalContour.calculateContourExtrudedShape(s, d, this, E2Geometry.getShape(), getType(), s.detectorSettings.E2Width, E2Exaggeration, false, false, 0);
segment->getContour()->calculateContourExtrudedShape(s, d, this, E2Geometry.getShape(), getType(), s.detectorSettings.E2Width, E2Exaggeration, false, false, 0);
// check if add this path element to redraw buffer
if (!gViewObjectsHandler.isPathElementMarkForRedraw(this) && segment->getContour()->checkDrawPathContour(s, d, this)) {
gViewObjectsHandler.addToRedrawPathElements(this);
Expand Down

0 comments on commit 44a1224

Please sign in to comment.