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

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, const GNELane *previousLane, const GNELane *nextLane)
 constructor for junctions
 
 Segment (GNEPathManager *pathManager, PathElement *element, const GNELane *lane, const bool firstSegment, const bool lastSegment)
 constructor for lanes
 
void setNextSegment (Segment *nexSegment)
 set next segment
 
void setPreviousSegment (Segment *nexSegment)
 set previous segment
 
 ~Segment ()
 destructor
 

Protected Attributes

const bool myFirstSegment
 first 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
 
const bool myLastSegment
 lastSegment
 
const GNELanemyNextLane
 next lane
 
SegmentmyNextSegment
 pointer to next segment (use for draw red line)
 
PathElementmyPathElement
 path element
 
GNEPathManagermyPathManager
 path manager
 
const GNELanemyPreviousLane
 previous lane
 
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 48 of file GNEPathManager.h.

Constructor & Destructor Documentation

◆ Segment() [1/4]

GNEPathManager::Segment::Segment ( GNEPathManager pathManager,
PathElement element,
const GNELane lane,
const bool  firstSegment,
const bool  lastSegment 
)

constructor for lanes

Definition at line 38 of file GNEPathManager.cpp.

References GNEPathManager::addSegmentInLaneSegments(), and myPathManager.

◆ Segment() [2/4]

GNEPathManager::Segment::Segment ( GNEPathManager pathManager,
PathElement element,
const GNEJunction junction,
const GNELane previousLane,
const GNELane nextLane 
)

constructor for junctions

Definition at line 56 of file GNEPathManager.cpp.

References GNEPathManager::addSegmentInJunctionSegments(), and myPathManager.

◆ ~Segment()

GNEPathManager::Segment::~Segment ( )

destructor

Definition at line 74 of file GNEPathManager.cpp.

◆ Segment() [3/4]

GNEPathManager::Segment::Segment ( )
private

default constructor

Definition at line 174 of file GNEPathManager.cpp.

◆ Segment() [4/4]

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

Invalidated copy constructor.

Member Function Documentation

◆ getJunction()

const GNEJunction * GNEPathManager::Segment::getJunction ( ) const

get junction associated with this segment

Definition at line 133 of file GNEPathManager.cpp.

Referenced by GNEPathManager::clearSegmentFromJunctionAndLaneSegments().

Here is the caller graph for this function:

◆ getLane()

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

get lane associated with this segment

Definition at line 107 of file GNEPathManager.cpp.

Referenced by GNEPathManager::clearSegmentFromJunctionAndLaneSegments(), and GNEDemandElement::drawPersonPlanPartial().

Here is the caller graph for this function:

◆ getNextLane()

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

get next lane

Definition at line 123 of file GNEPathManager.cpp.

◆ getNextSegment()

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

get next segment

Definition at line 139 of file GNEPathManager.cpp.

Referenced by GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), and GNEDemandElement::drawPersonPlanPartial().

Here is the caller graph for this function:

◆ getPathElement()

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

get path element

Definition at line 101 of file GNEPathManager.cpp.

Referenced by GNERoute::drawPartialGL(), and GNEVehicle::drawPartialGL().

Here is the caller graph for this function:

◆ getPreviousLane()

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

get previous lane

Definition at line 113 of file GNEPathManager.cpp.

◆ getPreviousSegment()

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

get previous segment

Definition at line 151 of file GNEPathManager.cpp.

Referenced by GNEDemandElement::drawPersonPlanPartial().

Here is the caller graph for this function:

◆ isFirstSegment()

bool GNEPathManager::Segment::isFirstSegment ( ) const

check if segment is the first path's segment

Definition at line 81 of file GNEPathManager.cpp.

Referenced by GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), and GNEDemandElement::drawPersonPlanPartial().

Here is the caller graph for this function:

◆ isLabelSegment()

bool GNEPathManager::Segment::isLabelSegment ( ) const

check if segment is label segment

Definition at line 163 of file GNEPathManager.cpp.

Referenced by GNELaneAreaDetector::drawPartialGL().

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 91 of file GNEPathManager.cpp.

Referenced by GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), and GNEDemandElement::drawPersonPlanPartial().

Here is the caller graph for this function:

◆ markSegmentLabel()

void GNEPathManager::Segment::markSegmentLabel ( )

mark segment as middle segment

Definition at line 169 of file GNEPathManager.cpp.

Referenced by GNEPathManager::calculatePathEdges().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ setNextSegment()

void GNEPathManager::Segment::setNextSegment ( GNEPathManager::Segment nextSegment)

set next segment

Definition at line 145 of file GNEPathManager.cpp.

Referenced by GNEPathManager::calculatePathEdges().

Here is the caller graph for this function:

◆ setPreviousSegment()

void GNEPathManager::Segment::setPreviousSegment ( GNEPathManager::Segment previousSegment)

set previous segment

Definition at line 157 of file GNEPathManager.cpp.

Referenced by GNEPathManager::calculatePathEdges().

Here is the caller graph for this function:

Field Documentation

◆ myFirstSegment

const bool GNEPathManager::Segment::myFirstSegment
protected

first segment

Definition at line 109 of file GNEPathManager.h.

◆ myJunction

const GNEJunction* GNEPathManager::Segment::myJunction
protected

junction associated with this segment

Definition at line 124 of file GNEPathManager.h.

◆ myLabelSegment

bool GNEPathManager::Segment::myLabelSegment
protected

flag for check if this segment is a label segment

Definition at line 133 of file GNEPathManager.h.

◆ myLane

const GNELane* GNEPathManager::Segment::myLane
protected

lane associated with this segment

Definition at line 115 of file GNEPathManager.h.

◆ myLastSegment

const bool GNEPathManager::Segment::myLastSegment
protected

lastSegment

Definition at line 112 of file GNEPathManager.h.

◆ myNextLane

const GNELane* GNEPathManager::Segment::myNextLane
protected

next lane

Definition at line 121 of file GNEPathManager.h.

◆ myNextSegment

Segment* GNEPathManager::Segment::myNextSegment
protected

pointer to next segment (use for draw red line)

Definition at line 127 of file GNEPathManager.h.

◆ myPathElement

PathElement* GNEPathManager::Segment::myPathElement
protected

path element

Definition at line 106 of file GNEPathManager.h.

◆ myPathManager

GNEPathManager* GNEPathManager::Segment::myPathManager
protected

path manager

Definition at line 103 of file GNEPathManager.h.

Referenced by Segment(), and Segment().

◆ myPreviousLane

const GNELane* GNEPathManager::Segment::myPreviousLane
protected

previous lane

Definition at line 118 of file GNEPathManager.h.

◆ myPreviousSegment

Segment* GNEPathManager::Segment::myPreviousSegment
protected

pointer to previous segment (use for draw red line)

Definition at line 130 of file GNEPathManager.h.


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