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 68 of file GNELane.cpp.
|
privatedelete |
invalidate default constructor
|
privatedelete |
Invalidated copy constructor.
bool GNELane::DrawingConstants::drawAsRailway | ( | ) | const |
draw as railway
Definition at line 148 of file GNELane.cpp.
Referenced by GNELane::drawDirectionIndicators(), GNELane::drawLane(), and GNELane::drawMarkingsAndBoundings().
bool GNELane::DrawingConstants::drawSuperposed | ( | ) | const |
draw superposed
Definition at line 154 of file GNELane.cpp.
Referenced by GNELane::drawArrows(), GNEConnection::drawGL(), and GNELane::drawMarkingsAndBoundings().
GUIVisualizationSettings::Detail GNELane::DrawingConstants::getDetail | ( | ) | const |
get detail
Definition at line 142 of file GNELane.cpp.
Referenced by GNELane::calculateLaneContour(), GNELane::drawGL(), GNELane::drawLane(), GNELane::drawLaneAsRailway(), GNENeteditAttributes::drawLaneReference(), GNELane::drawMarkingsAndBoundings(), GNELane::drawSelectedLane(), GNELane::drawShapeEdited(), GNELane::drawStartEndGeometryPoints(), and GNELane::drawTLSLinkNo().
double GNELane::DrawingConstants::getDrawingWidth | ( | ) | const |
get lane drawing width
Definition at line 124 of file GNELane.cpp.
Referenced by GNEContour::buildContourEdge(), GNELane::calculateLaneContour(), GNELane::drawArrows(), GNELane::drawDirectionIndicators(), GNELane::drawLane(), GNELane::drawLaneAsRailway(), GNELane::drawLaneStopOffset(), GNELane::drawMarkingsAndBoundings(), GNELane::drawSelectedLane(), GNELane::drawTextures(), and GNEStopPlan::updateGeometry().
double GNELane::DrawingConstants::getExaggeration | ( | ) | const |
get exaggeration
Definition at line 118 of file GNELane.cpp.
Referenced by GNELane::calculateLaneContour(), GNELane::drawDirectionIndicators(), and GNELane::drawLaneAsRailway().
double GNELane::DrawingConstants::getInternalDrawingWidth | ( | ) | const |
get internal lane drawing width
Definition at line 130 of file GNELane.cpp.
double GNELane::DrawingConstants::getOffset | ( | ) | const |
get lane offset
Definition at line 136 of file GNELane.cpp.
Referenced by GNEContour::buildContourEdge(), GNELane::calculateLaneContour(), GNELane::drawArrows(), GNELane::drawDirectionIndicators(), GNELane::drawLane(), GNELane::drawLaneAsRailway(), GNELane::drawMarkingsAndBoundings(), GNELane::drawSelectedLane(), and GNELane::drawShapeEdited().
|
privatedelete |
Invalidated assignment operator.
void GNELane::DrawingConstants::update | ( | const GUIVisualizationSettings & | s | ) |
update lane drawing constants
Definition at line 74 of file GNELane.cpp.
References GUIVisualizationSettings::getDetailLevel(), GNELane::getIndex(), NBEdge::getLaneStruct(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEAttributeCarrier::isAttributeCarrierSelected(), NBEdge::isBidiEdge(), NBEdge::isBidiRail(), isRailway(), GUIVisualizationSettings::laneWidthExaggeration, myDetail, myDrawAsRailway, myDrawingWidth, myDrawSuperposed, myExaggeration, myInternalDrawingWidth, myLane, myOffset, GNELane::myParentEdge, GUIVisualizationSettings::selectorFrameScale, GUIVisualizationSettings::showRails, GUIVisualizationSettings::spreadSuperposed, SUMO_const_laneMarkWidth, SUMO_const_laneWidth, and SVC_BUS.
Referenced by GNELane::drawGL().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |