![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEPathElement.h>
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 GNELane * | getFirstPathLane () const =0 |
| get first path lane | |
| virtual GNELane * | getLastPathLane () const =0 |
| get last path lane | |
Private Member Functions | |
| GNEPathElement ()=delete | |
| invalidate default constructor | |
| GNEPathElement (const GNEPathElement &)=delete | |
| Invalidated copy constructor. | |
| GNEPathElement & | operator= (const GNEPathElement &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| const GNEPathElement::Options | myOptions = GNEPathElement::Options::NETWORK_ELEMENT |
| pathElement option | |
Definition at line 36 of file GNEPathElement.h.
|
strong |
| Enumerator | |
|---|---|
| NETWORK_ELEMENT | |
| ADDITIONAL_ELEMENT | |
| DEMAND_ELEMENT | |
| DATA_ELEMENT | |
| ROUTE | |
Definition at line 39 of file GNEPathElement.h.
| GNEPathElement::GNEPathElement | ( | const GNEPathElement::Options | options | ) |
constructor
Definition at line 27 of file GNEPathElement.cpp.
|
virtual |
destructor
Definition at line 32 of file GNEPathElement.cpp.
|
privatedelete |
invalidate default constructor
|
privatedelete |
Invalidated copy constructor.
|
pure virtual |
implement in children+
compute pathElement
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.
Referenced by GNEContainerFrame::createPath(), GNEPersonFrame::createPath(), GNERouteFrame::createPath(), GNENetHelper::AttributeCarriers::insertDemandElement(), and GNEDemandElementPlan::setPlanAttribute().
|
pure virtual |
Draws partial object over junction.
| [in] | s | The settings for the current view (may influence drawing) |
| [in] | segment | junction segment |
| [in] | offsetFront | front 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.
|
pure virtual |
Draws partial object over lane.
| [in] | s | The settings for the current view (may influence drawing) |
| [in] | segment | lane segment |
| [in] | offsetFront | front 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.
|
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().
|
pure virtual |
get last 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::getPersonPlanProblem(), GNEDemandElementPlan::getPlanAttributePosition(), GNEDemandElementPlan::isPlanPersonValid(), and GNEDemandElementPlan::updatePlanGeometry().
| GNEPathElement::Options GNEPathElement::getPathElementOptions | ( | ) | const |
| bool GNEPathElement::isAdditionalElement | ( | ) | const |
check if pathElement is an additional element
Definition at line 48 of file GNEPathElement.cpp.
References ADDITIONAL_ELEMENT, and myOptions.
| bool GNEPathElement::isDataElement | ( | ) | const |
check if pathElement is a data element
Definition at line 60 of file GNEPathElement.cpp.
References DATA_ELEMENT, and myOptions.
| bool GNEPathElement::isDemandElement | ( | ) | const |
check if pathElement is a demand element
Definition at line 54 of file GNEPathElement.cpp.
References DEMAND_ELEMENT, and myOptions.
| bool GNEPathElement::isNetworkElement | ( | ) | const |
check if pathElement is a network element
Definition at line 42 of file GNEPathElement.cpp.
References myOptions, and NETWORK_ELEMENT.
|
pure virtual |
check if path element is selected
Implemented in GNEAdditional, GNEGenericData, and GNEDemandElement.
| 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().
|
privatedelete |
Invalidated assignment operator.
|
private |
pathElement option
Definition at line 104 of file GNEPathElement.h.
Referenced by getPathElementOptions(), isAdditionalElement(), isDataElement(), isDemandElement(), isNetworkElement(), and isRoute().