66 GUIEdge(
const std::string&
id,
int numericalID,
68 const std::string& streetName,
const std::string& edgeType,
int priority);
78 static std::vector<GUIGlID>
getIDs(
bool includeInternal);
97 static std::pair<double, double>
getLaneOffsets(
double x1,
double y1,
98 double x2,
double y2,
double prev,
double wanted);
static std::pair< double, double > getLaneOffsets(double x1, double y1, double x2, double y2, double prev, double wanted)
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
double getRelativeSpeed() const
return meanSpead divided by allowedSpeed
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
double getAllowedSpeed() const
std::vector< RGBColor > mySegmentColors
The color of the segments (cached)
Stores the information about how to visualize structures.
virtual void addContainer(MSTransportable *container) const
Add a container to myContainers.
double getBruttoOccupancy() const
void addPerson(MSTransportable *p) const
void lock() const
grant exclusive access to the mesoscopic state
void removeContainer(MSTransportable *c) const
Remove container from myContainers.
double getScaleValue(int activeScheme) const
gets the scaling value according to the current scheme index
The base class for microscopic and mesoscopic vehicles.
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.
RGBColor getMesoColor() const
Representation of a lane in the micro simulation (gui-version)
MSLane & getLane(int laneNo)
returns the enumerated lane (!!! why not private with a friend?)
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
bool setMultiColor(const GUIColorer &c) const
sets multiple colors according to the current scheme index and edge function
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.
void addRerouter()
add a rerouter
bool setFunctionalColor(int activeScheme) const
sets the color according to the current scheme index and some edge function
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
static std::vector< GUIGlID > getIDs(bool includeInternal)
MESegment * getSegmentAtPosition(const Position &pos)
returns the segment closest to the given position
double getColorValue(int activeScheme) const
gets the color value according to the current scheme index
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)
double getFlow() const
return flow based on meanSpead
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
const std::vector< RGBColor > & getSegmentColors() const
return segment colors (meso)
std::string getVehicleIDs() const
GUIEdge(const std::string &id, int numericalID, const SumoXMLEdgeFunc function, const std::string &streetName, const std::string &edgeType, int priority)
Constructor.
Boundary getBoundary() const
Returns the street's geometry.
static double getTotalLength(bool includeInternal, bool eachLane)
Representation of a lane in the micro simulation.
A window containing a gl-object's parameter.
void unlock() const
release exclusive access to the mesoscopic state