223 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 class that stores a 2D geometrical boundary.
A road/street connecting two junctions (netedit-version)
class lane2lane connection geometry
const GNELane * myLane
lane
double myInternalDrawingWidth
internal lane drawing width (used for drawing selected lanes)
DrawingConstants & operator=(const DrawingConstants &)=delete
Invalidated assignment operator.
GUIVisualizationSettings::Detail myDetail
detail level
bool drawAsRailway() const
draw as railway
bool drawSuperposed() const
draw superposed
DrawingConstants(const DrawingConstants &)=delete
Invalidated copy constructor.
DrawingConstants()=delete
invalidate default constructor
double getExaggeration() const
get exaggeration
double myExaggeration
exaggeration
double getDrawingWidth() const
get lane drawing width
double getInternalDrawingWidth() const
get internal lane drawing width
double myDrawingWidth
lane drawing width
bool myDrawAsRailway
draw as railway
double myOffset
lane offset
double getOffset() const
get lane offset
bool myDrawSuperposed
draw supersposed (reduced width so that the lane markings below are visible)
GUIVisualizationSettings::Detail getDetail() const
get detail
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 drawLaneStopOffset(const GUIVisualizationSettings &s) const
draw laneStopOffset
void drawSelectedLane(const GUIVisualizationSettings &s) const
draw selected lane
bool checkDrawMoveContour() const
check if draw move contour (red)
std::vector< double > myLaneRestrictedTextureRotations
Rotations of textures of restricted lanes.
bool allowPedestrians() const
check if current lane allow pedestrians
void drawMarkingsAndBoundings(const GUIVisualizationSettings &s) const
draw lane markings
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
bool checkDrawDeleteContour() const
check if draw delete contour (pink/white)
double getLengthGeometryFactor() const
get length geometry factor
bool isAttributeEnabled(SumoXMLAttr key) const
void drawDirectionIndicators(const GUIVisualizationSettings &s) const
direction indicators for lanes
bool checkDrawSelectContour() const
check if draw select contour (blue)
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
bool checkDrawOverContour() const
check if draw over contour (orange)
void drawShapeEdited(const GUIVisualizationSettings &s) const
draw shape edited
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
DrawingConstants * myDrawingConstants
LaneDrawingConstants.
const std::vector< double > & getShapeRotations() const
get rotations of the single shape parts
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 calculateLaneContour(const GUIVisualizationSettings &s, const double layer) const
calculate contour
void drawTLSLinkNo(const GUIVisualizationSettings &s) const
draw TLS link Number
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
bool isRestricted(SUMOVehicleClass vclass) const
check if this lane is restricted
const DrawingConstants * getDrawingConstants() const
get lane drawing constants (previously calculated in drawGL())
int myIndex
The index of this lane.
void drawLaneAsRailway() const
draw lane as railway
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
bool checkDrawFromContour() const
check if draw from contour (green)
void setSpecialColor(const RGBColor *Color2, double colorValue=std::numeric_limits< double >::max())
const GUIGeometry & getLaneGeometry() const
get lane geometry
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void drawArrows(const GUIVisualizationSettings &s) const
draw lane arrows
void updateCenteringBoundary(const bool updateGrid)
update centering boundary (implies change in RTREE)
void drawLane(const GUIVisualizationSettings &s, const double layer) const
draw lane
double mySpecialColorValue
optional value that corresponds to which the special color corresponds
void drawChildren(const GUIVisualizationSettings &s) const
draw children
bool checkDrawRelatedContour() const
check if draw related contour (cyan)
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
void drawStartEndGeometryPoints(const GUIVisualizationSettings &s) const
draw start and end geometry points
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 checkDrawToContour() const
check if draw from contour (magenta)
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 buildRechableOperations(GUISUMOAbstractView &parent, GUIGLObjectPopupMenu *ret)
build rechable operations contextual menu
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
PositionVector getAttributePositionVector(SumoXMLAttr key) const
void drawLinkNo(const GUIVisualizationSettings &s) const
draw link Number
double getSpeed() const
returns the current speed of lane
void drawTextures(const GUIVisualizationSettings &s) const
draw lane textures
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
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.