20 #ifndef GNEConnection_h 21 #define GNEConnection_h GNEEdge & getEdgeTo() const
get the name of the edge the vehicles may reach when leaving "from"
void updateGeometry()
update pre-computed geometry information
void setKeepClear(bool keepClear)
set parameter keepClear
const NBEdge::Connection & getNBEdgeConnection() const
get Edge::NBConnection
GNELane * getToLane() const
get lane of the outgoing lane
A structure which describes a connection between edges or lanes.
GNEEdge & myFromEdge
incoming edge of this connection
int getFromLaneIndex() const
get lane index of the incoming lane
bool isValid(SumoXMLAttr key, const std::string &value)
NBConnection myNBConnection
NBConnection associated with this connection.
int getToLaneIndex() const
get lane index of the outgoing lane
GNEEdge & myToEdge
outcoming edge of this connection
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.
bool getKeepClear()
get parameter keepClear
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
std::vector< SUMOReal > myShapeRotations
bool myPass
if set, vehicles which pass this (lane-2-lane) connection) will not wait
A class that stores a 2D geometrical boundary.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
std::vector< SUMOReal > myShapeLengths
The lengths of the shape parts.
PositionVector myShape
the shape of the edge
static const int InvalidTlIndex
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
bool getPass()
get parameter pass
NBNode * myJunction
junction in which this connection is placed
bool myKeepClear
if set to false, vehicles which pass this (lane-2-lane) connection) will not worry about blocking the...
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
~GNEConnection()
Destructor.
GNEConnection(GNEEdge &from, int fromLane, GNEEdge &to, int toLane, bool pass, bool keepClear, SUMOReal contPos, bool uncontrolled, int tlIndex=NBConnection::InvalidTlIndex)
Constructor.
GNEConnection & operator=(const GNEConnection &)
Invalidated assignment operator.
SUMOReal myContPos
if set to 0, no internal junction will be built for this connection. If set to a positive value...
GNELane * getFromLane() const
get lane of the incoming lane
A road/street connecting two junctions (netedit-version)
NBEdge::Connection myConnection
NBEdge::Connection associated with this connection.
void setUncontrolled(bool uncontrolled)
set parameter uncontrolled
void setPass(bool pass)
set parameter pass
void setContPos(SUMOReal contPos)
set parameter ContPos
SUMOReal getContPos()
get parameter ContPos
Represents a single node (junction) during network building.
bool getUncontrolled()
get parameter uncontrolled
const NBConnection & getNBConnection() const
get NBConnection
std::string getAttribute(SumoXMLAttr key) const
A window containing a gl-object's parameter.
GNEEdge & getEdgeFrom() const
get the name of the edge the vehicles leave
bool myUncontrolled
if set to true, This connection will not be TLS-controlled despite its node being controlled...