![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEJunction.h>
Public Member Functions | |
void | decRef (const std::string &debugMsg="") |
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const |
Draws additional, user-triggered visualisations. More... | |
void | drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const |
const std::vector< SumoXMLAttr > & | getAttrs () const |
Boundary | getBoundary () const |
Returns the boundary of the junction. More... | |
virtual std::string | getDescription () |
how should this attribute carrier be called More... | |
const std::string | getID () const |
function to support debugging More... | |
NBNode * | getNBNode () |
returns the internal NBNode More... | |
SumoXMLTag | getTag () const |
GNEJunction (NBNode &nbn, GNENet *net, bool loaded=false) | |
Constructor. More... | |
void | incRef (const std::string &debugMsg="") |
void | invalidateShape () |
void | invalidateTLS (GNEUndoList *undoList, const NBConnection &deletedConnection=NBConnection::InvalidConnection) |
bool | isLogicValid () |
void | markAsCreateEdgeSource () |
marks as first junction in createEdge-mode More... | |
void | move (Position pos) |
reposition the node at pos and informs the edges More... | |
void | registerMove (GNEUndoList *undoList) |
registers completed movement with the undoList More... | |
void | removeFromCrossings (GNEEdge *edge, GNEUndoList *undoList) |
removes the given edge from all pedestrian crossings More... | |
void | selectTLS (bool selected) |
notify the junction of being selected in tls-mode. (used to control drawing) More... | |
void | setLogicValid (bool valid, GNEUndoList *undoList=0, const std::string &status=GUESSED) |
void | setResponsible (bool newVal) |
set responsibility for deleting internal strctures More... | |
void | unMarkAsCreateEdgeSource () |
removes mark as first junction in createEdge-mode More... | |
bool | unreferenced () |
void | updateCrossingAttributes (NBNode::Crossing crossing) |
modify the specified crossing (using friend privileges) More... | |
virtual | ~GNEJunction () |
Destructor. More... | |
inherited from GUIGlObject | |
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own popup-menu. More... | |
GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own parameter window. More... | |
Boundary | getCenteringBoundary () const |
Returns the boundary to which the view shall be centered in order to show the object. More... | |
void | drawGL (const GUIVisualizationSettings &s) const |
Draws the object. More... | |
std::string | getAttribute (SumoXMLAttr key) const |
void | setAttribute (SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) |
bool | isValid (SumoXMLAttr key, const std::string &value) |
Atomar getter methods | |
const std::string & | getFullName () const |
Returns the full name appearing in the tool tip. More... | |
virtual const std::string & | getParentName () const |
Returns the name of the parent object (if any) More... | |
GUIGlID | getGlID () const |
Returns the numerical id of the object. More... | |
interfaces to be implemented by derived classes | |
const std::string & | getMicrosimID () const |
Returns the id of the object as known to microsim. More... | |
virtual void | setMicrosimID (const std::string &newID) |
Changes the microsimID of the object (happens in NETEDIT) More... | |
GUIGlObjectType | getType () const |
Returns the type of the object as coded in GUIGlObjectType. More... | |
Parameter table window I/O | |
void | addParameterTable (GUIParameterTableWindow *w) |
Lets this object know a parameter window showing the object's values was opened. More... | |
void | removeParameterTable (GUIParameterTableWindow *w) |
Lets this object know a parameter window showing the object's values was closed. More... | |
Static Public Member Functions | |
static const std::vector< SumoXMLAttr > & | allowedAttributes (SumoXMLTag tag) |
get all editable attributes for tag. More... | |
static const std::vector< SumoXMLTag > & | allowedTags () |
get all editable attributes for tag. More... | |
template<class T > | |
static bool | canParse (const std::string &string) |
true if an object of type T can be parsed from string More... | |
static const std::vector< std::string > & | discreteChoices (SumoXMLTag tag, SumoXMLAttr attr) |
return a list of discrete choices for this attribute or an empty vector More... | |
static bool | discreteCombinableChoices (SumoXMLTag tag, SumoXMLAttr attr) |
return whether the given attribute allows for a combination of discrete values More... | |
static bool | isNumerical (SumoXMLAttr attr) |
whether an attribute is numerical More... | |
template<class T > | |
static bool | isPositive (const std::string &string) |
true if a positive number of type T can be parsed from string More... | |
static bool | isUnique (SumoXMLAttr attr) |
whether an attribute is unique (may not be edited for a multi-selection) More... | |
static bool | isValidID (const std::string &value) |
true if value is a valid sumo ID More... | |
template<class T > | |
static T | parse (const std::string &string) |
parses an object of type T from from string More... | |
static void | resetDecal () |
Static Public Attributes | |
static const std::string | APPROVED = "approved" |
feature has been approved but not changed (i.e. after being reguessed) More... | |
static const std::string | GUESSED = "guessed" |
feature has been reguessed (may still be unchanged be we can't tell (yet) More... | |
static const std::string | LOADED = "loaded" |
feature is still unchanged after being loaded (implies approval) More... | |
static const std::string | MODIFIED = "modified" |
feature has been manually modified (implies approval) More... | |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings More... | |
Protected Member Functions | |
void | setPrefix (const std::string &prefix) |
helper methods for building popup-menus | |
void | buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true) |
Builds the header. More... | |
void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to center to the object. More... | |
void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds entries which allow to copy the name / typed name into the clipboard. More... | |
void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to (de)select the object. More... | |
void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the parameter window. More... | |
void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More... | |
void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the manipulator window. More... | |
Private Member Functions | |
void | addTrafficLight (NBTrafficLightDefinition *tlDef, bool forceInsert) |
adds a traffic light More... | |
SUMOReal | getColorValue (const GUIVisualizationSettings &s, bool bubble) const |
determines color value More... | |
GNEJunction (const GNEJunction &) | |
Invalidated copy constructor. More... | |
GNEJunction & | operator= (const GNEJunction &) |
Invalidated assignment operator. More... | |
void | rebuildCrossings (bool deleteOnly) |
rebuilds crossing objects for this junction More... | |
void | removeTrafficLight (NBTrafficLightDefinition *tlDef) |
removes a traffic light More... | |
void | setAttribute (SumoXMLAttr key, const std::string &value) |
void | setColor (const GUIVisualizationSettings &s, bool bubble) const |
sets junction color depending on circumstances More... | |
void | setPosition (Position pos) |
reposition the NBNnode and nothing else More... | |
Private Attributes | |
bool | myAmCreateEdgeSource |
bool | myAmResponsible |
whether we are responsible for deleting myNBNode More... | |
bool | myAmTLSSelected |
whether this junction is selected in tls-mode More... | |
Boundary | myBoundary |
The represented junction's boundary. More... | |
std::vector< GNECrossing * > | myCrossings |
the built crossing objects More... | |
bool | myHasValidLogic |
whether this junctions logic is valid More... | |
std::string | myLogicStatus |
modification status of the junction logic (all connections across this junction) More... | |
SUMOReal | myMaxSize |
The maximum size (in either x-, or y-dimension) for determining whether to draw or not. More... | |
NBNode & | myNBNode |
A reference to the represented junction. More... | |
GNENet * | myNet |
Position | myOrigPos |
restore point for undo More... | |
Static Private Attributes | |
static int | TLSDecalGlID = 0 |
gl-id of the tls-decal (drawn in tls-mode) More... | |
static bool | TLSDecalInitialized = false |
whether the tls-decal has been initialized More... | |
Friends | |
class | GNEChange_TLS |
In the case the represented junction's shape is empty, the boundary is computed using the junction's position to which an offset of 1m to each side is added.
Definition at line 61 of file GNEJunction.h.
Constructor.
[in] | nbn | The represented node |
[in] | net | The net to inform about gui updates |
[in] | loaded | Whether the junction was loaded from a file |
Definition at line 76 of file GNEJunction.cpp.
References myBoundary, myMaxSize, myOrigPos, rebuildCrossings(), Position::x(), and Position::y().
|
virtual |
Destructor.
Definition at line 96 of file GNEJunction.cpp.
References myAmResponsible, myNBNode, and rebuildCrossings().
|
private |
Invalidated copy constructor.
|
inherited |
Lets this object know a parameter window showing the object's values was opened.
[in] | w | The opened parameter window |
Definition at line 189 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
|
private |
adds a traffic light
Definition at line 568 of file GNEJunction.cpp.
References NBTrafficLightDefinition::addNode(), GNENet::getTLLogicCont(), NBTrafficLightLogicCont::insert(), myNBNode, and myNet.
Referenced by GNEChange_TLS::redo(), and GNEChange_TLS::undo().
|
staticinherited |
get all editable attributes for tag.
Definition at line 79 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::_allowedAttributes, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_EDGES, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_INDEX, SUMO_ATTR_KEEP_CLEAR, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_NUMLANES, SUMO_ATTR_POSITION, SUMO_ATTR_PRIORITY, SUMO_ATTR_RADIUS, SUMO_ATTR_SHAPE, SUMO_ATTR_SPEED, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TO, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_POI, toString(), and WRITE_WARNING.
Referenced by GNEAttributeCarrier::getAttrs(), GNEAttributeCarrier::getID(), GNESelector::onCmdSelMBString(), and GNESelector::onCmdSelMBTag().
|
staticinherited |
get all editable attributes for tag.
Definition at line 145 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::_allowedTags, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, and SUMO_TAG_LANE.
Referenced by GNEAttributeCarrier::getID(), GNESelector::GNESelector(), GNESelector::onCmdSelMBString(), and GNESelector::onCmdSelMBTag().
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 127 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 136 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 117 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
Definition at line 168 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 146 of file GUIGlObject.cpp.
References GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, ICON_FLAG_MINUS, ICON_FLAG_PLUS, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 180 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
Definition at line 159 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
inlinestaticinherited |
true if an object of type T can be parsed from string
Definition at line 120 of file GNEAttributeCarrier.h.
|
inlineinherited |
Definition at line 61 of file GNEReferenceCounter.h.
References GNEReferenceCounter::getID(), GNEReferenceCounter::myCount, toString(), and UNUSED_PARAMETER.
Referenced by GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNEEdge::removeLane(), GNEInspector::setEdgeTemplate(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Connection::~GNEChange_Connection(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_TLS::~GNEChange_TLS(), and GNEInspector::~GNEInspector().
|
staticinherited |
return a list of discrete choices for this attribute or an empty vector
Definition at line 189 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::_discreteChoices, StringBijection< T >::getStrings(), SUMOXMLDefinitions::LaneSpreadFunctions, NODETYPE_DEAD_END_DEPRECATED, SUMOXMLDefinitions::NodeTypes, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_KEEP_CLEAR, SUMO_ATTR_PRIORITY, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TYPE, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SumoVehicleClassStrings, and toString().
Referenced by GNEInspector::AttrInput::AttrInput(), GNEAttributeCarrier::getID(), and GNEInspector::AttrInput::onCmdOpenAttributeEditor().
|
staticinherited |
return whether the given attribute allows for a combination of discrete values
Definition at line 224 of file GNEAttributeCarrier.cpp.
References SUMO_ATTR_ALLOW, and SUMO_ATTR_DISALLOW.
Referenced by GNEInspector::AttrInput::AttrInput(), and GNEAttributeCarrier::getID().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 172 of file GNEJunction.cpp.
References GUITexturesHelper::add(), PositionVector::area(), PositionVector::closePolygon(), GLHelper::drawBoxLine(), GLHelper::drawFilledCircle(), GLHelper::drawFilledPoly(), GLHelper::drawFilledPolyTesselated(), GUIVisualizationSettings::drawJunctionShape, GUIGlObject::drawName(), GUITexturesHelper::drawTexturedBox(), GUIVisualizationSettings::editMode, GNENet::getApp(), GUIGlObject::getGlID(), NBNode::getPosition(), NBNode::getShape(), GUIGlObject::getType(), GNE_MODE_TLS, gSelected, GUISelectedStorage::isSelected(), NBNode::isTLControlled(), GUIVisualizationSettings::junctionName, myAmTLSSelected, myCrossings, myMaxSize, myNBNode, myNet, GUIVisualizationSettings::scale, PositionVector::scaleRelative(), GUIVisualizationSettings::selectionScale, setColor(), SUMOReal, TLSDecalGlID, TLSDecalInitialized, tlslogo, Position::x(), and Position::y().
|
inlinevirtualinherited |
Draws additional, user-triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented in GUIBaseVehicle, GUIPerson, and GUIContainer.
Definition at line 190 of file GUIGlObject.h.
References SUMOReal, and UNUSED_PARAMETER.
|
inherited |
Definition at line 216 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GUIContainer::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), and GUIInductLoop::MyWrapper::drawGL().
|
virtual |
Implements GNEAttributeCarrier.
Definition at line 356 of file GNEJunction.cpp.
References NBNode::getKeepClear(), GUIGlObject::getMicrosimID(), NBNode::getPosition(), NBNode::getRadius(), NBNode::getShape(), NBNode::getType(), GNE_ATTR_MODIFICATION_STATUS, myLogicStatus, myNBNode, SUMO_ATTR_ID, SUMO_ATTR_KEEP_CLEAR, SUMO_ATTR_POSITION, SUMO_ATTR_RADIUS, SUMO_ATTR_SHAPE, SUMO_ATTR_TYPE, and toString().
Referenced by getNBNode(), GNETLSEditor::onCmdDefCreate(), registerMove(), and setAttribute().
|
inlineinherited |
Definition at line 91 of file GNEAttributeCarrier.h.
References GNEAttributeCarrier::allowedAttributes(), and GNEAttributeCarrier::myTag.
Referenced by GNEAttributeCarrier::isValid().
|
inline |
Returns the boundary of the junction.
Definition at line 123 of file GNEJunction.h.
References myBoundary.
Referenced by GNENet::registerJunction().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 164 of file GNEJunction.cpp.
References Boundary::grow(), and myBoundary.
|
private |
determines color value
Definition at line 506 of file GNEJunction.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIGlObject::getGlID(), GUIGlObject::getType(), NBNode::getType(), gSelected, GUISelectedStorage::isSelected(), GUIVisualizationSettings::junctionColorer, myNBNode, NODETYPE_ALLWAY_STOP, NODETYPE_DEAD_END, NODETYPE_DEAD_END_DEPRECATED, NODETYPE_DISTRICT, NODETYPE_INTERNAL, NODETYPE_NOJUNCTION, NODETYPE_PRIORITY, NODETYPE_PRIORITY_STOP, NODETYPE_RAIL_SIGNAL, NODETYPE_RIGHT_BEFORE_LEFT, NODETYPE_TRAFFIC_LIGHT, NODETYPE_TRAFFIC_LIGHT_NOJUNCTION, NODETYPE_TRAFFIC_LIGHT_RIGHT_ON_RED, NODETYPE_UNKNOWN, and NODETYPE_ZIPPER.
Referenced by setColor().
|
inlinevirtualinherited |
how should this attribute carrier be called
Definition at line 83 of file GNEAttributeCarrier.h.
References GNEAttributeCarrier::myTag, and toString().
Referenced by GNEChange_Attribute::redoName(), and GNEChange_Attribute::undoName().
|
inlineinherited |
Returns the full name appearing in the tool tip.
Definition at line 108 of file GUIGlObject.h.
Referenced by GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), GUISelectedStorage::save(), and GUISUMOAbstractView::showToolTipFor().
|
inlineinherited |
Returns the numerical id of the object.
Definition at line 123 of file GUIGlObject.h.
Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GNEPoly::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIContainer::getColorValue(), GNELane::getColorValue(), GUIPerson::getColorValue(), GUILane::getColorValue(), getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUILane::getScaleValue(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelector::handleIDs(), GNETLSEditor::handleMultiChange(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEConnector::onCmdSelectDeadStarts(), GNEConnector::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().
|
inlinevirtualinherited |
function to support debugging
Implements GNEReferenceCounter.
Definition at line 96 of file GNEAttributeCarrier.h.
References GNEAttributeCarrier::allowedAttributes(), GNEAttributeCarrier::allowedTags(), GNEAttributeCarrier::discreteChoices(), GNEAttributeCarrier::discreteCombinableChoices(), GNEAttributeCarrier::getAttribute(), GNEAttributeCarrier::isNumerical(), GNEAttributeCarrier::isUnique(), and SUMO_ATTR_ID.
Referenced by GNENet::addReversedEdge(), GNENet::reverseEdge(), and setLogicValid().
|
inlineinherited |
Returns the id of the object as known to microsim.
Definition at line 154 of file GUIGlObject.h.
Referenced by GNETLSEditor::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEPOI::getAttribute(), GNECrossing::getAttribute(), GNELane::getAttribute(), getAttribute(), GNEPoly::getAttribute(), GNEEdge::getAttribute(), GNELane::getParentName(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNEConnector::handleLaneClick(), GNETLSEditor::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GNEPoly::moveGeometry(), GNEEdge::moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEViewNet::onLeftBtnPress(), GNEInspector::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), GNEEdge::removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnector::updateDescription().
|
inline |
returns the internal NBNode
Definition at line 149 of file GNEJunction.h.
References getAttribute(), isValid(), move(), myNBNode, registerMove(), and setAttribute().
Referenced by GNETLSEditor::buildIinternalLanes(), GNENet::changeEdgeEndpoints(), GNENet::computeJunction(), GNENet::createEdge(), GNENet::deleteJunction(), GNENet::deleteSingleJunction(), GNETLSEditor::initDefinitions(), GNEConnector::initTargets(), GNENet::insertJunction(), GNENet::mergeJunctions(), GNEViewNet::mergeJunctions(), move(), GNEViewNet::onCmdNodeShape(), GNENet::registerJunction(), GNENet::removeSolitaryJunctions(), GNENet::renameJunction(), GNENet::replaceJunctionByGeometry(), GNEEdge::resetEndpoint(), setAttribute(), GNEEdge::setEndpoint(), GNETLSEditor::updateDescription(), and GNEEdge::updateJunctionPosition().
|
virtual |
Returns an own parameter window.
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Implements GUIGlObject.
Definition at line 157 of file GNEJunction.cpp.
|
inlinevirtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GUILane, and GNELane.
Definition at line 115 of file GUIGlObject.h.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
|
virtual |
Returns an own popup-menu.
[in] | app | The application needed to build the popup-menu |
[in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 124 of file GNEJunction.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), NBNode::checkIsRemovable(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), GUIVisualizationSettings::editMode, NBNode::getIncomingEdges(), NBNode::getOutgoingEdges(), GUISUMOAbstractView::getVisualisationSettings(), GNE_MODE_CONNECT, GNE_MODE_CREATE_EDGE, GNE_MODE_TLS, MID_GNE_NODE_REPLACE, MID_GNE_NODE_SHAPE, and myNBNode.
|
inlineinherited |
Definition at line 87 of file GNEAttributeCarrier.h.
References GNEAttributeCarrier::myTag.
Referenced by GNESelector::getMatches().
|
inlineinherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 167 of file GUIGlObject.h.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), drawGL(), GUIJunctionWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIJunctionWrapper::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUILane::getScaleValue(), GNESelector::handleIDs(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GNEConnector::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), setColor(), and GUISelectedStorage::toggleSelection().
|
inlineinherited |
Definition at line 73 of file GNEReferenceCounter.h.
References GNEReferenceCounter::getID(), GNEReferenceCounter::myCount, toString(), and UNUSED_PARAMETER.
Referenced by GNEEdge::addLane(), GNENet::registerEdge(), GNENet::registerJunction(), and GNEInspector::setEdgeTemplate().
void GNEJunction::invalidateShape | ( | ) |
Definition at line 265 of file GNEJunction.cpp.
References NBNode::hasCustomShape(), myNBNode, myNet, NBNode::myPoly, and GNENet::requireRecompute().
Referenced by GNEEdge::resetEndpoint(), GNEEdge::setAttribute(), GNEEdge::setEndpoint(), GNEEdge::setGeometry(), and setResponsible().
void GNEJunction::invalidateTLS | ( | GNEUndoList * | undoList, |
const NBConnection & | deletedConnection = NBConnection::InvalidConnection |
||
) |
Definition at line 310 of file GNEJunction.cpp.
References NBNode::getControllingTLS(), Named::getID(), NBLoadedSUMOTLDef::getLogic(), NBTrafficLightDefinition::getNodes(), NBTrafficLightDefinition::getOffset(), NBTrafficLightDefinition::getType(), GNEChange_TLS, GNEUndoList::hasCommandGroup(), NBConnection::InvalidConnection, myNBNode, myNet, NBLoadedSUMOTLDef::removeConnection(), and GNENet::retrieveJunction().
Referenced by GNEConnector::handleLaneClick(), setLogicValid(), and setResponsible().
|
inline |
Definition at line 210 of file GNEJunction.h.
References myHasValidLogic.
Referenced by GNELane::drawGL().
|
staticinherited |
whether an attribute is numerical
Definition at line 157 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::_numericalAttrs, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_INDEX, SUMO_ATTR_LENGTH, SUMO_ATTR_NUMLANES, SUMO_ATTR_PRIORITY, SUMO_ATTR_RADIUS, SUMO_ATTR_SPEED, and SUMO_ATTR_WIDTH.
Referenced by GNEInspector::AttrInput::AttrInput(), GNEAttributeCarrier::getID(), GNESelector::getMatches(), and GNESelector::onCmdSelMBString().
|
inlinestaticinherited |
true if a positive number of type T can be parsed from string
Definition at line 138 of file GNEAttributeCarrier.h.
References GNEAttributeCarrier::isValidID().
|
staticinherited |
whether an attribute is unique (may not be edited for a multi-selection)
Definition at line 174 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::_uniqueAttrs, SUMO_ATTR_EDGES, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, and SUMO_ATTR_TO.
Referenced by GNEInspector::AttrPanel::AttrPanel(), and GNEAttributeCarrier::getID().
|
virtual |
Reimplemented from GNEAttributeCarrier.
Definition at line 423 of file GNEJunction.cpp.
References StringBijection< T >::hasString(), GNEAttributeCarrier::isValidID(), myNet, SUMOXMLDefinitions::NodeTypes, GeomConvHelper::parseShapeReporting(), GNENet::retrieveJunction(), SUMO_ATTR_ID, SUMO_ATTR_KEEP_CLEAR, SUMO_ATTR_POSITION, SUMO_ATTR_RADIUS, SUMO_ATTR_SHAPE, SUMO_ATTR_TYPE, and toString().
Referenced by getNBNode().
|
staticinherited |
true if value is a valid sumo ID
Definition at line 70 of file GNEAttributeCarrier.cpp.
Referenced by GNEAttributeCarrier::isPositive(), isValid(), and GNEEdge::isValid().
|
inline |
marks as first junction in createEdge-mode
Definition at line 130 of file GNEJunction.h.
References myAmCreateEdgeSource.
Referenced by GNEViewNet::onLeftBtnPress().
void GNEJunction::move | ( | Position | pos | ) |
reposition the node at pos and informs the edges
[in] | pos | The new position |
Definition at line 239 of file GNEJunction.cpp.
References NBNode::getEdges(), getNBNode(), NBNode::getPosition(), myNBNode, myNet, GNENet::refreshElement(), GNENet::retrieveEdge(), setPosition(), and GNEEdge::updateJunctionPosition().
Referenced by getNBNode(), GNENet::mergeJunctions(), GNEViewNet::onMouseMove(), and setAttribute().
|
private |
Invalidated assignment operator.
|
inlinestaticinherited |
parses an object of type T from from string
Definition at line 129 of file GNEAttributeCarrier.h.
|
private |
rebuilds crossing objects for this junction
Definition at line 105 of file GNEJunction.cpp.
References NBNode::getCrossings(), myCrossings, and myNBNode.
Referenced by GNEJunction(), setLogicValid(), and ~GNEJunction().
void GNEJunction::registerMove | ( | GNEUndoList * | undoList | ) |
registers completed movement with the undoList
Definition at line 252 of file GNEJunction.cpp.
References getAttribute(), NBNode::getPosition(), GNEAttributeCarrier::GNEChange_Attribute, myNBNode, myOrigPos, setPosition(), and SUMO_ATTR_POSITION.
Referenced by getNBNode(), GNENet::mergeJunctions(), and GNEViewNet::onLeftBtnRelease().
void GNEJunction::removeFromCrossings | ( | GNEEdge * | edge, |
GNEUndoList * | undoList | ||
) |
removes the given edge from all pedestrian crossings
Definition at line 341 of file GNEJunction.cpp.
References NBNode::getCrossings(), GNEEdge::getNBEdge(), myNBNode, NBNode::removeCrossing(), and UNUSED_PARAMETER.
Referenced by GNENet::deleteEdge(), GNENet::deleteLane(), and setResponsible().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 195 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
private |
removes a traffic light
Definition at line 576 of file GNEJunction.cpp.
References NBTrafficLightLogicCont::extract(), GNENet::getTLLogicCont(), myNBNode, myNet, and NBNode::removeTrafficLight().
Referenced by GNEChange_TLS::redo(), and GNEChange_TLS::undo().
|
inlinestatic |
Definition at line 214 of file GNEJunction.h.
References TLSDecalInitialized, and updateCrossingAttributes().
Referenced by GNEApplicationWindow::closeAllWindows().
|
inline |
notify the junction of being selected in tls-mode. (used to control drawing)
Definition at line 142 of file GNEJunction.h.
References myAmTLSSelected.
Referenced by GNETLSEditor::cleanup(), and GNETLSEditor::editJunction().
|
virtual |
Implements GNEAttributeCarrier.
Definition at line 383 of file GNEJunction.cpp.
References getAttribute(), NBNode::getControllingTLS(), getNBNode(), GNE_ATTR_MODIFICATION_STATUS, GNEAttributeCarrier::GNEChange_Attribute, GNEChange_TLS, NBNode::isTrafficLight(), myNBNode, SUMOXMLDefinitions::NodeTypes, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_ATTR_ID, SUMO_ATTR_KEEP_CLEAR, SUMO_ATTR_POSITION, SUMO_ATTR_RADIUS, SUMO_ATTR_SHAPE, SUMO_ATTR_TYPE, and toString().
Referenced by GNENet::deleteJunction(), getNBNode(), GNEViewNet::hotkeyEnter(), GNENet::joinSelectedJunctions(), GNETLSEditor::onCmdDefCreate(), GNETLSEditor::onCmdDefDelete(), and GNEViewNet::onCmdNodeShape().
|
privatevirtual |
Implements GNEAttributeCarrier.
Definition at line 458 of file GNEJunction.cpp.
References StringBijection< T >::get(), NBNode::getPosition(), GNE_ATTR_MODIFICATION_STATUS, move(), myLogicStatus, myNBNode, myNet, myOrigPos, SUMOXMLDefinitions::NodeTypes, GeomConvHelper::parseShapeReporting(), NBNode::reinit(), GNENet::renameJunction(), NBNode::setCustomShape(), NBNode::setKeepClear(), NBNode::setRadius(), SUMO_ATTR_ID, SUMO_ATTR_KEEP_CLEAR, SUMO_ATTR_POSITION, SUMO_ATTR_RADIUS, SUMO_ATTR_SHAPE, SUMO_ATTR_TYPE, and toString().
|
private |
sets junction color depending on circumstances
Definition at line 556 of file GNEJunction.cpp.
References GUIPropertyScheme< T >::getColor(), getColorValue(), GUIGlObject::getGlID(), GUIPropertySchemeStorage< T >::getScheme(), GUIGlObject::getType(), gSelected, GUISelectedStorage::isSelected(), GUIVisualizationSettings::junctionColorer, myAmCreateEdgeSource, GNENet::selectionColor, and GLHelper::setColor().
Referenced by drawGL().
void GNEJunction::setLogicValid | ( | bool | valid, |
GNEUndoList * | undoList = 0 , |
||
const std::string & | status = GUESSED |
||
) |
Definition at line 274 of file GNEJunction.cpp.
References GNENet::addExplicitTurnaround(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NBEdge::getConnections(), Named::getID(), GNEAttributeCarrier::getID(), NBNode::getIncomingEdges(), NBEdge::getTurnDestination(), GNE_ATTR_MODIFICATION_STATUS, GNEAttributeCarrier::GNEChange_Attribute, GNEUndoList::hasCommandGroup(), invalidateTLS(), myHasValidLogic, myNBNode, myNet, rebuildCrossings(), and GNENet::retrieveEdge().
Referenced by GNENet::createEdge(), GNENet::deleteEdge(), GNENet::deleteLane(), GNEConnector::onCmdClearSelectedConnections(), GNEConnector::onCmdResetSelectedConnections(), GNEEdge::setAttribute(), GNEEdge::setNumLanes(), and setResponsible().
|
virtualinherited |
Changes the microsimID of the object (happens in NETEDIT)
Reimplemented in GNEEdge.
Definition at line 110 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNENet::renameJunction(), GNELane::setIndex(), and GNEEdge::setMicrosimID().
|
private |
reposition the NBNnode and nothing else
Definition at line 494 of file GNEJunction.cpp.
References NBNode::getPosition(), NBNode::getType(), Boundary::moveby(), myBoundary, myNBNode, NBNode::reinit(), SUMOReal, Position::x(), and Position::y().
Referenced by move(), and registerMove().
|
protectedinherited |
Definition at line 204 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myPrefix.
|
inline |
set responsibility for deleting internal strctures
Definition at line 181 of file GNEJunction.h.
References GNEAttributeCarrier::GUESSED, invalidateShape(), invalidateTLS(), NBConnection::InvalidConnection, myAmResponsible, removeFromCrossings(), and setLogicValid().
Referenced by GNENet::deleteSingleJunction(), and GNENet::registerJunction().
|
inline |
removes mark as first junction in createEdge-mode
Definition at line 136 of file GNEJunction.h.
References myAmCreateEdgeSource.
Referenced by GNEViewNet::abortOperation(), and GNEViewNet::onLeftBtnPress().
|
inlineinherited |
Definition at line 82 of file GNEReferenceCounter.h.
References GNEReferenceCounter::getID(), and GNEReferenceCounter::myCount.
Referenced by GNEInspector::setEdgeTemplate(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Connection::~GNEChange_Connection(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_TLS::~GNEChange_TLS(), and GNEInspector::~GNEInspector().
void GNEJunction::updateCrossingAttributes | ( | NBNode::Crossing | crossing | ) |
modify the specified crossing (using friend privileges)
Definition at line 583 of file GNEJunction.cpp.
References NBNode::Crossing::edges, NBNode::myCrossings, myNBNode, myNet, NBNode::Crossing::priority, GNENet::refreshElement(), and NBNode::Crossing::width.
Referenced by resetDecal(), and GNECrossing::setAttribute().
|
friend |
Definition at line 63 of file GNEJunction.h.
Referenced by invalidateTLS(), and setAttribute().
|
staticinherited |
feature has been approved but not changed (i.e. after being reguessed)
Definition at line 156 of file GNEAttributeCarrier.h.
|
staticinherited |
feature has been reguessed (may still be unchanged be we can't tell (yet)
Definition at line 152 of file GNEAttributeCarrier.h.
Referenced by GNEEdge::setAttribute(), and setResponsible().
|
staticinherited |
feature is still unchanged after being loaded (implies approval)
Definition at line 150 of file GNEAttributeCarrier.h.
|
staticinherited |
feature has been manually modified (implies approval)
Definition at line 154 of file GNEAttributeCarrier.h.
Referenced by GNEConnector::onCmdClearSelectedConnections(), and GNEEdge::setAttribute().
|
private |
Definition at line 237 of file GNEJunction.h.
Referenced by markAsCreateEdgeSource(), setColor(), and unMarkAsCreateEdgeSource().
|
private |
whether we are responsible for deleting myNBNode
Definition at line 246 of file GNEJunction.h.
Referenced by setResponsible(), and ~GNEJunction().
|
private |
whether this junction is selected in tls-mode
Definition at line 252 of file GNEJunction.h.
Referenced by drawGL(), and selectTLS().
|
private |
The represented junction's boundary.
Definition at line 232 of file GNEJunction.h.
Referenced by getBoundary(), getCenteringBoundary(), GNEJunction(), and setPosition().
|
private |
the built crossing objects
Definition at line 255 of file GNEJunction.h.
Referenced by drawGL(), and rebuildCrossings().
|
private |
whether this junctions logic is valid
Definition at line 249 of file GNEJunction.h.
Referenced by isLogicValid(), and setLogicValid().
|
private |
modification status of the junction logic (all connections across this junction)
Definition at line 243 of file GNEJunction.h.
Referenced by getAttribute(), and setAttribute().
|
private |
The maximum size (in either x-, or y-dimension) for determining whether to draw or not.
Definition at line 229 of file GNEJunction.h.
Referenced by drawGL(), and GNEJunction().
|
private |
A reference to the represented junction.
Definition at line 223 of file GNEJunction.h.
Referenced by addTrafficLight(), drawGL(), getAttribute(), getColorValue(), getNBNode(), getPopUpMenu(), invalidateShape(), invalidateTLS(), move(), rebuildCrossings(), registerMove(), removeFromCrossings(), removeTrafficLight(), setAttribute(), setLogicValid(), setPosition(), updateCrossingAttributes(), and ~GNEJunction().
|
private |
Definition at line 240 of file GNEJunction.h.
Referenced by addTrafficLight(), drawGL(), invalidateShape(), invalidateTLS(), isValid(), move(), removeTrafficLight(), setAttribute(), setLogicValid(), and updateCrossingAttributes().
|
private |
restore point for undo
Definition at line 226 of file GNEJunction.h.
Referenced by GNEJunction(), registerMove(), and setAttribute().
|
staticprivate |
gl-id of the tls-decal (drawn in tls-mode)
Definition at line 258 of file GNEJunction.h.
Referenced by drawGL().
|
staticprivate |
whether the tls-decal has been initialized
Definition at line 261 of file GNEJunction.h.
Referenced by drawGL(), and resetDecal().
|
staticinherited |
associates object types with strings
Definition at line 100 of file GUIGlObject.h.