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