97 long onDefault(FXObject*, FXSelector,
void*);
237 void drawMarkings(
const bool& selectedEdge,
double scale)
const;
268 void drawCrossties(
double length,
double spacing,
double halfWidth)
const;
bool drawAsWaterway(const GUIVisualizationSettings &s) const
whether to draw this lane as a waterways
double getLaneShapeLength() const
returns the length of the lane's shape
void setLaneColor(const GUIVisualizationSettings &s) const
set color according to edit mode and visualisation settings
std::vector< double > myShapeLengths
The lengths of the shape parts.
const std::string & getParentName() const
Returns the name of the parent object.
GNETLSEditorFrame * myTLSEditor
the tls-editor for setting multiple links in TLS-mode
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
GNELane & operator=(const GNELane &)=delete
Invalidated assignment operator.
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
const std::vector< GNEShape * > & getShapeChilds() const
get shape childs of lane
const RGBColor * mySpecialColor
optional special color
Stores the information about how to visualize structures.
bool isRestricted(SUMOVehicleClass vclass) const
check if this lane is restricted
std::string getAttributeForSelection(SumoXMLAttr key) const
method for getting the attribute in the context of object selection
bool setFunctionalColor(int activeScheme) const
sets the color according to the current scheme index and some lane function
double getColorValue(int activeScheme) const
return value for lane coloring according to the given scheme
A NBNetBuilder extended by visualisation and editing capabilities.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
bool setMultiColor(const GUIColorer &c) const
sets multiple colors according to the current scheme index and some lane function ...
std::vector< RGBColor > myShapeColors
The color of the shape parts (cached)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Boundary getBoundary() const
returns the boundry (including lanes)
int getIndex() const
returns the index of the lane
A class that stores a 2D geometrical boundary.
int myIndex
The index of this lane.
std::vector< double > myLaneRestrictedTextureRotations
Rotations of textures of restricted lanes.
double getSpeed() const
returns the current speed of lane
bool drawAsRailway(const GUIVisualizationSettings &s) const
whether to draw this lane as a railway
void drawDirectionIndicators() const
direction indicators for lanes
void drawLane2LaneConnections() const
draw lane to lane connections
void drawArrows() const
draw arrows
GNEEdge & getParentEdge()
Returns underlying parent edge.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
void drawTLSLinkNo(const GUIVisualizationSettings &s) const
draw TLS Link Number
const std::vector< double > & getShapeRotations() const
returns the vector with the shape rotations
void removeLaneOfAdditionalParents(GNEUndoList *undoList, bool allowEmpty)
remove lane of Additional Parent
std::vector< double > myShapeRotations
std::vector< GNEConnection * > getGNEIncomingConnections()
returns a vector with the incoming GNEConnections of this lane
void addShapeChild(GNEShape *shape)
add shape child to this lane
std::vector< GNEShape * > myShapes
list with the shapes vinculated with this lane
void drawMarkings(const bool &selectedEdge, double scale) const
draw lane markings
std::vector< GNEConnection * > getGNEOutcomingConnections()
returns a vector with the outgoing GNEConnections of this lane
void updateGeometry()
update pre-computed geometry information
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in all GNEAttributeCarriers.
A road/street connecting two junctions (netedit-version)
const std::vector< double > & getShapeLengths() const
returns the vector with the shape lengths
void drawLinkRules() const
draw link rules
GNEEdge & myParentEdge
The Edge that to which this lane belongs.
const PositionVector & getShape() const
returns the shape of the lane
void updateConnectionIDs()
long onDefault(FXObject *, FXSelector, void *)
multiplexes message to two targets
std::vector< Position > myLaneRestrictedTexturePositions
Position of textures of restricted lanes.
void setSpecialColor(const RGBColor *Color2)
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void removeShapeChild(GNEShape *shape)
remove shape child of this lane
void drawCrossties(double length, double spacing, double halfWidth) const
draw crossties for railroads
bool isValid(SumoXMLAttr key, const std::string &value)
double getLaneParametricLength() const
returns the parameteric length of the lane
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void drawLinkNo(const GUIVisualizationSettings &s) const
draw link Number