215 void setGeometry(osg::Geometry* geom) {
237 const MSLane::VehCont::iterator& at,
278 osg::Geometry* myGeom;
void drawLane2LaneConnections() const
const std::vector< SUMOReal > & getShapeRotations() const
Representation of a vehicle in the micro simulation.
void setColor(const GUIVisualizationSettings &s) const
sets the color according to the currente settings
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.
The simulated network and simulation perfomer.
Representation of a lane in the micro simulation (gui-version)
void drawLinkRules(const GUINet &net) const
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)
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.
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
void drawLinkRule(const GUINet &net, MSLink *link, const PositionVector &shape, SUMOReal x1, SUMOReal x2) const
SUMOReal getEdgeLaneNumber() 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.
MSVehicle * removeVehicle(MSVehicle *remVehicle, MSMoveReminder::Notification notification)
void detectCollisions(SUMOTime timestep, const std::string &stage)
SUMOReal getHalfWidth() const
SUMOReal myHalfLaneWidth
Half of lane width, for speed-up.
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