20 #ifndef GNEConnection_h
21 #define GNEConnection_h
void updateGeometry()
update pre-computed geometry information
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
bool myDrawConnection
Enable or disable draw connection.
Boundary getBoundary() const
Returns the street's geometry.
void setDrawConnection(bool drawConnection)
enable or disable draw connection
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)
std::vector< SUMOReal > myShapeRotations
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
std::vector< SUMOReal > myShapeLengths
The lengths of the shape parts.
PositionVector myShape
the shape of the connection
GNEEdge * getEdgeTo() const
get the name of the edge the vehicles may reach when leaving "from"
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
LinkState myLinkState
Linkstate.
GNEConnection(GNELane *from, GNELane *to)
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.
GNEConnection & operator=(const GNEConnection &)
Invalidated assignment operator.
bool getDrawConnection() const
get Draw connection
NBEdge::Connection & getNBEdgeConnection() const
get Edge::Connection
A road/street connecting two junctions (netedit-version)
GNELane * getLaneTo() const
get lane of the outgoing lane
void updateLinkState()
recompute cached myLinkState
std::string getAttribute(SumoXMLAttr key) const
A window containing a gl-object's parameter.