 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
77 GUILane(
const std::string&
id,
double maxSpeed,
78 double length,
MSEdge*
const edge,
int numericalID,
81 const std::string& type);
240 void setGeometry(osg::Geometry* geom) {
287 const MSLane::VehCont::iterator& at,
342 osg::Geometry* myGeom;
void detectCollisions(SUMOTime timestep, const std::string &stage)
PositionVector splitAtSegments(const PositionVector &shape)
add intermediate points at segment borders
void drawTLSLinkNo(const GUIVisualizationSettings &s, const GUINet &net) const
A window containing a gl-object's parameter.
bool setMultiColor(const GUIVisualizationSettings &s, const GUIColorer &c, RGBColor &col) const
sets multiple colors according to the current scheme index and some lane function
double myQuarterLaneWidth
Quarter of lane width, for speed-up.
Representation of a lane in the micro simulation.
std::vector< int > myShapeSegments
the meso segment index for each geometry segment
The simulated network and simulation perfomer.
double getEdgeLaneNumber() const
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
void debugDrawFoeIntersections() const
draw intersection positions of foe internal lanes with this one
double getLoadedEdgeWeight() const
Returns the loaded weight (effort) for the edge of this lane.
void drawLinkNo(const GUIVisualizationSettings &s) const
helper methods
std::vector< MSVehicle * > VehCont
Container for vehicles.
bool setFunctionalColor(const GUIColorer &c, RGBColor &col, int activeScheme=-1) const
bool isLaneOrEdgeSelected() const
whether this lane or its parent edge is selected in the GUI
bool isSelected() const
whether this lane is selected in the GUI
void drawDirectionIndicators(double exaggeration, bool spreadSuperposed) const
direction indicators for lanes
std::string getParentName() const
Returns the name of the parent object (if any)
virtual void incorporateVehicle(MSVehicle *veh, double pos, double speed, double posLat, const MSLane::VehCont::iterator &at, MSMoveReminder::Notification notification=MSMoveReminder::NOTIFICATION_DEPARTED)
Inserts the vehicle into this lane, and informs it about entering the network.
void closeTraffic(bool rebuildAllowed=true)
close this lane for traffic
static const RGBColor MESO_USE_LANE_COLOR
special color to signify alternative coloring scheme
MSVehicle * removeVehicle(MSVehicle *remVehicle, MSMoveReminder::Notification notification, bool notify)
void drawBikeMarkings() const
bike lane markings on top of an intersection
void drawLinkRules(const GUIVisualizationSettings &s, const GUINet &net) const
void resetPartialOccupation(MSVehicle *v)
Removes the information about a vehicle lapping into this lane.
void executeMovements(const SUMOTime t)
void integrateNewVehicles()
GUILane(const std::string &id, double maxSpeed, double length, MSEdge *const edge, int numericalID, const PositionVector &shape, double width, SVCPermissions permissions, int index, bool isRampAccel, const std::string &type)
Constructor.
RGBColor setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
const PositionVector & getShape() const
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
bool drawAsRailway(const GUIVisualizationSettings &s) const
whether to draw this lane as a railway
const std::vector< double > & getShapeRotations() const
A class that stores a 2D geometrical boundary.
bool drawAsWaterway(const GUIVisualizationSettings &s) const
whether to draw this lane as a waterway
void setJunctionApproaches(const SUMOTime t) const
const std::vector< double > & getShapeLengths() const
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void drawMarkings(const GUIVisualizationSettings &s, double scale) const
draw lane borders and white markings
A road/street connecting two junctions.
std::vector< double > myShapeRotations
The rotations of the shape parts.
double firstWaitingTime() const
The vehicle has departed (was inserted into the network)
std::vector< double > myShapeLengths
The lengths of the shape parts.
double setPartialOccupation(MSVehicle *v)
Sets the information about a vehicle lapping into this lane.
double getStoredEdgeTravelTime() const
Returns the stored traveltime for the edge of this lane.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
double myHalfLaneWidth
Half of lane width, for speed-up.
MSEdge & getEdge() const
Returns the lane's edge.
bool myAmClosed
state for dynamic lane closings
double getPendingEmits() const
get number of vehicles waiting for departure on this lane
Representation of a lane in the micro simulation (gui-version)
void releaseVehicles() const
Allows to use the container for microsimulation again.
void removeParking(MSVehicle *veh)
remove parking vehicle
FXMutex myLock
The mutex used to avoid concurrent updates of the vehicle buffer.
const VehCont & getVehiclesSecure() const
Returns the vehicles container; locks it for microsimulation.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
void planMovements(const SUMOTime t)
std::vector< RGBColor > myShapeColors
The color of the shape parts (cached)
double getColorValue(const GUIVisualizationSettings &s, int activeScheme) const
gets the color value according to the current scheme index
double getScaleValue(int activeScheme) const
gets the scaling value according to the current scheme index
Stores the information about how to visualize structures.
A MSNet extended by some values for usage within the gui.
void drawLane2LaneConnections(double exaggeration) const
void swapAfterLaneChange(SUMOTime t)
moves myTmpVehicles int myVehicles after a lane change procedure
const std::string & getID() const
Returns the id.
Notification
Definition of a vehicle state.
void drawLinkRule(const GUIVisualizationSettings &s, const GUINet &net, MSLink *link, const PositionVector &shape, double x1, double x2) const
Representation of a vehicle in the micro simulation.