263 static std::string
isRouteValid(
const std::vector<GNEEdge*>& edges);
287 const GNESegment* segment,
const double offsetFront,
288 const GUIGeometry& geometry,
const double exaggeration)
const;
292 const double offsetFront,
const GUIGeometry& geometry,
const double exaggeration)
const;
const double DEFAULT_VEH_PROB
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A class that stores a 2D geometrical boundary.
Problem
enum class for demandElement problems
A NBNetBuilder extended by visualisation and editing capabilities.
bool isValid(SumoXMLAttr key, const std::string &value) override
GNEMoveElement * getMoveElement() const override
methods to retrieve the elements linked to this route
GNELane * getLastPathLane() const override
get last path lane
std::string getParentName() const override
Returns the name of the parent object.
std::string getAttribute(SumoXMLAttr key) const override
inherited from GNEAttributeCarrier
SUMOVehicleClass myVClass
SUMOVehicleClass (Only used for drawing)
bool checkCreatingVehicleOverRoute() const
check if we're creating a vehicle or flow over route
double getAttributeDouble(SumoXMLAttr key) const override
SUMOTime myCycleTime
cycleTime
std::string getHierarchyName() const override
get Hierarchy Name (Used in AC Hierarchy)
Problem isDemandElementValid() const override
check if current demand element is valid to be written into XML (by default true, can be reimplemente...
GNERoute & operator=(GNERoute *)=delete
Invalidated assignment operator.
void writeDemandElement(OutputDevice &device) const override
write demand element element into a xml file
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own popup-menu.
void updateGeometry() override
update pre-computed geometry information
Parameterised * getParameters() override
get parameters associated with this route
void drawRoutePartialJunction(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const double offsetFront, const GUIGeometry &geometry, const double exaggeration) const
draw route partial junction
void computePathElement() override
compute pathElement
double getExaggeration(const GUIVisualizationSettings &s) const override
return exaggeration associated with this GLObject
void fixDemandElementProblem() override
fix demand element problem (by default throw an exception, has to be reimplemented in children)
static GNEDemandElement * copyRoute(const GNERoute *originalRoute)
create a copy of the given route
Position getAttributePosition(SumoXMLAttr key) const override
void drawLanePartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over lane.
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
std::string getPopUpID() const override
get PopPup ID (Used in AC Hierarchy)
std::string getDemandElementProblem() const override
return a string with the current demand element problem (by default empty, can be reimplemented in ch...
void drawRoutePartialLane(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNESegment *segment, const double offsetFront, const GUIGeometry &geometry, const double exaggeration) const
draw route partial lane
void splitEdgeGeometry(const double splitPosition, const GNENetworkElement *originalElement, const GNENetworkElement *newElement, GNEUndoList *undoList) override
split geometry
const RGBColor & getColor() const override
get color
SUMOVehicleClass getVClass() const override
obtain VClass related with this demand element
static std::string isRouteValid(const std::vector< GNEEdge * > &edges)
check if a route is valid
void drawJunctionPartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over junction.
GNELane * getFirstPathLane() const override
get first path lane
RGBColor myColor
route color
GNERoute(GNERoute *)=delete
Invalidated copy constructor.
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
Position getPositionInView() const override
Returns position of additional in view.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
double myProbability
probability
Stores the information about how to visualize structures.
Static storage of an output device and its base (abstract) implementation.
An upper class for objects with additional parameters.
std::map< std::string, std::string > Map
parameters map
A point in 2D or 3D with translation and scaling methods.
static const RGBColor INVISIBLE