148 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.
An Element which don't belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
A road/street connecting two junctions (netedit-version)
An Element which don't belongs to GNENet but has influency in the simulation.
class for pack all variables related with DottedGeometry
class for NETEDIT geometries over lanes
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.
const PositionVector & getLaneShape() const
long onDefault(FXObject *, FXSelector, void *)
multiplexes message to two targets
void drawPathAdditionalElements(const GUIVisualizationSettings &s) const
path additional elements
std::string getParentName() const
Returns the name of the parent object (if any)
std::string getAttribute(SumoXMLAttr key) const
const GNEGeometry::DottedGeometry & getDottedLaneGeometry() const
get dotted lane geometry
void removePathDemandElement(GNEDemandElement *demandElement)
remove path demand element (used by GNEPathElement)
void drawLinkRules(const GUIVisualizationSettings &s) const
draw link rules
std::vector< double > myLaneRestrictedTextureRotations
Rotations of textures of restricted lanes.
const RGBColor * mySpecialColor
optional special color
Position getPositionInView() const
Returns position of hierarchical element in view.
void addPathGenericData(GNEGenericData *genericData)
add path demand element (used by GNEPathElement)
bool drawAsWaterway(const GUIVisualizationSettings &s) const
whether to draw this lane as a waterways
GNEGeometry::DottedGeometry myDottedLaneGeometry
dotted lane geometry
double getLengthGeometryFactor() const
get length geometry factor
bool isAttributeEnabled(SumoXMLAttr key) const
std::map< SumoXMLTag, std::vector< GNEDemandElement * > > myPathDemandElements
map with references to path demand elements
void updateGeometry()
update pre-computed geometry information
void invalidatePathElements()
invalidate path element childs
void setMoveShape(const GNEMoveResult &moveResult)
set move shape
GNEEdge * myParentEdge
parent edge (GNELanes cannot use hierarchical structures)
const GNEGeometry::Lane2laneConnection & getLane2laneConnections() const
get Lane2laneConnection struct
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
void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList)
remove geometry point in the clicked position
GNEGeometry::Lane2laneConnection myLane2laneConnections
lane2lane connections
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 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
GNEMoveOperation * getMoveOperation(const double shapeOffset)
get move operation for the given shapeOffset
GNEGeometry::Geometry myLaneGeometry
lane geometry
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
void removePathAdditionalElement(GNEAdditional *additionalElement)
remove path additional element (used by GNEPathElement)
bool isRestricted(SUMOVehicleClass vclass) const
check if this lane is restricted
void addPathDemandElement(GNEDemandElement *demandElement)
add path demand element (used by GNEPathElement)
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 addPathAdditionalElement(GNEAdditional *additionalElement)
add path additional element (used by GNEPathElement)
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())
void drawPathDemandElements(const GUIVisualizationSettings &s) const
path demand elements
void drawArrows(const GUIVisualizationSettings &s) const
draw arrows
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
std::map< SumoXMLTag, std::vector< GNEAdditional * > > myPathAdditionalElements
map with references to path additional elements
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 removePathGenericData(GNEGenericData *genericData)
remove path demand element (used by GNEPathElement)
std::map< SumoXMLTag, std::vector< GNEGenericData * > > myPathGenericDatas
map with references to path generic data elements
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
void drawPathGenericDataElements(const GUIVisualizationSettings &s) const
path generic data elements
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.