Eclipse SUMO - Simulation of Urban MObility
GNEPathManager::Segment Class Reference

segment More...

#include <GNEPathManager.h>

Collaboration diagram for GNEPathManager::Segment:
[legend]

Public Member Functions

GNEContourgetContour () const
 getcontour associated with segment More...
 
const GNEJunctiongetJunction () const
 get junction associated with this segment More...
 
const GNELanegetLane () const
 get lane associated with this segment More...
 
const GNELanegetNextLane () const
 get next lane More...
 
SegmentgetNextSegment () const
 get next segment More...
 
PathElementgetPathElement () const
 get path element More...
 
const GNELanegetPreviousLane () const
 get previous lane More...
 
SegmentgetPreviousSegment () 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

GNEContourmyContour
 contour associated with segment More...
 
const GNEJunctionmyJunction
 junction associated with this segment More...
 
bool myLabelSegment
 flag for check if this segment is a label segment More...
 
const GNELanemyLane
 lane associated with this segment More...
 
SegmentmyNextSegment
 pointer to next segment (use for draw red line) More...
 
PathElementmyPathElement
 path element More...
 
GNEPathManagermyPathManager
 path manager More...
 
SegmentmyPreviousSegment
 pointer to previous segment (use for draw red line) More...
 

Private Member Functions

Segmentoperator= (const Segment &)=delete
 Invalidated assignment operator. More...
 
 Segment ()
 default constructor More...
 
 Segment (const Segment &)=delete
 Invalidated copy constructor. More...
 

Detailed Description

segment

Definition at line 50 of file GNEPathManager.h.

Constructor & Destructor Documentation

◆ Segment() [1/4]

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.

◆ Segment() [2/4]

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.

◆ ~Segment()

GNEPathManager::Segment::~Segment ( )

destructor

Definition at line 82 of file GNEPathManager.cpp.

◆ Segment() [3/4]

GNEPathManager::Segment::Segment ( )
private

default constructor

Definition at line 177 of file GNEPathManager.cpp.

◆ Segment() [4/4]

GNEPathManager::Segment::Segment ( const Segment )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getContour()

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

Here is the caller graph for this function:

◆ getJunction()

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

Here is the caller graph for this function:

◆ getLane()

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::drawPlanLanePartial(), and GNERoute::drawRoutePartialLane().

Here is the caller graph for this function:

◆ getNextLane()

const GNELane * GNEPathManager::Segment::getNextLane ( ) const

◆ getNextSegment()

GNEPathManager::Segment * GNEPathManager::Segment::getNextSegment ( ) const

get next segment

Definition at line 154 of file GNEPathManager.cpp.

◆ getPathElement()

GNEPathManager::PathElement * GNEPathManager::Segment::getPathElement ( ) const

get path element

Definition at line 116 of file GNEPathManager.cpp.

◆ getPreviousLane()

const GNELane * GNEPathManager::Segment::getPreviousLane ( ) const

◆ getPreviousSegment()

GNEPathManager::Segment * GNEPathManager::Segment::getPreviousSegment ( ) const

get previous segment

Definition at line 160 of file GNEPathManager.cpp.

◆ isFirstSegment()

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

Here is the caller graph for this function:

◆ isLabelSegment()

bool GNEPathManager::Segment::isLabelSegment ( ) const

check if segment is label segment

Definition at line 166 of file GNEPathManager.cpp.

Referenced by GNELaneAreaDetector::drawE2PartialLane().

Here is the caller graph for this function:

◆ isLastSegment()

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(), GNEDemandElementPlan::drawEndPosition(), GNELaneAreaDetector::drawLanePartialGL(), GNEOverheadWire::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), and GNEDemandElementPlan::drawPlanLanePartial().

Here is the caller graph for this function:

◆ markSegmentLabel()

void GNEPathManager::Segment::markSegmentLabel ( )

mark segment as middle segment

Definition at line 172 of file GNEPathManager.cpp.

Referenced by GNEPathManager::buildPath().

Here is the caller graph for this function:

◆ operator=()

Segment& GNEPathManager::Segment::operator= ( const Segment )
privatedelete

Invalidated assignment operator.

Field Documentation

◆ myContour

GNEContour* GNEPathManager::Segment::myContour
protected

contour associated with segment

Definition at line 121 of file GNEPathManager.h.

◆ myJunction

const GNEJunction* GNEPathManager::Segment::myJunction
protected

junction associated with this segment

Definition at line 109 of file GNEPathManager.h.

◆ myLabelSegment

bool GNEPathManager::Segment::myLabelSegment
protected

flag for check if this segment is a label segment

Definition at line 118 of file GNEPathManager.h.

◆ myLane

const GNELane* GNEPathManager::Segment::myLane
protected

lane associated with this segment

Definition at line 106 of file GNEPathManager.h.

◆ myNextSegment

Segment* GNEPathManager::Segment::myNextSegment
protected

pointer to next segment (use for draw red line)

Definition at line 112 of file GNEPathManager.h.

Referenced by Segment().

◆ myPathElement

PathElement* GNEPathManager::Segment::myPathElement
protected

path element

Definition at line 103 of file GNEPathManager.h.

◆ myPathManager

GNEPathManager* GNEPathManager::Segment::myPathManager
protected

path manager

Definition at line 100 of file GNEPathManager.h.

Referenced by Segment().

◆ myPreviousSegment

Segment* GNEPathManager::Segment::myPreviousSegment
protected

pointer to previous segment (use for draw red line)

Definition at line 115 of file GNEPathManager.h.

Referenced by Segment().


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