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.

◆ ~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.

Member Function Documentation

◆ computePathElement()

virtual void GNEPathElement::computePathElement ( )
pure virtual

◆ 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 GNELaneAreaDetector, GNEOverheadWire, GNEEdgeData, GNEEdgeRelData, GNETAZRelData, GNEContainer, GNEPerson, GNEPersonTrip, GNERide, GNERoute, GNERouteDistribution, GNERouteRef, GNEStop, GNEStopPlan, GNETranship, GNETransport, GNEVehicle, GNEVType, GNEVTypeDistribution, GNEVTypeRef, GNEWalk, and GNEAdditional.

◆ 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 GNELaneAreaDetector, GNEOverheadWire, GNEEdgeData, GNEEdgeRelData, GNETAZRelData, GNEContainer, GNEPerson, GNEPersonTrip, GNERide, GNERoute, GNERouteDistribution, GNERouteRef, GNEStop, GNEStopPlan, GNETranship, GNETransport, GNEVehicle, GNEVType, GNEVTypeDistribution, GNEVTypeRef, GNEWalk, and GNEAdditional.

◆ getFirstPathLane()

virtual GNELane * GNEPathElement::getFirstPathLane ( ) const
pure virtual

get first path lane

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

Referenced by GNEDemandElementPlan::getPlanAttributePosition(), GNEDemandElementPlan::isPlanPersonValid(), and GNEDemandElementPlan::updatePlanGeometry().

Here is the caller graph for this function:

◆ getLastPathLane()

virtual GNELane * GNEPathElement::getLastPathLane ( ) const
pure virtual

◆ getPathElementOptions()

GNEPathElement::Options GNEPathElement::getPathElementOptions ( ) const

get path element option

Definition at line 36 of file GNEPathElement.cpp.

References myOptions.

◆ 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, GNEGenericData, and GNEDemandElement.

◆ 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 GNEStopFrame::getStopParameter(), and GNERouteHandler::reverse().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

Field Documentation

◆ myOptions

const GNEPathElement::Options GNEPathElement::myOptions = GNEPathElement::Options::NETWORK_ELEMENT
private

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