Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 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 GNELanemyLane
 lane
double myOffset = 0
 lane offset

Private Member Functions

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

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 62 of file GNELane.cpp.

References DrawingConstants(), GNELane::GNELane(), and myLane.

Referenced by DrawingConstants(), DrawingConstants(), and operator=().

Here is the caller graph for this function:

◆ DrawingConstants() [2/3]

GNELane::DrawingConstants::DrawingConstants ( )
privatedelete

invalidate default constructor

◆ DrawingConstants() [3/3]

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

Invalidated copy constructor.

References DrawingConstants().

Member Function Documentation

◆ drawAsRailway()

bool GNELane::DrawingConstants::drawAsRailway ( ) const

draw as railway

Definition at line 142 of file GNELane.cpp.

References myDrawAsRailway.

◆ drawSuperposed()

bool GNELane::DrawingConstants::drawSuperposed ( ) const

draw superposed

Definition at line 148 of file GNELane.cpp.

References myDrawSuperposed.

◆ getDetail()

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

get detail

Definition at line 136 of file GNELane.cpp.

References myDetail.

◆ getDrawingWidth()

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

Here is the caller graph for this function:

◆ getExaggeration()

double GNELane::DrawingConstants::getExaggeration ( ) const

get exaggeration

Definition at line 112 of file GNELane.cpp.

References myExaggeration.

◆ getInternalDrawingWidth()

double GNELane::DrawingConstants::getInternalDrawingWidth ( ) const

get internal lane drawing width

Definition at line 124 of file GNELane.cpp.

References myInternalDrawingWidth.

◆ getOffset()

double GNELane::DrawingConstants::getOffset ( ) const

get lane offset

Definition at line 130 of file GNELane.cpp.

References myOffset.

Referenced by GNEContour::buildContourEdge().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

References DrawingConstants().

◆ 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 getDetail(), and update().

◆ myDrawAsRailway

bool GNELane::DrawingConstants::myDrawAsRailway = false
protected

draw as railway

Definition at line 102 of file GNELane.h.

Referenced by drawAsRailway(), and update().

◆ myDrawingWidth

double GNELane::DrawingConstants::myDrawingWidth = 0
protected

lane drawing width

Definition at line 90 of file GNELane.h.

Referenced by getDrawingWidth(), and 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 drawSuperposed(), and update().

◆ myExaggeration

double GNELane::DrawingConstants::myExaggeration = 0
protected

exaggeration

Definition at line 87 of file GNELane.h.

Referenced by getExaggeration(), and 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 getInternalDrawingWidth(), and update().

◆ myLane

const GNELane* GNELane::DrawingConstants::myLane
protected

lane

Definition at line 84 of file GNELane.h.

Referenced by DrawingConstants(), and update().

◆ myOffset

double GNELane::DrawingConstants::myOffset = 0
protected

lane offset

Definition at line 96 of file GNELane.h.

Referenced by getOffset(), and update().


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