17 #ifndef GNEConnection_h 18 #define GNEConnection_h void updateGeometry()
update pre-computed geometry information
SumoXMLTag
Numbers representing SUMO-XML - element names.
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)
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
A class that stores a 2D geometrical boundary.
void setSpecialColor(const RGBColor *Color2)
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
bool myShapeDeprecated
flag to indicate that connection's shape has to be updated
int getFromLaneIndex() const
get lane index of the incoming lane
int getToLaneIndex() const
get lane index of the outgoing lane
void updateID()
update internal ID of Connection
LinkState myLinkState
Linkstate.
GNEConnection(GNELane *from, GNELane *to)
A point in 2D or 3D with translation and scaling methods.
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.
std::vector< std::pair< std::string, std::string > > getGenericParameters() const
return generic parameters as vector of pairs format
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
void markConnectionGeometryDeprecated()
check that connection's Geometry has to be updated
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.
const PositionVector & getShape() const
get Position vector calculated in updateGeometry()
std::string getGenericParametersStr() const
return generic parameters in string format
const RGBColor * mySpecialColor
optional special color
Position getPositionInView() const
Returns position of hierarchical element in view.
void setGenericParametersStr(const std::string &value)
set generic parameters in string format