 |
Eclipse SUMO - Simulation of Urban MObility
|
bool setFunctionalColor(int activeScheme, RGBColor &col) const
sets the color according to the current scheme index and some lane function
void drawVSSSymbol(const GUIVisualizationSettings &s, GNEAdditional *vss) const
draw VSS symbol
std::string getParentName() const
Returns the name of the parent object (if any)
Position getPositionInView() const
Returns position of hierarchical element in view.
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
An Element which don't belongs to GNENet but has influency in the simulation.
GNELane & operator=(const GNELane &)=delete
Invalidated assignment operator.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
RGBColor setLaneColor(const GUIVisualizationSettings &s) const
set color according to edit mode and visualisation settings
const RGBColor * mySpecialColor
optional special color
bool isAttributeEnabled(SumoXMLAttr key) const
bool isRestricted(SUMOVehicleClass vclass) const
check if this lane is restricted
GNEGeometry::Lane2laneConnection myLane2laneConnections
lane2lane connections
void drawPartialE2DetectorPlan(const GUIVisualizationSettings &s, const GNEAdditional *E2Detector, const GNEJunction *junction) const
draw partial E2 detector plan
GNEEdge * getParentEdge() const
Returns underlying parent edge.
A NBNetBuilder extended by visualisation and editing capabilities.
std::string getAttributeForSelection(SumoXMLAttr key) const
method for getting the attribute in the context of object selection
void drawArrows(const GUIVisualizationSettings &s) const
draw arrows
std::vector< RGBColor > myShapeColors
The color of the shape parts (cached)
const std::vector< double > & getShapeRotations() const
get rotations of the single shape parts
int myIndex
The index of this lane.
SumoXMLTag
Numbers representing SUMO-XML - element names.
bool drawAsRailway(const GUIVisualizationSettings &s) const
whether to draw this lane as a railway
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
double getSpeed() const
returns the current speed of lane
int getIndex() const
returns the index of the lane
A road/street connecting two junctions (netedit-version)
GNEGeometry::Geometry myLaneGeometry
lane geometry
double getLaneParametricLength() const
returns the parameteric length of the lane
double mySpecialColorValue
optional value that corresponds to which the special color corresponds
std::vector< double > myLaneRestrictedTextureRotations
Rotations of textures of restricted lanes.
void endGeometryMoving()
begin movement (used when user click over edge to start a movement, to avoid problems with problems w...
const PositionVector & getLaneShape() const
bool drawAsWaterway(const GUIVisualizationSettings &s) const
whether to draw this lane as a waterways
const GNEGeometry::Lane2laneConnection & getLane2laneConnections() const
get Lane2laneConnection struct
double getLengthGeometryFactor() const
get length geometry factor
A class that stores a 2D geometrical boundary.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
bool setMultiColor(const GUIVisualizationSettings &s, const GUIColorer &c, RGBColor &col) const
sets multiple colors according to the current scheme index and some lane function
A point in 2D or 3D with translation and scaling methods.
struct for pack all variables related with geometry of stop
double getLaneShapeLength() const
returns the length of the lane's shape
std::vector< GNEConnection * > getGNEIncomingConnections()
returns a vector with the incoming GNEConnections of this lane
void setSpecialColor(const RGBColor *Color2, double colorValue=std::numeric_limits< double >::max())
std::string getAttribute(SumoXMLAttr key) const
void drawMarkings(const GUIVisualizationSettings &s, double scale) const
draw lane markings
std::vector< GNEConnection * > getGNEOutcomingConnections()
returns a vector with the outgoing GNEConnections of this lane
void startGeometryMoving()
void updateGeometry()
update pre-computed geometry information
long onDefault(FXObject *, FXSelector, void *)
multiplexes message to two targets
std::vector< Position > myLaneRestrictedTexturePositions
Position of textures of restricted lanes.
void updateConnectionIDs()
update IDs of incoming connections of this lane
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
void drawDirectionIndicators(double exaggeration, bool spreadSuperposed) const
direction indicators for lanes
void drawStartEndShapePoints(const GUIVisualizationSettings &s) const
draw start and end shape points
void drawTLSLinkNo(const GUIVisualizationSettings &s) const
draw TLS Link Number
const std::vector< double > & getShapeLengths() const
get lengths of the single shape parts
double getColorValue(const GUIVisualizationSettings &s, int activeScheme) const
return value for lane coloring according to the given scheme
void drawLinkRules(const GUIVisualizationSettings &s) const
draw link rules
void drawLinkNo(const GUIVisualizationSettings &s) const
draw link Number
Stores the information about how to visualize structures.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
bool isValid(SumoXMLAttr key, const std::string &value)
void drawLane2LaneConnections() const
draw lane to lane connections
GNEEdge * myParentEdge
The Edge that to which this lane belongs.