19 #ifndef GNEConnection_h 20 #define GNEConnection_h void updateGeometry()
update pre-computed geometry information
PositionVector getShape() const
get Position vector calculated in updateGeometry()
std::vector< double > myShapeLengths
The lengths of the shape parts.
A structure which describes a connection between edges or lanes.
bool isValid(SumoXMLAttr key, const std::string &value)
LinkState getLinkState() const
get LinkState
Stores the information about how to visualize structures.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
GNELane * myFromLane
incoming lane of this connection
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
A class that stores a 2D geometrical boundary.
GNEEdge * getEdgeTo() const
get the name of the edge the vehicles may reach when leaving "from"
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
GNELane * getLaneFrom() const
get lane of the incoming lane
NBEdge::Connection & getNBEdgeConnection() const
get Edge::Connection
int getFromLaneIndex() const
get lane index of the incoming lane
int getToLaneIndex() const
get lane index of the outgoing lane
PositionVector myShape
the shape of the connection
void updateID()
update internal ID of Connection
std::vector< double > myShapeRotations
LinkState myLinkState
Linkstate.
GNEConnection(GNELane *from, GNELane *to)
GNELane * getLaneTo() const
get lane of the outgoing lane
GNEEdge * getEdgeFrom() const
get the name of the edge the vehicles leave
GNEConnection & operator=(const GNEConnection &)=delete
Invalidated assignment operator.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic, in MSLink and GNEInternalLane.
Boundary getBoundary() const
Returns the street's geometry.
GNELane * myToLane
outgoing lane of this connection
~GNEConnection()
Destructor.
A road/street connecting two junctions (netedit-version)
NBConnection getNBConnection() const
get NBConnection
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
PositionVector myInternalJunctionMarker
waiting position for internal junction
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in all GNEAttributeCarriers.
void updateLinkState()
recompute cached myLinkState
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.