58 GUIEdge(
const std::string&
id,
int numericalID,
60 const std::string& streetName,
const std::string& edgeType,
int priority,
73 static std::vector<GUIGlID>
getIDs(
bool includeInternal);
91 double x2,
double y2,
double prev,
double wanted);
144 FXMutexLock locker(
myLock);
149 FXMutexLock locker(
myLock);
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
A class that stores a 2D geometrical boundary.
A road/street connecting two junctions (gui-version)
double getClickPriority() const override
Returns the priority of receiving mouse clicks.
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
double getAllowedSpeed() const
FXMutex myLock
The mutex used to avoid concurrent updates of myPersons/ myContainers.
bool setMultiColor(const GUIColorer &c) const
sets multiple colors according to the current scheme index and edge function
const std::vector< RGBColor > & getSegmentColors() const
return segment colors (meso)
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
void drawMesoVehicles(const GUIVisualizationSettings &s) const
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own popup-menu.
RGBColor getMesoColor() const
double getColorValue(const GUIVisualizationSettings &s, int activeScheme) const override
gets the color value according to the current scheme index
MSLane & getLane(int laneNo)
returns the enumerated lane (!!! why not private with a friend?)
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
double getRelativeSpeed() const
return meanSpead divided by allowedSpeed
void unlock() const override
release exclusive access to the mesoscopic state
void lock() const override
grant exclusive access to the mesoscopic state
void closeTraffic(const GUILane *lane)
close this edge for traffic
MESegment * getSegmentAtPosition(const Position &pos)
returns the segment closest to the given position
virtual void closeBuilding() override
Has to be called after all edges were built and all connections were set.
GUIEdge(const GUIEdge &s)
invalidated copy constructor
void addTransportable(MSTransportable *t) const override
void addRerouter()
add a rerouter
static double getTotalLength(bool includeInternal, bool eachLane)
void releasePersons() const
Allows to use the container for microsimulation again.
static std::pair< double, double > getLaneOffsets(double x1, double y1, double x2, double y2, double prev, double wanted)
Boundary getBoundary() const
Returns the street's geometry.
static std::vector< GUIGlID > getIDs(bool includeInternal)
GUIEdge & operator=(const GUIEdge &s)
invalidated assignment operator
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own parameter window.
const std::string getOptionalName() const override
Returns the street name.
std::vector< RGBColor > mySegmentColors
The color of the segments (cached)
double getScaleValue(const GUIVisualizationSettings &s, int activeScheme) const
gets the scaling value according to the current scheme index
void removeTransportable(MSTransportable *t) const override
bool isSelected() const override
whether this lane is selected in the GUI
double getPendingEmits() const
get number of vehicles waiting for departure on this edge
bool setFunctionalColor(const GUIColorer &c) const
sets the color according to the current scheme index and some edge function
bool myShowDeadEnd
whether to highlight this edge as a dead-end edge
GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own type parameter window.
const std::set< MSTransportable *, ComparatorNumericalIdLess > & getPersonsSecure() const
Returns this edge's persons set; locks it for microsimulation.
Representation of a lane in the micro simulation (gui-version)
A window containing a gl-object's parameter.
Stores the information about how to visualize structures.
A single mesoscopic segment (cell)
The base class for microscopic and mesoscopic vehicles.
A road/street connecting two junctions.
std::set< MSTransportable *, ComparatorNumericalIdLess > myPersons
Persons on the edge for drawing and pushbutton.
virtual void removeTransportable(MSTransportable *t) const
virtual void addTransportable(MSTransportable *t) const
Representation of a lane in the micro simulation.
A point in 2D or 3D with translation and scaling methods.