222 void setGeometry(osg::Geometry* geom) {
244 const MSLane::VehCont::iterator& at,
300 osg::Geometry* myGeom;
void drawLane2LaneConnections() const
std::vector< RGBColor > myShapeColors
The color of the shape parts (cached)
const std::vector< SUMOReal > & getShapeRotations() const
Representation of a vehicle in the micro simulation.
SUMOReal getScaleValue(size_t activeScheme) const
gets the scaling value according to the current scheme index
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 drawLinkRules(const GUIVisualizationSettings &s, const GUINet &net) const
unsigned int myIndex
The lane index.
Stores the information about how to visualize structures.
std::vector< MSVehicle * > VehCont
Container for vehicles.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Notification
Definition of a vehicle state.
void drawTextAtEnd(const std::string &text, const PositionVector &shape, SUMOReal x) const
void drawMarkings(const GUIVisualizationSettings &s, SUMOReal scale) const
draw lane borders and white markings
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.
A road/street connecting two junctions.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
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 drawTLSLinkNo(const GUINet &net) const
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 firstWaitingTime() const
void drawLinkNo() const
helper methods
GUILane(const std::string &id, SUMOReal maxSpeed, SUMOReal length, MSEdge *const edge, unsigned int numericalID, const PositionVector &shape, SUMOReal width, SVCPermissions permissions, unsigned int index)
Constructor.
MSVehicle * removeVehicle(MSVehicle *remVehicle, MSMoveReminder::Notification notification, bool notify)
virtual void incorporateVehicle(MSVehicle *veh, SUMOReal pos, SUMOReal speed, const MSLane::VehCont::iterator &at, MSMoveReminder::Notification notification=MSMoveReminder::NOTIFICATION_DEPARTED)
Inserts the vehicle into this lane, and informs it about entering the network.
bool setFunctionalColor(size_t activeScheme) const
sets the color according to the current scheme index and some lane function
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)
SUMOReal getColorValue(size_t activeScheme) const
gets the color value according to the current scheme index
A MSNet extended by some values for usage within the gui.
SUMOReal getStoredEdgeTravelTime() const
Returns the stored traveltime for the edge of this lane.
void detectCollisions(SUMOTime timestep, const std::string &stage)
SUMOReal getHalfWidth() const
SUMOReal myHalfLaneWidth
Half of lane width, for speed-up.
bool drawAsRailway(const GUIVisualizationSettings &s) const
whether to draw this lane as a railway
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