 |
Eclipse SUMO - Simulation of Urban MObility
|
static const double BUBBLE_RADIUS
constant values for drawing buubles
const static NBConnection InvalidConnection
Position getPositionInView() const
Returns position of hierarchical element in view.
void markConnectionsDeprecated(bool includingNeighbours)
mark connections as deprecated
void unMarkAsCreateEdgeSource()
removes mark as first junction in createEdge-mode
bool isLogicValid()
whether this junction has a valid logic
void mirrorXLeftHand()
temporarily mirror coordinates in lefthand network to compute correct crossing geometries
double getColorValue(const GUIVisualizationSettings &s, int activeScheme) const
determines color value
void drawJunctionChilds(const GUIVisualizationSettings &s) const
draw junction childs
bool myAmTLSSelected
whether this junction is selected in tls-mode
void commitGeometryMoving(const Position &oldPos, GNEUndoList *undoList)
registers completed movement with the undoList
void removeEdgeFromCrossings(GNEEdge *edge, GNEUndoList *undoList)
removes the given edge from all pedestrian crossings
A NBNetBuilder extended by visualisation and editing capabilities.
std::vector< GNEJunction * > getJunctionNeighbours() const
return GNEJunction neighbours
std::string myLogicStatus
modification status of the junction logic (all connections across this junction)
void updateGeometryAfterNetbuild(bool rebuildNBNodeCrossings=false)
update pre-computed geometry information without modifying netbuild structures
const std::vector< GNEEdge * > & getGNEOutgoingEdges() const
Returns incoming GNEEdges.
std::vector< GNEConnection * > getGNEConnections() const
Returns all GNEConnections vinculated with this junction.
void removeIncomingGNEEdge(GNEEdge *edge)
remove incoming GNEEdge
void moveGeometry(const Position &oldPos, const Position &offset)
change the position of the element geometry without saving in undoList
const std::vector< GNECrossing * > & getGNECrossings() const
Returns GNECrossings.
void markAsModified(GNEUndoList *undoList)
prevent re-guessing connections at this junction
bool myHasValidLogic
whether this junctions logic is valid
std::vector< GNEEdge * > myGNEEdges
vector with the GNEEdges vinculated with this junction
void setResponsible(bool newVal)
set responsibility for deleting internal strctures
double myMaxSize
The maximum size (in either x-, or y-dimension) for determining whether to draw or not.
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::vector< GNEEdge * > myGNEIncomingEdges
vector with the incomings GNEEdges vinculated with this junction
void startGeometryMoving(bool extendToNeighbors=true)
begin movement (used when user click over edge to start a movement, to avoid problems with problems w...
void updateGeometry()
update pre-computed geometry information (including crossings)
A road/street connecting two junctions (netedit-version)
NBNode * getNBNode() const
Return net build node.
static const std::string FEATURE_GUESSED
feature has been reguessed (may still be unchanged be we can't tell (yet)
NBNode * myNBNode
A reference to the represented junction.
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
void invalidateTLS(GNEUndoList *undoList, const NBConnection &deletedConnection=NBConnection::InvalidConnection, const NBConnection &addedConnection=NBConnection::InvalidConnection)
void markAsCreateEdgeSource()
marks as first junction in createEdge-mode
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
std::string getAttribute(SumoXMLAttr key) const
void drawTLSIcon(const GUIVisualizationSettings &s) const
draw TLS icon
void removeTrafficLight(NBTrafficLightDefinition *tlDef)
removes a traffic light
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
void addIncomingGNEEdge(GNEEdge *edge)
add incoming GNEEdge
GNEJunction(GNENet *net, NBNode *nbn, bool loaded=false)
Constructor.
A class that stores a 2D geometrical boundary.
A point in 2D or 3D with translation and scaling methods.
void endGeometryMoving(bool extendToNeighbors=true)
begin movement (used when user click over edge to start a movement, to avoid problems with problems w...
void addOutgoingGNEEdge(GNEEdge *edge)
add outgoing GNEEdge
bool myAmCreateEdgeSource
whether this junction is the first junction for a newly creatededge
void rebuildGNECrossings(bool rebuildNBNodeCrossings=true)
rebuilds crossing objects for this junction
~GNEJunction()
Destructor.
void removeConnectionsFrom(GNEEdge *edge, GNEUndoList *undoList, bool updateTLS, int lane=-1)
remove all connections from the given edge
void setLogicValid(bool valid, GNEUndoList *undoList, const std::string &status=FEATURE_GUESSED)
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
const std::vector< GNEEdge * > & getGNEIncomingEdges() const
Returns incoming GNEEdges.
void addTrafficLight(NBTrafficLightDefinition *tlDef, bool forceInsert)
adds a traffic light
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
void moveJunctionGeometry(const Position &pos)
reposition the node at pos without updating GRID and informs the edges
const std::vector< GNEEdge * > & getGNEEdges() const
Returns all GNEEdges vinculated with this Junction.
RGBColor setColor(const GUIVisualizationSettings &s, bool bubble) const
sets junction color depending on circumstances
std::vector< GNECrossing * > myGNECrossings
the built crossing objects
GNEJunction & operator=(const GNEJunction &)=delete
Invalidated assignment operator.
void selectTLS(bool selected)
notify the junction of being selected in tls-mode. (used to control drawing)
bool isValid(SumoXMLAttr key, const std::string &value)
bool isAttributeEnabled(SumoXMLAttr key) const
Represents a single node (junction) during network building.
Stores the information about how to visualize structures.
void removeConnectionsTo(GNEEdge *edge, GNEUndoList *undoList, bool updateTLS, int lane=-1)
remove all connections to the given edge
A definition of a pedestrian crossing.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void removeTLSConnections(std::vector< NBConnection > &connections, GNEUndoList *undoList)
remove the given connections from all traffic light definitions of this junction
void replaceIncomingConnections(GNEEdge *which, GNEEdge *by, GNEUndoList *undoList)
replace one edge by another in all tls connections
const PositionVector & getJunctionShape() const
std::vector< GNEEdge * > myGNEOutgoingEdges
vector with the outgoings GNEEdges vinculated with this junction
The base class for traffic light logic definitions.
void removeOutgoingGNEEdge(GNEEdge *edge)
remove outgoing GNEEdge
GNECrossing * retrieveGNECrossing(NBNode::Crossing *NBNodeCrossing, bool createIfNoExist=true)
get GNECrossing if exist, and if not create it if create is enabled
bool myAmResponsible
whether we are responsible for deleting myNBNode
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.