152 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 & operator=(const LaneDrawingConstants &)=delete
Invalidated assignment operator.
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
void drawLinkRules(const GUIVisualizationSettings &s) const
draw link rules
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)
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 asociated with this GLObject
void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList)
remove geometry point in the clicked position
GUIGeometry myLaneGeometry
lane geometry
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
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
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
void drawTLSLinkNo(const GUIVisualizationSettings &s) const
draw TLS Link Number
GNELane & operator=(const GNELane &)=delete
Invalidated assignment operator.
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
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.
const std::map< std::string, std::string > & getACParametersMap() const
get parameters map
void setSpecialColor(const RGBColor *Color2, double colorValue=std::numeric_limits< double >::max())
const GUIGeometry & getLaneGeometry() const
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)
GNEEdge * getParentEdge() const
get arent edge
A NBNetBuilder extended by visualisation and editing capabilities.
Stores the information about how to visualize structures.
A point in 2D or 3D with translation and scaling methods.