![]() |
Eclipse SUMO - Simulation of Urban MObility
|
segment More...
#include <GNEPathManager.h>
Public Member Functions | |
| const GNEJunction * | getJunction () const |
| get junction associated with this segment More... | |
| const GNELane * | getLane () const |
| get lane associated with this segment More... | |
| const GNELane * | getNextLane () const |
| get next lane More... | |
| Segment * | getNextSegment () const |
| get next segment More... | |
| PathElement * | getPathElement () const |
| get path element More... | |
| const GNELane * | getPreviousLane () const |
| get previous lane More... | |
| Segment * | getPreviousSegment () const |
| get previous segment More... | |
| bool | isFirstSegment () const |
| check if segment is the first path's segment More... | |
| bool | isLabelSegment () const |
| check if segment is label segment More... | |
| bool | isLastSegment () const |
| check if segment is the last path's segment More... | |
| void | markSegmentLabel () |
| mark segment as middle segment More... | |
| Segment (GNEPathManager *pathManager, PathElement *element, const GNEJunction *junction, const GNELane *previousLane, const GNELane *nextLane) | |
| constructor for junctions More... | |
| Segment (GNEPathManager *pathManager, PathElement *element, const GNELane *lane, const bool firstSegment, const bool lastSegment) | |
| constructor for lanes More... | |
| void | setNextSegment (Segment *nexSegment) |
| set next segment More... | |
| void | setPreviousSegment (Segment *nexSegment) |
| set previous segment More... | |
| ~Segment () | |
| destructor More... | |
Protected Attributes | |
| const bool | myFirstSegment |
| first segment More... | |
| const GNEJunction * | myJunction |
| junction associated with this segment More... | |
| bool | myLabelSegment |
| flag for check if this segment is a label segment More... | |
| const GNELane * | myLane |
| lane associated with this segment More... | |
| const bool | myLastSegment |
| lastSegment More... | |
| const GNELane * | myNextLane |
| next lane More... | |
| Segment * | myNextSegment |
| pointer to next segment (use for draw red line) More... | |
| PathElement * | myPathElement |
| path element More... | |
| GNEPathManager * | myPathManager |
| path manager More... | |
| const GNELane * | myPreviousLane |
| previous lane More... | |
| Segment * | myPreviousSegment |
| pointer to previous segment (use for draw red line) More... | |
Private Member Functions | |
| Segment & | operator= (const Segment &)=delete |
| Invalidated assignment operator. More... | |
| Segment () | |
| default constructor More... | |
| Segment (const Segment &)=delete | |
| Invalidated copy constructor. More... | |
segment
Definition at line 48 of file GNEPathManager.h.
| GNEPathManager::Segment::Segment | ( | GNEPathManager * | pathManager, |
| PathElement * | element, | ||
| const GNELane * | lane, | ||
| const bool | firstSegment, | ||
| const bool | lastSegment | ||
| ) |
constructor for lanes
Definition at line 38 of file GNEPathManager.cpp.
References GNEPathManager::addSegmentInLaneSegments(), and myPathManager.
| GNEPathManager::Segment::Segment | ( | GNEPathManager * | pathManager, |
| PathElement * | element, | ||
| const GNEJunction * | junction, | ||
| const GNELane * | previousLane, | ||
| const GNELane * | nextLane | ||
| ) |
constructor for junctions
Definition at line 56 of file GNEPathManager.cpp.
References GNEPathManager::addSegmentInJunctionSegments(), and myPathManager.
| GNEPathManager::Segment::~Segment | ( | ) |
destructor
Definition at line 74 of file GNEPathManager.cpp.
|
private |
default constructor
Definition at line 174 of file GNEPathManager.cpp.
|
privatedelete |
Invalidated copy constructor.
| const GNEJunction * GNEPathManager::Segment::getJunction | ( | ) | const |
get junction associated with this segment
Definition at line 133 of file GNEPathManager.cpp.
Referenced by GNEPathManager::clearSegmentFromJunctionAndLaneSegments().
| const GNELane * GNEPathManager::Segment::getLane | ( | ) | const |
get lane associated with this segment
Definition at line 107 of file GNEPathManager.cpp.
Referenced by GNEPathManager::clearSegmentFromJunctionAndLaneSegments(), and GNEDemandElement::drawPersonPlanPartial().
| const GNELane * GNEPathManager::Segment::getNextLane | ( | ) | const |
get next lane
Definition at line 123 of file GNEPathManager.cpp.
| GNEPathManager::Segment * GNEPathManager::Segment::getNextSegment | ( | ) | const |
get next segment
Definition at line 139 of file GNEPathManager.cpp.
Referenced by GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), and GNEDemandElement::drawPersonPlanPartial().
| GNEPathManager::PathElement * GNEPathManager::Segment::getPathElement | ( | ) | const |
get path element
Definition at line 101 of file GNEPathManager.cpp.
Referenced by GNERoute::drawPartialGL(), and GNEVehicle::drawPartialGL().
| const GNELane * GNEPathManager::Segment::getPreviousLane | ( | ) | const |
get previous lane
Definition at line 113 of file GNEPathManager.cpp.
| GNEPathManager::Segment * GNEPathManager::Segment::getPreviousSegment | ( | ) | const |
get previous segment
Definition at line 151 of file GNEPathManager.cpp.
Referenced by GNEDemandElement::drawPersonPlanPartial().
| bool GNEPathManager::Segment::isFirstSegment | ( | ) | const |
check if segment is the first path's segment
Definition at line 81 of file GNEPathManager.cpp.
Referenced by GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), and GNEDemandElement::drawPersonPlanPartial().
| bool GNEPathManager::Segment::isLabelSegment | ( | ) | const |
check if segment is label segment
Definition at line 163 of file GNEPathManager.cpp.
Referenced by GNELaneAreaDetector::drawPartialGL().
| bool GNEPathManager::Segment::isLastSegment | ( | ) | const |
check if segment is the last path's segment
Definition at line 91 of file GNEPathManager.cpp.
Referenced by GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), and GNEDemandElement::drawPersonPlanPartial().
| void GNEPathManager::Segment::markSegmentLabel | ( | ) |
mark segment as middle segment
Definition at line 169 of file GNEPathManager.cpp.
Referenced by GNEPathManager::calculatePathEdges().
Invalidated assignment operator.
| void GNEPathManager::Segment::setNextSegment | ( | GNEPathManager::Segment * | nextSegment | ) |
set next segment
Definition at line 145 of file GNEPathManager.cpp.
Referenced by GNEPathManager::calculatePathEdges().
| void GNEPathManager::Segment::setPreviousSegment | ( | GNEPathManager::Segment * | previousSegment | ) |
set previous segment
Definition at line 157 of file GNEPathManager.cpp.
Referenced by GNEPathManager::calculatePathEdges().
|
protected |
first segment
Definition at line 109 of file GNEPathManager.h.
|
protected |
junction associated with this segment
Definition at line 124 of file GNEPathManager.h.
|
protected |
flag for check if this segment is a label segment
Definition at line 133 of file GNEPathManager.h.
|
protected |
lane associated with this segment
Definition at line 115 of file GNEPathManager.h.
|
protected |
lastSegment
Definition at line 112 of file GNEPathManager.h.
|
protected |
next lane
Definition at line 121 of file GNEPathManager.h.
|
protected |
pointer to next segment (use for draw red line)
Definition at line 127 of file GNEPathManager.h.
|
protected |
path element
Definition at line 106 of file GNEPathManager.h.
|
protected |
|
protected |
previous lane
Definition at line 118 of file GNEPathManager.h.
|
protected |
pointer to previous segment (use for draw red line)
Definition at line 130 of file GNEPathManager.h.