149 long onDefault(FXObject*, FXSelector,
void*);
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A road/street connecting two junctions (netedit-version)
class lane2lane connection geometry
const double exaggeration
exaggeration
const double selectionScale
selection scale
LaneDrawingConstants()
default constructor
const double halfWidth
Draw as a normal lane, and reduce width to make sure that a selected edge can still be seen.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
GNELane2laneConnection myLane2laneConnections
lane2lane connections
const PositionVector & getLaneShape() const
get elements shape
long onDefault(FXObject *, FXSelector, void *)
multiplexes message to two targets
const GNELane2laneConnection & getLane2laneConnections() const
get Lane2laneConnection struct
std::string getParentName() const
Returns the name of the parent object (if any)
std::string getAttribute(SumoXMLAttr key) const
std::vector< double > myLaneRestrictedTextureRotations
Rotations of textures of restricted lanes.
bool allowPedestrians() const
check if current lane allow pedestrians
const RGBColor * mySpecialColor
optional special color
Position getPositionInView() const
Returns position of hierarchical element in view.
bool isAttributeComputed(SumoXMLAttr key) const
bool drawAsWaterway(const GUIVisualizationSettings &s) const
whether to draw this lane as a waterways
double getLengthGeometryFactor() const
get length geometry factor
bool isAttributeEnabled(SumoXMLAttr key) const
void updateGeometry()
update pre-computed geometry information
void setMoveShape(const GNEMoveResult &moveResult)
set move shape
GNEEdge * myParentEdge
parent edge (GNELanes cannot use hierarchical structures)
void deleteGLObject()
delete element
std::string getAttributeForSelection(SumoXMLAttr key) const
method for getting the attribute in the context of object selection
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
int getIndex() const
returns the index of the lane
double getExaggeration(const GUIVisualizationSettings &s) const
return exaggeration associated with this GLObject
void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList)
remove geometry point in the clicked position
GUIGeometry myLaneGeometry
lane geometry
void drawShapeEdited(const GUIVisualizationSettings &s) const
draw shape edited
void drawStartEndShapePoints(const GUIVisualizationSettings &s) const
draw start and end shape points
void drawMarkings(const GUIVisualizationSettings &s, const double exaggeration, const bool drawRailway) const
draw lane markings
void drawOverlappedRoutes(const int numRoutes) const
draw overlapped routes
void updateGLObject()
update GLObject (geometry, ID, etc.)
GNEMoveOperation * getMoveOperation()
get move operation
void buildLaneOperations(GUISUMOAbstractView &parent, GUIGLObjectPopupMenu *ret)
build lane operations contextual menu
std::vector< GNEConnection * > getGNEOutcomingConnections()
returns a vector with the outgoing GNEConnections of this lane
const std::vector< double > & getShapeRotations() const
get rotations of the single shape parts
void drawTextures(const GUIVisualizationSettings &s, const LaneDrawingConstants &laneDrawingConstants) const
draw lane textures
void buildTemplateOperations(GUISUMOAbstractView &parent, GUIGLObjectPopupMenu *ret)
build template oerations contextual menu
GNELane & operator=(const GNELane &)=delete
Invalidated assignment operator.
bool setMultiColor(const GUIVisualizationSettings &s, const GUIColorer &c, RGBColor &col) const
sets multiple colors according to the current scheme index and some lane function
void drawLaneAsRailway(const GUIVisualizationSettings &s, const LaneDrawingConstants &laneDrawingConstants) const
draw lane as railway
const Parameterised::Map & getACParametersMap() const
get parameters map
double getLaneParametricLength() const
returns the parameteric length of the lane
GNELane(const GNELane &)=delete
Invalidated copy constructor.
RGBColor setLaneColor(const GUIVisualizationSettings &s) const
set color according to edit mode and visualisation settings
bool isValid(SumoXMLAttr key, const std::string &value)
std::vector< GNEConnection * > getGNEIncomingConnections()
returns a vector with the incoming GNEConnections of this lane
void checkMouseOverLane(const double laneWidth) const
check if mouse is over lane
bool drawAsRailway(const GUIVisualizationSettings &s) const
whether to draw this lane as a railway
bool isRestricted(SUMOVehicleClass vclass) const
check if this lane is restricted
int myIndex
The index of this lane.
void drawDirectionIndicators(const GUIVisualizationSettings &s, double exaggeration, const bool drawAsRailway, const bool spreadSuperposed) const
direction indicators for lanes
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void setSpecialColor(const RGBColor *Color2, double colorValue=std::numeric_limits< double >::max())
const GUIGeometry & getLaneGeometry() const
void drawLaneArrows(const GUIVisualizationSettings &s, const double exaggeration, const bool spreadSuperposed) const
draw lane arrows
void updateCenteringBoundary(const bool updateGrid)
update centering boundary (implies change in RTREE)
double mySpecialColorValue
optional value that corresponds to which the special color corresponds
void drawChildren(const GUIVisualizationSettings &s) const
draw children
std::vector< Position > myLaneRestrictedTexturePositions
Position of textures of restricted lanes.
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)
commit move shape
double getLaneShapeLength() const
returns the length of the lane's shape
std::vector< RGBColor > myShapeColors
The color of the shape parts (cached)
double getColorValue(const GUIVisualizationSettings &s, int activeScheme) const
return value for lane coloring according to the given scheme
bool setFunctionalColor(int activeScheme, RGBColor &col) const
sets the color according to the current scheme index and some lane function
void updateConnectionIDs()
update IDs of incoming connections of this lane
void drawArrows(const GUIVisualizationSettings &s, const bool spreadSuperposed) const
draw arrows
void buildRechableOperations(GUISUMOAbstractView &parent, GUIGLObjectPopupMenu *ret)
build rechable operations contextual menu
void drawLaneStopOffset(const GUIVisualizationSettings &s, const double offset) const
draw laneStopOffset
void drawLane2LaneConnections() const
draw lane to lane connections
void buildEdgeOperations(GUISUMOAbstractView &parent, GUIGLObjectPopupMenu *ret)
build edge operations contextual menu
const std::vector< double > & getShapeLengths() const
get lengths of the single shape parts
void drawLinkNo(const GUIVisualizationSettings &s) const
draw link Number
double getSpeed() const
returns the current speed of lane
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
void drawDottedContours(const GUIVisualizationSettings &s, const bool drawRailway, const double laneWidth) const
draw dotted contours
GNEEdge * getParentEdge() const
get parent edge
A NBNetBuilder extended by visualisation and editing capabilities.
Stores the information about how to visualize structures.
std::map< std::string, std::string > Map
parameters map
A point in 2D or 3D with translation and scaling methods.