bool myAmResponsible
whether we are responsible for deleting myNBNode
void rebuildCrossings(bool deleteOnly)
rebuilds crossing objects for this junction
bool myHasValidLogic
whether this junctions logic is valid
void setResponsible(bool newVal)
set responsibility for deleting internal strctures
std::string myLogicStatus
modification status of the junction logic (all connections across this junction)
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
void markAsCreateEdgeSource()
marks as first junction in createEdge-mode
std::vector< GNEEdge * > getGNEEdges() const
Return all GNEEdges vinculated with this Junction.
bool myAmCreateEdgeSource
whether this junction is the first junction for a newly creatededge
static const NBConnection InvalidConnection
bool isValid(SumoXMLAttr key, const std::string &value)
void setLogicValid(bool valid, GNEUndoList *undoList=0, const std::string &status=GUESSED)
Stores the information about how to visualize structures.
The base class for traffic light logic definitions.
A NBNetBuilder extended by visualisation and editing capabilities.
std::vector< GNEEdge * > getGNEIncomingEdges() const
Return incoming GNEEdges.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void selectTLS(bool selected)
notify the junction of being selected in tls-mode. (used to control drawing)
bool myAmTLSSelected
whether this junction is selected in tls-mode
void registerMove(GNEUndoList *undoList)
registers completed movement with the undoList
void updateShapesAndGeometries()
update shapes of all elements associated to the junction
void removeTrafficLight(NBTrafficLightDefinition *tlDef)
removes a traffic light
Boundary getBoundary() const
Returns the boundary of the junction.
A class that stores a 2D geometrical boundary.
Position myOrigPos
restore point for undo
std::string getAttribute(SumoXMLAttr key) const
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
void updateCrossingAttributes(NBNode::Crossing crossing)
modify the specified crossing (using friend privileges)
A point in 2D or 3D with translation and scaling methods.
bool isLogicValid()
whether this junction has a valid logic
void removeFromCrossings(GNEEdge *edge, GNEUndoList *undoList)
removes the given edge from all pedestrian crossings
SUMOReal myMaxSize
The maximum size (in either x-, or y-dimension) for determining whether to draw or not...
void unMarkAsCreateEdgeSource()
removes mark as first junction in createEdge-mode
NBNode & myNBNode
A reference to the represented junction.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
std::vector< GNEEdge * > getGNEOutgoingEdges() const
Return incoming GNEEdges.
void invalidateTLS(GNEUndoList *undoList, const NBConnection &deletedConnection=NBConnection::InvalidConnection)
A road/street connecting two junctions (netedit-version)
virtual ~GNEJunction()
Destructor.
void updateGeometry()
Update the boundary of the junction.
GNEJunction & operator=(const GNEJunction &)
Invalidated assignment operator.
Boundary myBoundary
The represented junction's boundary.
void setColor(const GUIVisualizationSettings &s, bool bubble) const
sets junction color depending on circumstances
void move(Position pos)
reposition the node at pos and informs the edges
Represents a single node (junction) during network building.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
A definition of a pedestrian crossing.
GNEJunction(NBNode &nbn, GNENet *net, bool loaded=false)
Constructor.
SUMOReal getColorValue(const GUIVisualizationSettings &s, bool bubble) const
determines color value
std::vector< GNECrossing * > myCrossings
the built crossing objects
static const std::string GUESSED
feature has been reguessed (may still be unchanged be we can't tell (yet)
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
void setPosition(Position pos)
reposition the NBNnode and nothing else
NBNode * getNBNode() const
Return net build node.
A window containing a gl-object's parameter.
void addTrafficLight(NBTrafficLightDefinition *tlDef, bool forceInsert)
adds a traffic light
void markAsModified(GNEUndoList *undoList)
prevent re-guessing connections at this junction