231 long onDefault(FXObject*, FXSelector,
void*)
override;
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.
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
GNELane2laneConnection myLane2laneConnections
lane2lane connections
const PositionVector & getLaneShape() const
get elements shape
bool isAttributeComputed(SumoXMLAttr key) const override
const GNELane2laneConnection & getLane2laneConnections() const
get Lane2laneConnection struct
double getColorValue(const GUIVisualizationSettings &s, int activeScheme) const override
return value for lane coloring according to the given scheme
void drawLaneStopOffset(const GUIVisualizationSettings &s) const
draw laneStopOffset
void drawSelectedLane(const GUIVisualizationSettings &s) const
draw selected lane
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
bool checkDrawSelectContour() const override
check if draw select contour (blue)
const RGBColor * mySpecialColor
optional special color
Position getPositionInView() const
Returns position of hierarchical element in view.
bool drawAsWaterway(const GUIVisualizationSettings &s) const
whether to draw this lane as a waterways
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
double getLengthGeometryFactor() const
get length geometry factor
PositionVector getAttributePositionVector(SumoXMLAttr key) const override
void drawDirectionIndicators(const GUIVisualizationSettings &s) const
direction indicators for lanes
bool checkDrawOverContour() const override
check if draw over contour (orange)
int getIndex() const
returns the index of the lane
GNEMoveElementLane * myMoveElementLane
move element lane
GUIGeometry myLaneGeometry
lane geometry
void drawShapeEdited(const GUIVisualizationSettings &s) const
draw shape edited
void drawOverlappedRoutes(const int numRoutes) const
draw overlapped routes
bool checkDrawRelatedContour() const override
check if draw related contour (cyan)
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own popup-menu.
bool checkDrawToContour() const override
check if draw from contour (magenta)
std::string getParentName() const override
Returns the name of the parent object (if any)
void buildLaneOperations(GUISUMOAbstractView &parent, GUIGLObjectPopupMenu *ret)
build lane operations contextual menu
GNEMoveElement * getMoveElement() const override
methods to retrieve the elements linked to this lane
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
std::string getAttributeForSelection(SumoXMLAttr key) const override
method for getting the attribute in the context of object selection
void buildTemplateOperations(GUISUMOAbstractView &parent, GUIGLObjectPopupMenu *ret)
build template oerations contextual menu
GNELane & operator=(const GNELane &)=delete
Invalidated assignment operator.
double getExaggeration(const GUIVisualizationSettings &s) const override
return exaggeration associated with this GLObject
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
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
std::vector< GNEConnection * > getGNEIncomingConnections()
returns a vector with the incoming GNEConnections of this lane
void updateGeometry() override
update pre-computed geometry information
bool isRestricted(SUMOVehicleClass vclass) const
check if this lane is restricted
bool checkDrawFromContour() const override
check if draw from contour (green)
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
std::string getAttribute(SumoXMLAttr key) const override
void setSpecialColor(const RGBColor *Color2, double colorValue=std::numeric_limits< double >::max())
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
const GUIGeometry & getLaneGeometry() const
get lane geometry
bool checkDrawMoveContour() const override
check if draw move contour (red)
Position getAttributePosition(SumoXMLAttr key) const override
double getAttributeDouble(SumoXMLAttr key) const override
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
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
Parameterised * getParameters() override
get parameters associated with this lane
std::vector< Position > myLaneRestrictedTexturePositions
Position of textures of restricted lanes.
long onDefault(FXObject *, FXSelector, void *) override
multiplexes message to two targets
bool checkDrawDeleteContour() const override
check if draw delete contour (pink/white)
double getLaneShapeLength() const
returns the length of the lane's shape
void updateGLObject() override
update GLObject (geometry, ID, etc.)
void drawStartEndGeometryPoints(const GUIVisualizationSettings &s) const
draw start and end geometry points
std::vector< RGBColor > myShapeColors
The color of the shape parts (cached)
bool checkDrawDeleteContourSmall() const override
check if draw delete contour small (pink/white)
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
bool isValid(SumoXMLAttr key, const std::string &value) override
bool isAttributeEnabled(SumoXMLAttr key) const override
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 drawTextures(const GUIVisualizationSettings &s) const
draw lane textures
void deleteGLObject() override
delete element
GNEEdge * getParentEdge() const
get parent edge
A NBNetBuilder extended by visualisation and editing capabilities.
Stores the information about how to visualize structures.
An upper class for objects with additional parameters.
A point in 2D or 3D with translation and scaling methods.