Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEPathManager::Segment Class Reference

segment More...

#include <GNEPathManager.h>

Collaboration diagram for GNEPathManager::Segment:
[legend]

Public Member Functions

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

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

Private Member Functions

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

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

Here is the caller graph for this function:

◆ getJunction()

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

Here is the caller graph for this function:

◆ getLane()

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

◆ getNextLane()

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

◆ getNextSegment()

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

get next segment

Definition at line 157 of file GNEPathManager.cpp.

◆ getPathElement()

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

get path element

Definition at line 119 of file GNEPathManager.cpp.

◆ getPreviousLane()

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

◆ getPreviousSegment()

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

get previous segment

Definition at line 163 of file GNEPathManager.cpp.

◆ isFirstSegment()

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

Here is the caller graph for this function:

◆ isLabelSegment()

bool GNEPathManager::Segment::isLabelSegment ( ) const

check if segment is label segment

Definition at line 169 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 113 of file GNEPathManager.cpp.

Referenced by GNELaneAreaDetector::drawE2PartialLane(), GNELaneAreaDetector::drawLanePartialGL(), GNEOverheadWire::drawLanePartialGL(), GNERoute::drawLanePartialGL(), GNEVehicle::drawLanePartialGL(), GNEDemandElementPlan::drawPlanLanePartial(), and GNEDemandElementPlan::getEndPosRadius().

Here is the caller graph for this function:

◆ markSegmentLabel()

void GNEPathManager::Segment::markSegmentLabel ( )

mark segment as middle segment

Definition at line 175 of file GNEPathManager.cpp.

Referenced by GNEPathManager::buildPath(), and GNEPathManager::markLabelSegment().

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(), and 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(), and 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(), and Segment().


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