 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
129 int getVertexIndex(
const double offset,
bool createIfNoExist,
bool snapToGrid);
259 const std::vector<GNELane*>&
getLanes()
const;
Position getSplitPos(const Position &clickPos)
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
bool myAmResponsible
whether we are responsible for deleting myNBNode
void smoothElevation(GNEUndoList *undoList)
smooth elevation with regard to adjoining edges
An Element which don't belongs to GNENet but has influency in the simulation.
void addLane(GNELane *lane, const NBEdge::Lane &laneAttrs, bool recomputeConnections)
increase number of lanes by one use the given attributes and restore the GNELane
An Element which don't belongs to GNENet but has influency in the simulation.
std::string myConnectionStatus
modification status of the connections
void copyTemplate(GNEEdge *tpl, GNEUndoList *undolist)
copy edge attributes from tpl
GNEJunction * myGNEJunctionSource
pointer to GNEJunction source
void straightenElevation(GNEUndoList *undoList)
interpolate z values linear between junctions
static const double SNAP_RADIUS
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void drawPartialPersonPlan(const GUIVisualizationSettings &s, const GNEDemandElement *personPlan, const GNEJunction *junction) const
draw partial person plan
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void moveShapeStart(const Position &oldPos, const Position &offset)
move position of shape start without commiting change
A NBNetBuilder extended by visualisation and editing capabilities.
std::vector< GNELane * > LaneVector
Definition of the lane's vector.
GNEJunction * myGNEJunctionDestiny
pointer to GNEJunction destiny
void drawPartialTripFromTo(const GUIVisualizationSettings &s, const GNEDemandElement *tripOrFromTo, const GNEJunction *junction) const
draw partial trip and Flow
void setMicrosimID(const std::string &newID)
override to also set lane ids
void endGeometryMoving()
begin movement (used when user click over edge to start a movement, to avoid problems with problems w...
GNEEdge()
constructor for dummy edge
void setShapeEndPos(const Position &pos)
change Shape EndPos
void drawEdgeName(const GUIVisualizationSettings &s) const
draw edge name
void clearGNEConnections()
clear current connections
const std::vector< GNEConnection * > & getGNEConnections() const
returns a reference to the GNEConnection vector
void removeLane(GNELane *lane, bool recomputeConnections)
@briefdecrease the number of lanes by one. argument is only used to increase robustness (assertions)
bool hasRestrictedLane(SUMOVehicleClass vclass) const
check if edge has a restricted lane
void drawPartialRoute(const GUIVisualizationSettings &s, const GNEDemandElement *route, const GNEJunction *junction) const
draw partial route
void smooth(GNEUndoList *undoList)
make geometry smooth
void editEndpoint(Position pos, GNEUndoList *undoList)
makes pos the new geometry endpoint at the appropriate end, or remove current existent endpoint
SumoXMLTag
Numbers representing SUMO-XML - element names.
void moveShapeEnd(const Position &oldPos, const Position &offset)
move position of shape end without commiting change
The representation of a single edge during network building.
void removeEdgeFromCrossings(GNEJunction *junction, GNEUndoList *undoList)
remove crossing of junction
Representation of a RouteProbe in netedit.
int getVertexIndex(Position pos, bool createIfNoExist, bool snapToGrid)
return index of a vertex of shape, or of a new vertex if position is over an shape's edge
void commitShapeStartChange(const Position &oldPos, GNEUndoList *undoList)
commit position changing in shape start
PositionVector smoothShape(const PositionVector &shape, bool forElevation)
return smoothed shape
A road/street connecting two junctions (netedit-version)
bool myWasSplit
whether this edge was created from a split
std::string getAttribute(SumoXMLAttr key) const
void deleteGeometryPoint(const Position &pos, bool allowUndo=true)
delete the geometry point closest to the given pos
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
bool clickedOverShapeStart(const Position &pos)
void commitShapeEndChange(const Position &oldPos, GNEUndoList *undoList)
commit position changing in shape end
std::string getGenericParametersStr() const
return generic parameters in string format
NBEdge * getNBEdge() const
returns the internal NBEdge
A class that stores a 2D geometrical boundary.
Position getPositionInView() const
Returns position of hierarchical element in view.
static GNEEdge & getDummyEdge()
Dummy edge to use when a reference must be supplied in the no-arguments constructor (FOX technicality...
void drawRerouterSymbol(const GUIVisualizationSettings &s, GNEAdditional *rerouter) const
draw Rerouter symbols
A point in 2D or 3D with translation and scaling methods.
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
bool clickedOverShapeEnd(const Position &pos)
return true if user clicked over ShapeEnd
GNEEdge * getOppositeEdge() const
get opposite edge
std::vector< std::pair< std::string, std::string > > getGenericParameters() const
return generic parameters as vector of pairs format
GNEJunction * getGNEJunctionDestiny() const
returns the destination-junction
GNEConnection * retrieveGNEConnection(int fromLane, NBEdge *to, int toLane, bool createIfNoExist=true)
get GNEConnection if exist, and if not create it if create is enabled
void setGeometry(PositionVector geom, bool inner)
update edge geometry and inform the lanes
const std::vector< GNELane * > & getLanes() const
returns a reference to the lane vector
int getRouteProbeRelativePosition(GNERouteProbe *routeProbe) const
obtain relative positions of RouteProbes
void startGeometryMoving()
ConnectionVector myGNEConnections
vector with the connections of this edge
void setResponsible(bool newVal)
set responsibility for deleting internal strctures
void addConnection(NBEdge::Connection nbCon, bool selectAfterCreation=false)
adds a connection
void drawGeometryPoints(const GUIVisualizationSettings &s) const
draw geometry points
GNEJunction * getGNEJunctionSource() const
returns the source-junction
std::set< GUIGlID > getLaneGlIDs() const
returns GLIDs of all lanes
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
std::vector< GNECrossing * > getGNECrossings()
get GNECrossings vinculated with this Edge
void moveEntireShape(const PositionVector &oldShape, const Position &offset)
move entire shape without commiting change
void updateJunctionPosition(GNEJunction *junction, const Position &origPos)
update edge geometry after junction move
GNEEdge & operator=(const GNEEdge &s)=delete
invalidated assignment operator
An (internal) definition of a single lane of an edge.
int moveVertexShape(const int index, const Position &oldPos, const Position &offset)
change position of a vertex of shape without commiting change
Representation of a vaporizer in netedit.
PositionVector myMovingShape
variable used to save shape bevore moving (used to avoid inconsistences in GL Tree)
void setGenericParametersStr(const std::string &value)
set generic parameters in string format
void removeConnection(NBEdge::Connection nbCon)
removes a connection
void updateGeometry()
update pre-computed geometry information
bool isValid(SumoXMLAttr key, const std::string &value)
void commitShapeChange(const PositionVector &oldShape, GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of changeShapeGeometry(....
LaneVector myLanes
vectgor with the lanes of this edge
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
Stores the information about how to visualize structures.
void resetEndpoint(const Position &pos, GNEUndoList *undoList)
restores the endpoint to the junction position at the appropriate end
GNELane * getLaneByVClass(const SUMOVehicleClass vClass) const
return the first lane that allow a vehicle of type vClass (or the first lane, if none was found)
A structure which describes a connection between edges or lanes.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
const std::string getOptionalName() const
Returns the street name.
NBEdge & myNBEdge
the underlying NBEdge
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
std::vector< GNEConnection * > ConnectionVector
Definition of the connection's vector.
void remakeGNEConnections()
remake connections
void setShapeStartPos(const Position &pos)
change Shape StartPos
std::string getAttributeForSelection(SumoXMLAttr key) const
method for getting the attribute in the context of object selection
bool wasSplit()
whether this edge was created from a split
void setNumLanes(int numLanes, GNEUndoList *undoList)
changes the number of lanes. When reducing the number of lanes, higher-numbered lanes are removed fir...