Eclipse SUMO - Simulation of Urban MObility
|
segment More...
#include <GNEPathManager.h>
Public Member Functions | |
GNEContour * | getContour () const |
getcontour associated with segment | |
const GNEJunction * | getJunction () const |
get junction associated with this segment | |
const GNELane * | getLane () const |
get lane associated with this segment | |
const GNELane * | getNextLane () const |
get next lane | |
Segment * | getNextSegment () const |
get next segment | |
PathElement * | getPathElement () const |
get path element | |
const GNELane * | getPreviousLane () const |
get previous lane | |
Segment * | getPreviousSegment () const |
get previous segment | |
bool | isFirstSegment () const |
check if segment is the first path's segment | |
bool | isLabelSegment () const |
check if segment is label segment | |
bool | isLastSegment () const |
check if segment is the last path's segment | |
void | markSegmentLabel () |
mark segment as middle segment | |
Segment (GNEPathManager *pathManager, PathElement *element, const GNEJunction *junction, std::vector< Segment * > &segments) | |
constructor for junctions | |
Segment (GNEPathManager *pathManager, PathElement *element, const GNELane *lane, std::vector< Segment * > &segments) | |
constructor for lanes | |
~Segment () | |
destructor | |
Protected Attributes | |
GNEContour * | myContour |
contour associated with segment | |
const GNEJunction * | myJunction |
junction associated with this segment | |
bool | myLabelSegment |
flag for check if this segment is a label segment | |
const GNELane * | myLane |
lane associated with this segment | |
Segment * | myNextSegment |
pointer to next segment (use for draw red line) | |
PathElement * | myPathElement |
path element | |
GNEPathManager * | myPathManager |
path manager | |
Segment * | myPreviousSegment |
pointer to previous segment (use for draw red line) | |
Private Member Functions | |
Segment & | operator= (const Segment &)=delete |
Invalidated assignment operator. | |
Segment () | |
default constructor | |
Segment (const Segment &)=delete | |
Invalidated copy constructor. | |
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 180 of file GNEPathManager.cpp.
|
privatedelete |
Invalidated copy constructor.
GNEContour * GNEPathManager::Segment::getContour | ( | ) | const |
getcontour associated with segment
Definition at line 101 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 151 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 125 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 141 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 157 of file GNEPathManager.cpp.
GNEPathManager::PathElement * GNEPathManager::Segment::getPathElement | ( | ) | const |
get path element
Definition at line 119 of file GNEPathManager.cpp.
const GNELane * GNEPathManager::Segment::getPreviousLane | ( | ) | const |
get previous lane
Definition at line 131 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 163 of file GNEPathManager.cpp.
bool GNEPathManager::Segment::isFirstSegment | ( | ) | const |
check if segment is the first path's segment
Definition at line 107 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 169 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 113 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 175 of file GNEPathManager.cpp.
Referenced by GNEPathManager::buildPath(), and GNEPathManager::markLabelSegment().
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.
|
protected |
path element
Definition at line 103 of file GNEPathManager.h.
|
protected |
path manager
Definition at line 100 of file GNEPathManager.h.
|
protected |
pointer to previous segment (use for draw red line)
Definition at line 115 of file GNEPathManager.h.