Eclipse SUMO - Simulation of Urban MObility
|
segment More...
#include <GNEPathManager.h>
Public Member Functions | |
GNEContour * | getContour () const |
getcontour associated with segment More... | |
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, std::vector< Segment * > &segments) | |
constructor for junctions More... | |
Segment (GNEPathManager *pathManager, PathElement *element, const GNELane *lane, std::vector< Segment * > &segments) | |
constructor for lanes More... | |
~Segment () | |
destructor More... | |
Protected Attributes | |
GNEContour * | myContour |
contour associated with 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... | |
Segment * | myNextSegment |
pointer to next segment (use for draw red line) More... | |
PathElement * | myPathElement |
path element More... | |
GNEPathManager * | myPathManager |
path manager 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 50 of file GNEPathManager.h.
GNEPathManager::Segment::Segment | ( | GNEPathManager * | pathManager, |
PathElement * | element, | ||
const GNELane * | lane, | ||
std::vector< Segment * > & | segments | ||
) |
constructor for lanes
Definition at line 38 of file GNEPathManager.cpp.
References GNEPathManager::addSegmentInLaneSegments(), myNextSegment, myPathManager, and myPreviousSegment.
GNEPathManager::Segment::Segment | ( | GNEPathManager * | pathManager, |
PathElement * | element, | ||
const GNEJunction * | junction, | ||
std::vector< Segment * > & | segments | ||
) |
constructor for junctions
Definition at line 60 of file GNEPathManager.cpp.
References GNEPathManager::addSegmentInJunctionSegments(), myNextSegment, myPathManager, and myPreviousSegment.
GNEPathManager::Segment::~Segment | ( | ) |
destructor
Definition at line 82 of file GNEPathManager.cpp.
|
private |
default constructor
Definition at line 177 of file GNEPathManager.cpp.
|
privatedelete |
Invalidated copy constructor.
GNEContour * GNEPathManager::Segment::getContour | ( | ) | const |
getcontour associated with segment
Definition at line 98 of file GNEPathManager.cpp.
Referenced by GNEEdgeRelData::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), and GNEDemandElementPlan::drawPlanLanePartial().
const GNEJunction * GNEPathManager::Segment::getJunction | ( | ) | const |
get junction associated with this segment
Definition at line 148 of file GNEPathManager.cpp.
Referenced by GNEPathManager::clearSegmentFromJunctionAndLaneSegments(), and GNEVehicle::drawJunctionPartialGL().
const GNELane * GNEPathManager::Segment::getLane | ( | ) | const |
get lane associated with this segment
Definition at line 122 of file GNEPathManager.cpp.
Referenced by GNEPathManager::clearSegmentFromJunctionAndLaneSegments(), GNELaneAreaDetector::drawLanePartialGL(), GNEOverheadWire::drawLanePartialGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), GNEDemandElementPlan::drawPlanLanePartial(), and GNERoute::drawRoutePartialLane().
const GNELane * GNEPathManager::Segment::getNextLane | ( | ) | const |
get next lane
Definition at line 138 of file GNEPathManager.cpp.
Referenced by GNEPathManager::PathDraw::checkDrawPathGeometry(), GNEDemandElementPlan::drawFromArrow(), GNELaneAreaDetector::drawJunctionPartialGL(), GNEOverheadWire::drawJunctionPartialGL(), GNEEdgeRelData::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), and GNERoute::drawRoutePartialLane().
GNEPathManager::Segment * GNEPathManager::Segment::getNextSegment | ( | ) | const |
get next segment
Definition at line 154 of file GNEPathManager.cpp.
GNEPathManager::PathElement * GNEPathManager::Segment::getPathElement | ( | ) | const |
get path element
Definition at line 116 of file GNEPathManager.cpp.
const GNELane * GNEPathManager::Segment::getPreviousLane | ( | ) | const |
get previous lane
Definition at line 128 of file GNEPathManager.cpp.
Referenced by GNEPathManager::PathDraw::checkDrawPathGeometry(), GNELaneAreaDetector::drawJunctionPartialGL(), GNEOverheadWire::drawJunctionPartialGL(), GNEEdgeRelData::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), and GNEDemandElementPlan::drawToArrow().
GNEPathManager::Segment * GNEPathManager::Segment::getPreviousSegment | ( | ) | const |
get previous segment
Definition at line 160 of file GNEPathManager.cpp.
bool GNEPathManager::Segment::isFirstSegment | ( | ) | const |
check if segment is the first path's segment
Definition at line 104 of file GNEPathManager.cpp.
Referenced by GNELaneAreaDetector::drawE2PartialLane(), GNELaneAreaDetector::drawLanePartialGL(), GNEOverheadWire::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), and GNEDemandElementPlan::drawPlanLanePartial().
bool GNEPathManager::Segment::isLabelSegment | ( | ) | const |
check if segment is label segment
Definition at line 166 of file GNEPathManager.cpp.
Referenced by GNELaneAreaDetector::drawE2PartialLane().
bool GNEPathManager::Segment::isLastSegment | ( | ) | const |
check if segment is the last path's segment
Definition at line 110 of file GNEPathManager.cpp.
Referenced by GNELaneAreaDetector::drawE2PartialLane(), GNELaneAreaDetector::drawLanePartialGL(), GNEOverheadWire::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanLanePartial(), and GNEDemandElementPlan::getEndPosRadius().
void GNEPathManager::Segment::markSegmentLabel | ( | ) |
mark segment as middle segment
Definition at line 172 of file GNEPathManager.cpp.
Referenced by GNEPathManager::buildPath().
Invalidated assignment operator.
|
protected |
contour associated with segment
Definition at line 121 of file GNEPathManager.h.
|
protected |
junction associated with this segment
Definition at line 109 of file GNEPathManager.h.
|
protected |
flag for check if this segment is a label segment
Definition at line 118 of file GNEPathManager.h.
|
protected |
lane associated with this segment
Definition at line 106 of file GNEPathManager.h.
|
protected |
pointer to next segment (use for draw red line)
Definition at line 112 of file GNEPathManager.h.
Referenced by Segment().
|
protected |
path element
Definition at line 103 of file GNEPathManager.h.
|
protected |
|
protected |
pointer to previous segment (use for draw red line)
Definition at line 115 of file GNEPathManager.h.
Referenced by Segment().