![]() |
Eclipse SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNELane.h>
Public Member Functions | |
| bool | drawAsRailway () const |
| draw as railway | |
| DrawingConstants (const GNELane *lane) | |
| parameter constructor | |
| bool | drawSuperposed () const |
| draw superposed | |
| GUIVisualizationSettings::Detail | getDetail () const |
| get detail | |
| double | getDrawingWidth () const |
| get lane drawing width | |
| double | getExaggeration () const |
| get exaggeration | |
| double | getInternalDrawingWidth () const |
| get internal lane drawing width | |
| double | getOffset () const |
| get lane offset | |
| void | update (const GUIVisualizationSettings &s) |
| update lane drawing constants | |
Protected Attributes | |
| GUIVisualizationSettings::Detail | myDetail = GUIVisualizationSettings::Detail::Level4 |
| detail level | |
| bool | myDrawAsRailway = false |
| draw as railway | |
| double | myDrawingWidth = 0 |
| lane drawing width | |
| bool | myDrawSuperposed = false |
| draw supersposed (reduced width so that the lane markings below are visible) | |
| double | myExaggeration = 0 |
| exaggeration | |
| double | myInternalDrawingWidth = 0 |
| internal lane drawing width (used for drawing selected lanes) | |
| const GNELane * | myLane |
| lane | |
| double | myOffset = 0 |
| lane offset | |
Private Member Functions | |
| DrawingConstants ()=delete | |
| invalidate default constructor | |
| DrawingConstants (const DrawingConstants &)=delete | |
| Invalidated copy constructor. | |
| DrawingConstants & | operator= (const DrawingConstants &)=delete |
| Invalidated assignment operator. | |
| GNELane::DrawingConstants::DrawingConstants | ( | const GNELane * | lane | ) |
parameter constructor
Definition at line 62 of file GNELane.cpp.
References DrawingConstants(), GNELane::GNELane(), and myLane.
Referenced by DrawingConstants(), DrawingConstants(), and operator=().
|
privatedelete |
invalidate default constructor
|
privatedelete |
Invalidated copy constructor.
References DrawingConstants().
| bool GNELane::DrawingConstants::drawAsRailway | ( | ) | const |
| bool GNELane::DrawingConstants::drawSuperposed | ( | ) | const |
| GUIVisualizationSettings::Detail GNELane::DrawingConstants::getDetail | ( | ) | const |
| double GNELane::DrawingConstants::getDrawingWidth | ( | ) | const |
get lane drawing width
Definition at line 118 of file GNELane.cpp.
References myDrawingWidth.
Referenced by GNEContour::buildContourEdge(), and GNEStopPlan::updateGeometry().
| double GNELane::DrawingConstants::getExaggeration | ( | ) | const |
| double GNELane::DrawingConstants::getInternalDrawingWidth | ( | ) | const |
get internal lane drawing width
Definition at line 124 of file GNELane.cpp.
References myInternalDrawingWidth.
| double GNELane::DrawingConstants::getOffset | ( | ) | const |
get lane offset
Definition at line 130 of file GNELane.cpp.
References myOffset.
Referenced by GNEContour::buildContourEdge().
|
privatedelete |
Invalidated assignment operator.
References DrawingConstants().
| void GNELane::DrawingConstants::update | ( | const GUIVisualizationSettings & | s | ) |
update lane drawing constants
Definition at line 68 of file GNELane.cpp.
References GUIVisualizationSettings::getDetailLevel(), NBEdge::isBidiEdge(), NBEdge::isBidiRail(), isRailway(), GUIVisualizationSettings::laneWidthExaggeration, myDetail, myDrawAsRailway, myDrawingWidth, myDrawSuperposed, myExaggeration, myInternalDrawingWidth, myLane, myOffset, GUIVisualizationSettings::selectorFrameScale, GUIVisualizationSettings::showRails, GUIVisualizationSettings::spreadSuperposed, SUMO_const_laneMarkWidth, SUMO_const_laneWidth, and SVC_BUS.
|
protected |
|
protected |
draw as railway
Definition at line 102 of file GNELane.h.
Referenced by drawAsRailway(), and update().
|
protected |
lane drawing width
Definition at line 90 of file GNELane.h.
Referenced by getDrawingWidth(), and update().
|
protected |
draw supersposed (reduced width so that the lane markings below are visible)
Definition at line 105 of file GNELane.h.
Referenced by drawSuperposed(), and update().
|
protected |
exaggeration
Definition at line 87 of file GNELane.h.
Referenced by getExaggeration(), and update().
|
protected |
internal lane drawing width (used for drawing selected lanes)
Definition at line 93 of file GNELane.h.
Referenced by getInternalDrawingWidth(), and update().
|
protected |
|
protected |