Skip to content

Commit

Permalink
Updated GNELaneAreaDetector. Refs #15676
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Nov 11, 2024
1 parent 311a07c commit ca487eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/netedit/elements/additional/GNELaneAreaDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ GNELaneAreaDetector::drawLanePartialGL(const GUIVisualizationSettings& s, const
// calculate contour and draw dotted geometry
myAdditionalContour.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)) {
gViewObjectsHandler.addToRedrawPathElements(this);
}
}
}

Expand Down Expand Up @@ -373,6 +377,10 @@ GNELaneAreaDetector::drawJunctionPartialGL(const GUIVisualizationSettings& s, co
}
// calculate contour
myAdditionalContour.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 ca487eb

Please sign in to comment.