![]() |
Eclipse SUMO - Simulation of Urban MObility
|
segment More...
#include <GNEPathManager.h>
Public Member Functions | |
| GNEContour * | getContour () const |
| get contour associated with segment | |
| GNEContour * | getFromContour () const |
| get from contour associated with segment (only if this is the first path 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 | |
| GNEPathElement * | getPathElement () const |
| get path element | |
| const GNELane * | getPreviousLane () const |
| get previous lane | |
| Segment * | getPreviousSegment () const |
| get previous segment | |
| GNEContour * | getToContour () const |
| get to contour associated with segment (only if this is the last path 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, GNEPathElement *element, const GNEJunction *junction, std::vector< Segment * > &segments) | |
| constructor for junctions | |
| Segment (GNEPathManager *pathManager, GNEPathElement *element, const GNELane *lane, std::vector< Segment * > &segments) | |
| constructor for lanes | |
| ~Segment () | |
| destructor | |
Protected Attributes | |
| GNEContour * | myContour |
| contour associated with segment | |
| GNEContour * | myFromContour |
| from contour, used for moving elements (only in the first 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) | |
| GNEPathElement * | myPathElement |
| path element | |
| GNEPathManager * | myPathManager |
| path manager | |
| Segment * | myPreviousSegment |
| pointer to previous segment (use for draw red line) | |
| GNEContour * | myToContour |
| to contour, used for moving elements (only in the last segment) | |
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 49 of file GNEPathManager.h.
| GNEPathManager::Segment::Segment | ( | GNEPathManager * | pathManager, |
| GNEPathElement * | element, | ||
| const GNELane * | lane, | ||
| std::vector< Segment * > & | segments | ||
| ) |
constructor for lanes
Definition at line 39 of file GNEPathManager.cpp.
References GNEPathManager::addSegmentInLaneSegments(), myFromContour, myNextSegment, myPathManager, myPreviousSegment, and myToContour.
| GNEPathManager::Segment::Segment | ( | GNEPathManager * | pathManager, |
| GNEPathElement * | element, | ||
| const GNEJunction * | junction, | ||
| std::vector< Segment * > & | segments | ||
| ) |
constructor for junctions
Definition at line 70 of file GNEPathManager.cpp.
References GNEPathManager::addSegmentInJunctionSegments(), myFromContour, myNextSegment, myPathManager, myPreviousSegment, and myToContour.
| GNEPathManager::Segment::~Segment | ( | ) |
destructor
Definition at line 101 of file GNEPathManager.cpp.
|
private |
default constructor
Definition at line 217 of file GNEPathManager.cpp.
|
privatedelete |
Invalidated copy constructor.
| GNEContour * GNEPathManager::Segment::getContour | ( | ) | const |
get contour associated with segment
Definition at line 126 of file GNEPathManager.cpp.
Referenced by GNELaneAreaDetector::drawJunctionPartialGL(), GNEEdgeRelData::drawJunctionPartialGL(), GNERoute::drawJunctionPartialGL(), GNEVehicle::drawJunctionPartialGL(), GNELaneAreaDetector::drawLanePartialGL(), GNEEdgeData::drawLanePartialGL(), GNEEdgeRelData::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanJunctionPartial(), and GNEDemandElementPlan::drawPlanLanePartial().
| GNEContour * GNEPathManager::Segment::getFromContour | ( | ) | const |
get from contour associated with segment (only if this is the first path segment)
Definition at line 132 of file GNEPathManager.cpp.
Referenced by GNELaneAreaDetector::drawLanePartialGL().
| const GNEJunction * GNEPathManager::Segment::getJunction | ( | ) | const |
get junction associated with this segment
Definition at line 188 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 162 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 178 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 194 of file GNEPathManager.cpp.
| GNEPathElement * GNEPathManager::Segment::getPathElement | ( | ) | const |
get path element
Definition at line 156 of file GNEPathManager.cpp.
| const GNELane * GNEPathManager::Segment::getPreviousLane | ( | ) | const |
get previous lane
Definition at line 168 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 200 of file GNEPathManager.cpp.
| GNEContour * GNEPathManager::Segment::getToContour | ( | ) | const |
get to contour associated with segment (only if this is the last path segment)
Definition at line 138 of file GNEPathManager.cpp.
Referenced by GNELaneAreaDetector::drawLanePartialGL().
| bool GNEPathManager::Segment::isFirstSegment | ( | ) | const |
check if segment is the first path's segment
Definition at line 144 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 206 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 150 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 212 of file GNEPathManager.cpp.
Referenced by GNEPathManager::buildPath(), and GNEPathManager::markLabelSegment().
Invalidated assignment operator.
|
protected |
contour associated with segment
Definition at line 126 of file GNEPathManager.h.
|
protected |
from contour, used for moving elements (only in the first segment)
Definition at line 129 of file GNEPathManager.h.
|
protected |
junction associated with this segment
Definition at line 114 of file GNEPathManager.h.
|
protected |
flag for check if this segment is a label segment
Definition at line 123 of file GNEPathManager.h.
|
protected |
lane associated with this segment
Definition at line 111 of file GNEPathManager.h.
|
protected |
pointer to next segment (use for draw red line)
Definition at line 117 of file GNEPathManager.h.
|
protected |
path element
Definition at line 108 of file GNEPathManager.h.
|
protected |
path manager
Definition at line 105 of file GNEPathManager.h.
|
protected |
pointer to previous segment (use for draw red line)
Definition at line 120 of file GNEPathManager.h.
|
protected |
to contour, used for moving elements (only in the last segment)
Definition at line 132 of file GNEPathManager.h.