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.
bool isValid(SumoXMLAttr key, const std::string &value)
bool myDrawConnection
Enable or disable draw connection.
LinkState getLinkState() const
get LinkState
void setDrawConnection(bool drawConnection)
enable or disable draw connection
Stores the information about how to visualize structures.
bool getDrawConnection() const
get Draw connection
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)
std::vector< SUMOReal > myShapeRotations
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
std::vector< SUMOReal > myShapeLengths
The lengths of the shape parts.
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
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
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
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.
GNEConnection & operator=(const GNEConnection &)
Invalidated assignment operator.
A road/street connecting two junctions (netedit-version)
NBConnection getNBConnection() const
get NBConnection
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::string getAttribute(SumoXMLAttr key) const
void updateLinkState()
recompute cached myLinkState
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
A window containing a gl-object's parameter.