67 GUIEdge(
const std::string&
id,
int numericalID,
69 const std::string& streetName,
const std::string& edgeType,
int priority);
79 static std::vector<GUIGlID>
getIDs(
bool includeInternal);
101 static void fill(std::vector<GUIEdge*>& netsWrappers);
SUMOReal getScaleValue(size_t activeScheme) const
gets the scaling value according to the current scheme index
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
static std::pair< SUMOReal, SUMOReal > getLaneOffsets(SUMOReal x1, SUMOReal y1, SUMOReal x2, SUMOReal y2, SUMOReal prev, SUMOReal wanted)
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Stores the information about how to visualize structures.
virtual void addContainer(MSTransportable *container) const
Add a container to myContainers.
SUMOReal getFlow() const
return flow based on meanSpead
void addPerson(MSTransportable *p) const
void lock() const
grant exclusive access to the mesoscopic state
void removeContainer(MSTransportable *c) const
Remove container from myContainers.
The base class for microscopic and mesoscopic vehicles.
EdgeBasicFunction
Defines possible edge types.
static SUMOReal getTotalLength(bool includeInternal, bool eachLane)
A class that stores a 2D geometrical boundary.
virtual void removeContainer(MSTransportable *container) const
Remove container from myContainers.
void addContainer(MSTransportable *c) const
Add a container to myContainers.
Representation of a lane in the micro simulation (gui-version)
SUMOReal getRelativeSpeed() const
return meanSpead divided by allowedSpeed
A road/street connecting two junctions (gui-version)
A road/street connecting two junctions.
void removePerson(MSTransportable *p) const
virtual void removePerson(MSTransportable *p) const
GUIEdge & operator=(const GUIEdge &s)
invalidated assignment operator
virtual void addPerson(MSTransportable *p) const
void closeTraffic(const GUILane *lane)
close this edge for traffic
A point in 2D or 3D with translation and scaling methods.
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
SUMOReal getColorValue(size_t activeScheme) const
gets the color value according to the current scheme index
SUMOReal getAllowedSpeed() const
MSLane & getLane(size_t laneNo)
returns the enumerated lane (!!! why not private with a friend?)
void addRerouter()
add a rerouter
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
void drawMesoVehicles(const GUIVisualizationSettings &s) const
void unlock()
release mutex lock
GUIEdge(const std::string &id, int numericalID, const EdgeBasicFunction function, const std::string &streetName, const std::string &edgeType, int priority)
Constructor.
static std::vector< GUIGlID > getIDs(bool includeInternal)
MESegment * getSegmentAtPosition(const Position &pos)
returns the segment closest to the given position
unsigned int getVehicleNo() const
SUMOReal getBruttoOccupancy() const
MFXMutex myLock
The mutex used to avoid concurrent updates of myPersons/ myContainers.
A mutex encapsulator which locks/unlocks the given mutex on construction/destruction, respectively.
A single mesoscopic segment (cell)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::string getVehicleIDs() const
Boundary getBoundary() const
Returns the street's geometry.
Representation of a lane in the micro simulation.
A window containing a gl-object's parameter.
static void fill(std::vector< GUIEdge * > &netsWrappers)
void unlock() const
release exclusive access to the mesoscopic state