Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEPathElement Class Referenceabstract

#include <GNEPathElement.h>

Inheritance diagram for GNEPathElement:
[legend]

Public Types

enum class  Options : int {
  NETWORK_ELEMENT = 1 << 0 , ADDITIONAL_ELEMENT = 1 << 1 , DEMAND_ELEMENT = 1 << 2 , DATA_ELEMENT = 1 << 3 ,
  ROUTE = 1 << 4
}

Public Member Functions

GNEPathElement::Options getPathElementOptions () const
 get path element option
 GNEPathElement (const GNEPathElement::Options options)
 constructor
bool isAdditionalElement () const
 check if pathElement is an additional element
bool isDataElement () const
 check if pathElement is a data element
bool isDemandElement () const
 check if pathElement is a demand element
bool isNetworkElement () const
 check if pathElement is a network element
bool isRoute () const
 check if pathElement is a route
virtual ~GNEPathElement ()
 destructor
virtual void computePathElement ()=0
 implement in children+
virtual bool isPathElementSelected () const =0
 check if path element is selected
virtual void drawLanePartialGL (const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const =0
 Draws partial object over lane.
virtual void drawJunctionPartialGL (const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const =0
 Draws partial object over junction.
virtual GNELanegetFirstPathLane () const =0
 get first path lane
virtual GNELanegetLastPathLane () const =0
 get last path lane

Private Member Functions

 GNEPathElement ()=delete
 invalidate default constructor
 GNEPathElement (const GNEPathElement &)=delete
 Invalidated copy constructor.
GNEPathElementoperator= (const GNEPathElement &)=delete
 Invalidated assignment operator.

Private Attributes

const GNEPathElement::Options myOptions = GNEPathElement::Options::NETWORK_ELEMENT
 pathElement option

Detailed Description

Definition at line 36 of file GNEPathElement.h.

Member Enumeration Documentation

◆ Options

enum class GNEPathElement::Options : int
strong
Enumerator
NETWORK_ELEMENT 
ADDITIONAL_ELEMENT 
DEMAND_ELEMENT 
DATA_ELEMENT 
ROUTE 

Definition at line 39 of file GNEPathElement.h.

Constructor & Destructor Documentation

◆ GNEPathElement() [1/3]

GNEPathElement::GNEPathElement ( const GNEPathElement::Options options)

constructor

Definition at line 27 of file GNEPathElement.cpp.

References myOptions.

Referenced by GNEAdditional::GNEAdditional(), GNEAdditional::GNEAdditional(), GNEContainer::GNEContainer(), GNEContainer::GNEContainer(), GNEDemandElement::GNEDemandElement(), GNEDemandElement::GNEDemandElement(), GNEGenericData::GNEGenericData(), GNEGenericData::GNEGenericData(), GNEPathElement(), GNEPerson::GNEPerson(), GNEPerson::GNEPerson(), GNEPersonTrip::GNEPersonTrip(), GNEPersonTrip::GNEPersonTrip(), GNERide::GNERide(), GNERide::GNERide(), GNERoute::GNERoute(), GNERoute::GNERoute(), GNERoute::GNERoute(), GNERoute::GNERoute(), GNERouteDistribution::GNERouteDistribution(), GNERouteDistribution::GNERouteDistribution(), GNERouteRef::GNERouteRef(), GNERouteRef::GNERouteRef(), GNERouteRef::GNERouteRef(), GNEStop::GNEStop(), GNEStop::GNEStop(), GNEStop::GNEStop(), GNEStopPlan::GNEStopPlan(), GNEStopPlan::GNEStopPlan(), GNETranship::GNETranship(), GNETranship::GNETranship(), GNETransport::GNETransport(), GNETransport::GNETransport(), GNEVehicle::GNEVehicle(), GNEVehicle::GNEVehicle(), GNEVehicle::GNEVehicle(), GNEVehicle::GNEVehicle(), GNEVehicle::GNEVehicle(), GNEVehicle::GNEVehicle(), GNEVehicle::GNEVehicle(), GNEVehicle::GNEVehicle(), GNEVehicle::GNEVehicle(), GNEVType::GNEVType(), GNEVType::GNEVType(), GNEVType::GNEVType(), GNEVType::GNEVType(), GNEVType::GNEVType(), GNEVType::GNEVType(), GNEVTypeDistribution::GNEVTypeDistribution(), GNEVTypeDistribution::GNEVTypeDistribution(), GNEVTypeRef::GNEVTypeRef(), GNEVTypeRef::GNEVTypeRef(), GNEVTypeRef::GNEVTypeRef(), GNEWalk::GNEWalk(), GNEWalk::GNEWalk(), and operator=().

◆ ~GNEPathElement()

GNEPathElement::~GNEPathElement ( )
virtual

destructor

Definition at line 32 of file GNEPathElement.cpp.

◆ GNEPathElement() [2/3]

GNEPathElement::GNEPathElement ( )
privatedelete

invalidate default constructor

◆ GNEPathElement() [3/3]

GNEPathElement::GNEPathElement ( const GNEPathElement & )
privatedelete

Invalidated copy constructor.

References GNEPathElement().

Member Function Documentation

◆ computePathElement()

virtual void GNEPathElement::computePathElement ( )
pure virtual

implement in children+

compute pathElement

Implemented in GNEAdditional, GNEContainer, GNEEdgeData, GNEEdgeRelData, GNELaneAreaDetector, GNEOverheadWire, GNEPerson, GNEPersonTrip, GNERide, GNERoute, GNERouteDistribution, GNERouteRef, GNEStop, GNEStopPlan, GNETAZRelData, GNETranship, GNETransport, GNEVehicle, GNEVType, GNEVTypeDistribution, GNEVTypeRef, and GNEWalk.

Referenced by GNEContainerFrame::createPath(), GNEPersonFrame::createPath(), and GNENetHelper::AttributeCarriers::insertDemandElement().

Here is the caller graph for this function:

◆ drawJunctionPartialGL()

virtual void GNEPathElement::drawJunctionPartialGL ( const GUIVisualizationSettings & s,
const GNESegment * segment,
const double offsetFront ) const
pure virtual

Draws partial object over junction.

Parameters
[in]sThe settings for the current view (may influence drawing)
[in]segmentjunction segment
[in]offsetFrontfront offset

Implemented in GNEAdditional, GNEContainer, GNEEdgeData, GNEEdgeRelData, GNELaneAreaDetector, GNEOverheadWire, GNEPerson, GNEPersonTrip, GNERide, GNERoute, GNERouteDistribution, GNERouteRef, GNEStop, GNEStopPlan, GNETAZRelData, GNETranship, GNETransport, GNEVehicle, GNEVType, GNEVTypeDistribution, GNEVTypeRef, and GNEWalk.

◆ drawLanePartialGL()

virtual void GNEPathElement::drawLanePartialGL ( const GUIVisualizationSettings & s,
const GNESegment * segment,
const double offsetFront ) const
pure virtual

Draws partial object over lane.

Parameters
[in]sThe settings for the current view (may influence drawing)
[in]segmentlane segment
[in]offsetFrontfront offset

Implemented in GNEAdditional, GNEContainer, GNEEdgeData, GNEEdgeRelData, GNELaneAreaDetector, GNEOverheadWire, GNEPerson, GNEPersonTrip, GNERide, GNERoute, GNERouteDistribution, GNERouteRef, GNEStop, GNEStopPlan, GNETAZRelData, GNETranship, GNETransport, GNEVehicle, GNEVType, GNEVTypeDistribution, GNEVTypeRef, and GNEWalk.

◆ getFirstPathLane()

◆ getLastPathLane()

◆ getPathElementOptions()

GNEPathElement::Options GNEPathElement::getPathElementOptions ( ) const

get path element option

Definition at line 36 of file GNEPathElement.cpp.

References myOptions.

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

Here is the caller graph for this function:

◆ isAdditionalElement()

bool GNEPathElement::isAdditionalElement ( ) const

check if pathElement is an additional element

Definition at line 48 of file GNEPathElement.cpp.

References ADDITIONAL_ELEMENT, and myOptions.

◆ isDataElement()

bool GNEPathElement::isDataElement ( ) const

check if pathElement is a data element

Definition at line 60 of file GNEPathElement.cpp.

References DATA_ELEMENT, and myOptions.

◆ isDemandElement()

bool GNEPathElement::isDemandElement ( ) const

check if pathElement is a demand element

Definition at line 54 of file GNEPathElement.cpp.

References DEMAND_ELEMENT, and myOptions.

◆ isNetworkElement()

bool GNEPathElement::isNetworkElement ( ) const

check if pathElement is a network element

Definition at line 42 of file GNEPathElement.cpp.

References myOptions, and NETWORK_ELEMENT.

◆ isPathElementSelected()

virtual bool GNEPathElement::isPathElementSelected ( ) const
pure virtual

check if path element is selected

Implemented in GNEAdditional, GNEDemandElement, and GNEGenericData.

◆ isRoute()

bool GNEPathElement::isRoute ( ) const

check if pathElement is a route

Definition at line 66 of file GNEPathElement.cpp.

References myOptions, and ROUTE.

Referenced by GNEDemandElement::getRouteParent(), GNEStopFrame::getStopParameter(), and GNERouteHandler::reverse().

Here is the caller graph for this function:

◆ operator=()

GNEPathElement & GNEPathElement::operator= ( const GNEPathElement & )
privatedelete

Invalidated assignment operator.

References GNEPathElement().

Field Documentation

◆ myOptions


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