57 GUIEdge(
const std::string&
id,
int numericalID,
59 const std::string& streetName,
const std::string& edgeType,
int priority,
72 static std::vector<GUIGlID>
getIDs(
bool includeInternal);
92 double x2,
double y2,
double prev,
double wanted);
146 FXMutexLock locker(
myLock);
151 FXMutexLock locker(
myLock);
157 FXMutexLock locker(
myLock);
162 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 getColorValue(const GUIVisualizationSettings &s, int activeScheme) const
gets the color value according to the current scheme index
double getAllowedSpeed() const
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
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
GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window.
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
void drawMesoVehicles(const GUIVisualizationSettings &s) const
void addContainer(MSTransportable *c) const
Add a container to myContainers.
void lock() const
grant exclusive access to the mesoscopic state
void removeContainer(MSTransportable *c) const
Remove container from myContainers.
RGBColor getMesoColor() const
virtual void closeBuilding()
Has to be called after all edges were built and all connections were set.
double getScaleValue(int activeScheme) const
gets the scaling value according to the current scheme index
MSLane & getLane(int laneNo)
returns the enumerated lane (!!! why not private with a friend?)
GUIEdge & operator=(const GUIEdge &s)
invalidated assignment operator
double getRelativeSpeed() const
return meanSpead divided by allowedSpeed
static std::pair< double, double > getLaneOffsets(double x1, double y1, double x2, double y2, double prev, double wanted)
void closeTraffic(const GUILane *lane)
close this edge for traffic
MESegment * getSegmentAtPosition(const Position &pos)
returns the segment closest to the given position
const std::string getOptionalName() const
Returns the street name.
GUIEdge(const GUIEdge &s)
invalidated copy constructor
bool isSelected() const
whether this lane is selected in the GUI
void addRerouter()
add a rerouter
static double getTotalLength(bool includeInternal, bool eachLane)
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void addPerson(MSTransportable *p) const
Boundary getBoundary() const
Returns the street's geometry.
void removePerson(MSTransportable *p) const
const std::vector< RGBColor > & getSegmentColors() const
return segment colors (meso)
static std::vector< GUIGlID > getIDs(bool includeInternal)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
std::vector< RGBColor > mySegmentColors
The color of the segments (cached)
void unlock() const
release exclusive access to the mesoscopic state
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
GUIEdge(const std::string &id, int numericalID, const SumoXMLEdgeFunc function, const std::string &streetName, const std::string &edgeType, int priority, double distance)
Constructor.
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.
virtual void removeContainer(MSTransportable *container) const
Remove container from myContainers.
virtual void addPerson(MSTransportable *p) const
virtual void addContainer(MSTransportable *container) const
Add a container to myContainers.
virtual void removePerson(MSTransportable *p) const
Representation of a lane in the micro simulation.
A point in 2D or 3D with translation and scaling methods.