241 void setGeometry(osg::Geometry* geom) {
273 const MSLane::VehCont::iterator& at,
331 osg::Geometry* myGeom;
std::vector< int > myShapeSegments
the meso segment index for each geometry segment
virtual void incorporateVehicle(MSVehicle *veh, SUMOReal pos, SUMOReal speed, SUMOReal 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 drawLane2LaneConnections() const
std::vector< RGBColor > myShapeColors
The color of the shape parts (cached)
const std::vector< SUMOReal > & getShapeRotations() const
SUMOReal getColorValue(int activeScheme) const
gets the color value according to the current scheme index
MSEdge & getEdge() const
Returns the lane's edge.
Representation of a vehicle in the micro simulation.
SUMOReal getLoadedEdgeWeight() const
Returns the loaded weight (effort) for the edge of this lane.
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
void resetPartialOccupation(MSVehicle *v)
Removes the information about a vehicle lapping into this lane.
void drawLinkRules(const GUIVisualizationSettings &s, const GUINet &net) const
void closeTraffic(bool rebuildAllowed=true)
close this lane for traffic
Stores the information about how to visualize structures.
PositionVector splitAtSegments(const PositionVector &shape)
add intermediate points at segment borders
const std::string & getParentName() const
Returns the name of the parent object (if any)
void drawTextAtEnd(const std::string &text, const PositionVector &shape, SUMOReal x, const GUIVisualizationTextSettings &settings) const
bool setFunctionalColor(int activeScheme) const
sets the color according to the current scheme index and some lane function
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Notification
Definition of a vehicle state.
void drawMarkings(const GUIVisualizationSettings &s, SUMOReal scale) const
draw lane borders and white markings
SUMOReal getScaleValue(int activeScheme) const
gets the scaling value according to the current scheme index
const std::vector< SUMOReal > & getShapeLengths() const
void drawCrossties(SUMOReal length, SUMOReal spacing, SUMOReal halfWidth) const
draw crossties for railroads or pedestrian crossings
bool integrateNewVehicle(SUMOTime t)
A class that stores a 2D geometrical boundary.
bool setMultiColor(const GUIColorer &c) const
sets multiple colors according to the current scheme index and some lane function ...
The simulated network and simulation perfomer.
void drawBikeMarkings() const
bike lane markings on top of an intersection
Representation of a lane in the micro simulation (gui-version)
std::vector< SUMOReal > myShapeRotations
The rotations of the shape parts.
const std::string & getID() const
Returns the id.
A road/street connecting two junctions.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
void drawLinkNo(const GUIVisualizationSettings &s) const
helper methods
bool executeMovements(SUMOTime t, std::vector< MSLane * > &into)
MFXMutex myLock
The mutex used to avoid concurrent updates of the vehicle buffer.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void planMovements(const SUMOTime t)
bool drawAsWaterway(const GUIVisualizationSettings &s) const
whether to draw this lane as a waterway
std::vector< SUMOReal > myShapeLengths
The lengths of the shape parts.
SUMOReal setPartialOccupation(MSVehicle *v)
Sets the information about a vehicle lapping into this lane.
SUMOReal firstWaitingTime() const
void drawDirectionIndicators() const
direction indicators for lanes
MSVehicle * removeVehicle(MSVehicle *remVehicle, MSMoveReminder::Notification notification, bool notify)
std::vector< MSVehicle * > VehCont
Container for vehicles.
SUMOReal getEdgeLaneNumber() const
void drawLinkRule(const GUIVisualizationSettings &s, const GUINet &net, MSLink *link, const PositionVector &shape, SUMOReal x1, SUMOReal x2) const
void swapAfterLaneChange(SUMOTime t)
moves myTmpVehicles int myVehicles after a lane change procedure
The vehicle has departed (was inserted into the network)
void drawTLSLinkNo(const GUIVisualizationSettings &s, const GUINet &net) const
A MSNet extended by some values for usage within the gui.
GUILane(const std::string &id, SUMOReal maxSpeed, SUMOReal length, MSEdge *const edge, int numericalID, const PositionVector &shape, SUMOReal width, SVCPermissions permissions, int index)
Constructor.
SUMOReal getStoredEdgeTravelTime() const
Returns the stored traveltime for the edge of this lane.
void detectCollisions(SUMOTime timestep, const std::string &stage)
SUMOReal myHalfLaneWidth
Half of lane width, for speed-up.
bool drawAsRailway(const GUIVisualizationSettings &s) const
whether to draw this lane as a railway
bool myAmClosed
state for dynamic lane closings
SUMOReal myQuarterLaneWidth
Quarter of lane width, for speed-up.
const VehCont & getVehiclesSecure() const
Returns the vehicles container; locks it for microsimulation.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Representation of a lane in the micro simulation.
A window containing a gl-object's parameter.
void releaseVehicles() const
Allows to use the container for microsimulation again.
const PositionVector & getShape() const