 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef GNEConnection_h
17 #define GNEConnection_h
bool isValid(SumoXMLAttr key, const std::string &value)
const RGBColor * mySpecialColor
optional special color
void changeTLIndex(SumoXMLAttr key, int tlIndex, int tlIndex2, GNEUndoList *undoList)
manage change of tlLinkindices
void updateGeometry()
update pre-computed geometry information
GNEConnection(const GNEConnection &)=delete
Invalidated copy constructor.
LinkState getLinkState() const
get LinkState
GNELane * myFromLane
incoming lane of this connection
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
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
@briefthe get lane of the incoming lane
SumoXMLTag
Numbers representing SUMO-XML - element names.
A road/street connecting two junctions (netedit-version)
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
void setSpecialColor(const RGBColor *Color2)
void updateID()
update internal ID of Connection
GNELane * getLaneTo() const
@briefthe get lane of the outgoing lane
GNEConnection(GNELane *from, GNELane *to)
GNEConnection & operator=(const GNEConnection &)=delete
Invalidated assignment operator.
GNEEdge * getEdgeFrom() const
get the name of the edge the vehicles leave
const PositionVector & getConnectionShape() const
int getToLaneIndex() const
@briefthe get lane index of the outgoing lane
int getFromLaneIndex() const
@briefthe get lane index of the incoming lane
NBEdge::Connection & getNBEdgeConnection() const
get Edge::Connection
bool myShapeDeprecated
flag to indicate that connection's shape has to be updated
A class that stores a 2D geometrical boundary.
Boundary getBoundary() const
Returns the street's geometry.
GNELane * myToLane
outgoing lane of this connection
A point in 2D or 3D with translation and scaling methods.
LinkState myLinkState
Linkstate.
~GNEConnection()
Destructor.
struct for pack all variables related with geometry of stop
bool isAttributeEnabled(SumoXMLAttr key) const
NBConnection getNBConnection() const
get NBConnection
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
PositionVector myInternalJunctionMarker
waiting position for internal junction
std::string getAttribute(SumoXMLAttr key) const
void updateLinkState()
recompute cached myLinkState
void markConnectionGeometryDeprecated()
check that connection's Geometry has to be updated
Stores the information about how to visualize structures.
A structure which describes a connection between edges or lanes.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Position getPositionInView() const
Returns position of hierarchical element in view.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
GNEGeometry::Geometry myConnectionGeometry
connection geometry