Skip to content

Commit

Permalink
updated data elements. Refs #13894
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Dec 19, 2023
1 parent deb3589 commit 77b949f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/netedit/elements/data/GNEEdgeData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ GNEEdgeData::drawLanePartialGL(const GUIVisualizationSettings& s, const GNEPathM
myContour.drawDottedContours(s, d, s.dottedContourSettings.segmentWidth, true);
}
// calculate contour and draw dotted geometry
myContour.calculateContourEdge2(s, d, segment->getLane()->getParentEdge(), true, true,
s.dottedContourSettings.segmentWidth);
myContour.calculateContourEdge(s, d, segment->getLane()->getParentEdge(), true, true);
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/netedit/elements/data/GNEEdgeRelData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ GNEEdgeRelData::drawLanePartialGL(const GUIVisualizationSettings& s, const GNEPa
}
// draw dotted contour
if (getParentEdges().front() == segment->getLane()->getParentEdge()) {
myContour.calculateContourEdge2(s, d, getParentEdges().front(), true, false, s.dottedContourSettings.segmentWidth);
myContour.calculateContourEdge(s, d, getParentEdges().front(), true, false);
}
if (getParentEdges().back() == segment->getLane()->getParentEdge()) {
myContour.calculateContourEdge2(s, d, getParentEdges().back(), false, true, s.dottedContourSettings.segmentWidth);
myContour.calculateContourEdge(s, d, getParentEdges().back(), false, true);
}
}
}
Expand All @@ -226,7 +226,7 @@ GNEEdgeRelData::drawJunctionPartialGL(const GUIVisualizationSettings& s, const G

// draw dotted contour
if (segment->getPreviousLane() && segment->getNextLane()) {
myContour.calculateContourEdges2(s, d, segment->getPreviousLane()->getParentEdge(), segment->getNextLane()->getParentEdge(), s.dottedContourSettings.segmentWidth);
myContour.calculateContourEdges(s, d, segment->getPreviousLane()->getParentEdge(), segment->getNextLane()->getParentEdge());
}
}
}
Expand Down
6 changes: 2 additions & 4 deletions src/netedit/elements/data/GNETAZRelData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,10 @@ GNETAZRelData::drawGL(const GUIVisualizationSettings& s) const {
}
if (myNet->getViewNet()->getDataViewOptions().TAZRelDrawing()) {
// calculate contour and draw dotted geometry
myContour.calculateContourExtrudedShape2(s, d, myTAZRelGeometryCenter.getShape(), 0.5, 1, true, true, 0,
s.dottedContourSettings.segmentWidth);
myContour.calculateContourExtrudedShape(s, d, myTAZRelGeometryCenter.getShape(), 0.5, 1, true, true, 0);
} else {
// calculate contour and draw dotted geometry
myContour.calculateContourExtrudedShape2(s, d, myTAZRelGeometry.getShape(), 0.5, 1, true, true, 0,
s.dottedContourSettings.segmentWidth);
myContour.calculateContourExtrudedShape(s, d, myTAZRelGeometry.getShape(), 0.5, 1, true, true, 0);
}
}
}
Expand Down

0 comments on commit 77b949f

Please sign in to comment.