Eclipse SUMO - Simulation of Urban MObility
GNELane::DrawingConstants Class Reference

FOX-declaration. More...

#include <GNELane.h>

Collaboration diagram for GNELane::DrawingConstants:
[legend]

Public Member Functions

bool drawAsRailway () const
 draw as railway More...
 
 DrawingConstants (const GNELane *lane)
 parameter constructor More...
 
bool drawSuperposed () const
 draw superposed More...
 
GUIVisualizationSettings::Detail getDetail () const
 get detail More...
 
double getDrawingWidth () const
 get lane drawing width More...
 
double getExaggeration () const
 get exaggeration More...
 
double getInternalDrawingWidth () const
 get internal lane drawing width More...
 
double getOffset () const
 get lane offset More...
 
void update (const GUIVisualizationSettings &s)
 update lane drawing constants More...
 

Protected Attributes

GUIVisualizationSettings::Detail myDetail = GUIVisualizationSettings::Detail::Level4
 detail level More...
 
bool myDrawAsRailway = false
 draw as railway More...
 
double myDrawingWidth = 0
 lane drawing width More...
 
bool myDrawSuperposed = false
 draw supersposed (reduced width so that the lane markings below are visible) More...
 
double myExaggeration = 0
 exaggeration More...
 
double myInternalDrawingWidth = 0
 internal lane drawing width (used for drawing selected lanes) More...
 
const GNELanemyLane
 lane More...
 
double myOffset = 0
 lane offset More...
 

Private Member Functions

 DrawingConstants ()=delete
 invalidate default constructor More...
 
 DrawingConstants (const DrawingConstants &)=delete
 Invalidated copy constructor. More...
 
DrawingConstantsoperator= (const DrawingConstants &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

FOX-declaration.

class for lane drawing constants

Definition at line 52 of file GNELane.h.

Constructor & Destructor Documentation

◆ DrawingConstants() [1/3]

GNELane::DrawingConstants::DrawingConstants ( const GNELane lane)

parameter constructor

Definition at line 68 of file GNELane.cpp.

◆ DrawingConstants() [2/3]

GNELane::DrawingConstants::DrawingConstants ( )
privatedelete

invalidate default constructor

◆ DrawingConstants() [3/3]

GNELane::DrawingConstants::DrawingConstants ( const DrawingConstants )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ drawAsRailway()

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().

Here is the caller graph for this function:

◆ drawSuperposed()

bool GNELane::DrawingConstants::drawSuperposed ( ) const

draw superposed

Definition at line 154 of file GNELane.cpp.

Referenced by GNELane::drawArrows(), and GNEConnection::drawGL().

Here is the caller graph for this function:

◆ getDetail()

GUIVisualizationSettings::Detail GNELane::DrawingConstants::getDetail ( ) const

get detail

Definition at line 142 of file GNELane.cpp.

Referenced by GNELane::calculateLaneContour(), GNELane::drawChildren(), GNELane::drawGL(), GNELane::drawLane(), GNELane::drawLaneAsRailway(), GNENeteditAttributes::drawLaneReference(), GNELane::drawMarkingsAndBoundings(), GNELane::drawSelectedLane(), GNELane::drawShapeEdited(), GNELane::drawStartEndGeometryPoints(), and GNELane::drawTLSLinkNo().

Here is the caller graph for this function:

◆ getDrawingWidth()

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().

Here is the caller graph for this function:

◆ getExaggeration()

double GNELane::DrawingConstants::getExaggeration ( ) const

get exaggeration

Definition at line 118 of file GNELane.cpp.

Referenced by GNELane::calculateLaneContour(), GNELane::drawDirectionIndicators(), and GNELane::drawLaneAsRailway().

Here is the caller graph for this function:

◆ getInternalDrawingWidth()

double GNELane::DrawingConstants::getInternalDrawingWidth ( ) const

get internal lane drawing width

Definition at line 130 of file GNELane.cpp.

◆ getOffset()

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().

Here is the caller graph for this function:

◆ operator=()

DrawingConstants& GNELane::DrawingConstants::operator= ( const DrawingConstants )
privatedelete

Invalidated assignment operator.

◆ update()

Field Documentation

◆ myDetail

GUIVisualizationSettings::Detail GNELane::DrawingConstants::myDetail = GUIVisualizationSettings::Detail::Level4
protected

detail level

Definition at line 99 of file GNELane.h.

Referenced by update().

◆ myDrawAsRailway

bool GNELane::DrawingConstants::myDrawAsRailway = false
protected

draw as railway

Definition at line 102 of file GNELane.h.

Referenced by update().

◆ myDrawingWidth

double GNELane::DrawingConstants::myDrawingWidth = 0
protected

lane drawing width

Definition at line 90 of file GNELane.h.

Referenced by update().

◆ myDrawSuperposed

bool GNELane::DrawingConstants::myDrawSuperposed = false
protected

draw supersposed (reduced width so that the lane markings below are visible)

Definition at line 105 of file GNELane.h.

Referenced by update().

◆ myExaggeration

double GNELane::DrawingConstants::myExaggeration = 0
protected

exaggeration

Definition at line 87 of file GNELane.h.

Referenced by update().

◆ myInternalDrawingWidth

double GNELane::DrawingConstants::myInternalDrawingWidth = 0
protected

internal lane drawing width (used for drawing selected lanes)

Definition at line 93 of file GNELane.h.

Referenced by update().

◆ myLane

const GNELane* GNELane::DrawingConstants::myLane
protected

lane

Definition at line 84 of file GNELane.h.

Referenced by update().

◆ myOffset

double GNELane::DrawingConstants::myOffset = 0
protected

lane offset

Definition at line 96 of file GNELane.h.

Referenced by update().


The documentation for this class was generated from the following files: