![]() |
SUMO - Simulation of Urban MObility
|
A road/street connecting two junctions (netedit-version) More...
#include <GNEEdge.h>
Public Types | |
typedef std::vector< GNELane * > | LaneVector |
Definition of the lane's positions vector. More... | |
Public Member Functions | |
void | copyTemplate (GNEEdge *tpl, GNEUndoList *undolist) |
copy edge attributes from tpl More... | |
void | decRef (const std::string &debugMsg="") |
bool | deleteGeometry (const Position &pos, GNEUndoList *undoList) |
deletes the closest geometry node within SNAP_RADIUS. More... | |
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 street's geometry. More... | |
virtual std::string | getDescription () |
how should this attribute carrier be called More... | |
GNEJunction * | getDest () const |
returns the destination-junction More... | |
const std::string | getID () const |
function to support debugging More... | |
std::set< GUIGlID > | getLaneGlIDs () |
const LaneVector & | getLanes () |
NBEdge * | getNBEdge () |
returns the internal NBEdge More... | |
GNEJunction * | getSource () const |
returns the source-junction More... | |
Position | getSplitPos (const Position &clickPos) |
SumoXMLTag | getTag () const |
GNEEdge (NBEdge &nbe, GNENet *net, bool wasSplit=false, bool loaded=false) | |
Constructor. More... | |
void | incRef (const std::string &debugMsg="") |
Position | moveGeometry (const Position &oldPos, const Position &newPos, bool relative=false) |
change the edge geometry without registering undo/redo It is up to the Edge to decide whether an new geometry node should be generated or an existing node should be moved More... | |
void | moveGeometry (const Position &delta) |
change the edge geometry without registering undo/redo More... | |
void | resetEndpoint (const Position &pos, GNEUndoList *undoList) |
restores the endpoint to the junction position at the appropriate end More... | |
void | setEndpoint (Position pos, GNEUndoList *undoList) |
makes pos the new geometry endpoint at the appropriate end More... | |
void | setGeometry (PositionVector geom, bool inner) |
update edge geometry and inform the lanes More... | |
void | setMicrosimID (const std::string &newID) |
override to also set lane ids More... | |
void | setResponsible (bool newVal) |
set responsibility for deleting internal strctures More... | |
bool | unreferenced () |
void | updateJunctionPosition (GNEJunction *junction, const Position &origPos) |
update edge geometry after junction move More... | |
void | updateLaneGeometries () |
update edge geometry and inform the lanes let the lanes recompute their precomputed geometry information (needed after computing junction shapes) More... | |
bool | wasSplit () |
whether this edge was created from a split More... | |
~GNEEdge () | |
Destructor. More... | |
inherited from GUIGlObject | |
virtual GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own popup-menu. More... | |
virtual 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... | |
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 bool | changeGeometry (PositionVector &geom, const std::string &id, const Position &oldPos, const Position &newPos, bool relative=false, bool moveEndPoints=false) |
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 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 const SUMOReal | SNAP_RADIUS = SUMO_const_halfLaneWidth |
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 | addConnection (unsigned int fromLane, const std::string &toEdgeID, unsigned int toLane, bool mayPass) |
adds a connection More... | |
void | addLane (GNELane *lane, const NBEdge::Lane &laneAttrs) |
increase number of lanes by one use the given attributes and restore the GNELane More... | |
GNEEdge (const GNEEdge &s) | |
invalidated copy constructor More... | |
GNEEdge & | operator= (const GNEEdge &s) |
invalidated assignment operator More... | |
void | removeConnection (unsigned int fromLane, const std::string &toEdgeID, unsigned int toLane) |
removes a connection More... | |
void | removeLane (GNELane *lane) |
void | setAttribute (SumoXMLAttr key, const std::string &value) |
void | setNumLanes (unsigned int numLanes, GNEUndoList *undoList) |
changes the number of lanes. When reducing the number of lanes, higher-numbered lanes are removed first. When increasing the number of lanes, the last known attributes for a lane with this number are restored. If none are found the attributes for the leftmost lane are copied More... | |
Private Attributes | |
bool | myAmResponsible |
whether we are responsible for deleting myNBNode More... | |
std::string | myConnectionStatus |
modification status of the connections More... | |
LaneVector | myLanes |
List of this edges lanes. More... | |
NBEdge & | myNBEdge |
the underlying NBEdge More... | |
GNENet * | myNet |
PositionVector | myOrigShape |
restore point for undo More... | |
bool | myWasSplit |
whether this edge was created from a split More... | |
Friends | |
class | GNEChange_Connection |
class | GNEChange_Lane |
A road/street connecting two junctions (netedit-version)
typedef std::vector<GNELane*> GNEEdge::LaneVector |
Constructor.
[in] | nbe | The represented edge |
[in] | net | The net to inform about gui updates |
[in] | loaded | Whether the edge was loaded from a file |
Definition at line 65 of file GNEEdge.cpp.
References NBEdge::getNumLanes(), myLanes, and myNBEdge.
GNEEdge::~GNEEdge | ( | ) |
Destructor.
Definition at line 84 of file GNEEdge.cpp.
References myAmResponsible, myLanes, and myNBEdge.
|
private |
invalidated copy constructor
|
private |
adds a connection
Definition at line 751 of file GNEEdge.cpp.
References getNBEdge(), NBEdge::L2L_USER, myNBEdge, myNet, GNENet::refreshElement(), GNENet::retrieveEdge(), and NBEdge::setConnection().
Referenced by GNEChange_Connection::redo(), and GNEChange_Connection::undo().
|
private |
increase number of lanes by one use the given attributes and restore the GNELane
Definition at line 694 of file GNEEdge.cpp.
References NBEdge::addLane(), NBEdge::Lane::endOffset, GNELane::getIndex(), NBEdge::getNumLanes(), GNEReferenceCounter::incRef(), myLanes, myNBEdge, myNet, NBEdge::Lane::permissions, NBEdge::Lane::preferred, GNENet::refreshElement(), NBEdge::setEndOffset(), NBEdge::setLaneWidth(), NBEdge::setPermissions(), NBEdge::setPreferredVehicleClass(), NBEdge::setSpeed(), NBEdge::Lane::speed, and NBEdge::Lane::width.
Referenced by GNEChange_Lane::redo(), and GNEChange_Lane::undo().
|
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.
|
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(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), 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(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), 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(), GNECrossing::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), 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(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), 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(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), 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.
|
static |
Definition at line 244 of file GNEEdge.cpp.
References PositionVector::indexOfClosest(), PositionVector::insertAtClosest(), GeomHelper::INVALID_OFFSET, PositionVector::isClosed(), PositionVector::length2D(), PositionVector::nearest_offset_to_point2D(), PositionVector::positionAtOffset2D(), SNAP_RADIUS, and SUMOReal.
Referenced by getNBEdge(), GNEPoly::moveGeometry(), and moveGeometry().
void GNEEdge::copyTemplate | ( | GNEEdge * | tpl, |
GNEUndoList * | undolist | ||
) |
copy edge attributes from tpl
Definition at line 369 of file GNEEdge.cpp.
References getAttribute(), myLanes, GNEUndoList::p_begin(), GNEUndoList::p_end(), setAttribute(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_NUMLANES, SUMO_ATTR_PRIORITY, SUMO_ATTR_SPEED, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TYPE, and SUMO_ATTR_WIDTH.
Referenced by GNEInspector::onCmdCopyTemplate(), and setResponsible().
|
inlineinherited |
Definition at line 61 of file GNEReferenceCounter.h.
References GNEReferenceCounter::getID(), GNEReferenceCounter::myCount, toString(), and UNUSED_PARAMETER.
Referenced by GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), 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().
bool GNEEdge::deleteGeometry | ( | const Position & | pos, |
GNEUndoList * | undoList | ||
) |
deletes the closest geometry node within SNAP_RADIUS.
Definition at line 297 of file GNEEdge.cpp.
References NBEdge::getInnerGeometry(), PositionVector::indexOfClosest(), myNBEdge, setAttribute(), SNAP_RADIUS, SUMO_ATTR_SHAPE, and toString().
Referenced by GNENet::deleteGeometryOrEdge(), getNBEdge(), and setEndpoint().
|
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 141 of file GNEEdge.cpp.
References Position::add(), GUIVisualizationTextSettings::color, GLHelper::drawFilledCircle(), GUIGlObject::drawName(), GLHelper::drawText(), GUIVisualizationSettings::edgeName, NBEdge::getGeometry(), GUIGlObject::getGlID(), GUIPropertySchemeStorage< T >::getSchemes(), GNELane::getShape(), NBEdge::getStreetName(), GLO_JUNCTION, GLO_MAX, GUIVisualizationSettings::junctionColorer, PositionVector::length(), Position::mul(), myLanes, myNBEdge, PositionVector::positionAtOffset(), PositionVector::rotationDegreeAtOffset(), GUIVisualizationSettings::scale, GLHelper::setColor(), GUIVisualizationTextSettings::show, GUIVisualizationTextSettings::size, SNAP_RADIUS, GUIVisualizationSettings::streetName, SUMOReal, 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(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), 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 401 of file GNEEdge.cpp.
References getDest(), NBEdge::getEndOffset(), NBEdge::getGeometry(), NBEdge::getInnerGeometry(), NBEdge::getLaneSpreadFunction(), NBEdge::getLaneWidth(), NBEdge::getLoadedLength(), GUIGlObject::getMicrosimID(), NBEdge::getNumLanes(), NBEdge::getPermissions(), NBEdge::getPriority(), getSource(), NBEdge::getSpeed(), NBEdge::getStreetName(), NBEdge::getTypeID(), getVehicleClassNames(), GNE_ATTR_MODIFICATION_STATUS, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, NBEdge::hasLaneSpecificEndOffset(), NBEdge::hasLaneSpecificPermissions(), NBEdge::hasLaneSpecificSpeed(), NBEdge::hasLaneSpecificWidth(), myConnectionStatus, myNBEdge, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_NUMLANES, SUMO_ATTR_PRIORITY, SUMO_ATTR_SHAPE, SUMO_ATTR_SPEED, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TO, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, and toString().
Referenced by copyTemplate(), GNENet::finishMoveSelection(), getNBEdge(), GNEViewNet::onLeftBtnRelease(), GNENet::remapEdge(), and setAttribute().
|
inlineinherited |
Definition at line 91 of file GNEAttributeCarrier.h.
References GNEAttributeCarrier::allowedAttributes(), and GNEAttributeCarrier::myTag.
Referenced by GNEAttributeCarrier::isValid().
Boundary GNEEdge::getBoundary | ( | ) | const |
Returns the street's geometry.
Definition at line 98 of file GNEEdge.cpp.
References Boundary::add(), Boundary::grow(), and myLanes.
Referenced by getCenteringBoundary(), and GNENet::registerEdge().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 121 of file GNEEdge.cpp.
References getBoundary(), and Boundary::grow().
|
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().
GNEJunction * GNEEdge::getDest | ( | ) | const |
returns the destination-junction
Definition at line 135 of file GNEEdge.cpp.
References Named::getID(), NBEdge::getToNode(), myNBEdge, myNet, and GNENet::retrieveJunction().
Referenced by GNENet::addReversedEdge(), GNENet::deleteEdge(), GNENet::deleteLane(), GNELane::drawGL(), getAttribute(), getNBEdge(), GNESelector::handleIDs(), GNEConnector::handleLaneClick(), GNEConnector::initTargets(), isValid(), GNENet::joinSelectedJunctions(), GNENet::mergeJunctions(), GNENet::moveSelection(), GNENet::replaceJunctionByGeometry(), resetEndpoint(), GNENet::reverseEdge(), setAttribute(), setEndpoint(), setGeometry(), and setNumLanes().
|
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(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), 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(), GNEJunction::getColorValue(), GUIEdge::getIDs(), 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(), GNEJunction::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 GNEJunction::setLogicValid().
std::set< GUIGlID > GNEEdge::getLaneGlIDs | ( | ) |
returns GLIDs of all lanes
Definition at line 391 of file GNEEdge.cpp.
References GUIGlObject::getGlID(), and myLanes.
Referenced by GNEViewParent::isSelected(), GNEConnector::onCmdSelectDeadStarts(), and setResponsible().
|
inline |
returns a reference to the lane vector
Definition at line 219 of file GNEEdge.h.
References myLanes.
Referenced by GNETLSEditor::handleMultiChange(), GNEConnector::initTargets(), GNEConnector::onCmdSelectConflicts(), GNEConnector::onCmdSelectDeadStarts(), and GNEConnector::onCmdSelectPass().
|
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(), GNEJunction::getAttribute(), GNEPoly::getAttribute(), getAttribute(), GNELane::getParentName(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNEConnector::handleLaneClick(), GNETLSEditor::handleMultiChange(), isValid(), GNEViewNet::mergeJunctions(), GNEPoly::moveGeometry(), moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEViewNet::onLeftBtnPress(), GNEInspector::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), setAttribute(), GNENet::splitEdge(), and GNEConnector::updateDescription().
|
inline |
returns the internal NBEdge
Definition at line 132 of file GNEEdge.h.
References changeGeometry(), deleteGeometry(), getAttribute(), getDest(), getSource(), isValid(), moveGeometry(), myNBEdge, resetEndpoint(), setAttribute(), and setEndpoint().
Referenced by addConnection(), GNENet::addReversedEdge(), GNENet::changeEdgeEndpoints(), GNENet::createEdge(), GNENet::deleteLane(), GNENet::deleteSingleEdge(), GNELane::drawArrows(), GNELane::drawAsRailway(), GNELane::drawAsWaterway(), GNELane::drawGL(), GNELane::drawLane2LaneConnections(), GNELane::drawMarkings(), GNENet::duplicateLane(), GNELane::getAttribute(), GNELane::getBoundary(), GNELane::getColorValue(), GNEApplicationWindow::GNEShapeHandler::getLanePos(), GNEConnector::getLaneStatus(), GNELane::getParameterWindow(), GNELane::getShape(), GNEConnector::getTLLLinkNumber(), GNEConnector::handleLaneClick(), GNEConnector::initTargets(), GNENet::insertEdge(), GNEConnector::onCmdSelectDeadStarts(), GNEConnector::onCmdSelectPass(), removeConnection(), GNEJunction::removeFromCrossings(), GNENet::renameEdge(), GNENet::replaceJunctionByGeometry(), GNENet::reverseEdge(), GNELane::setAttribute(), GNELane::setIndex(), setMicrosimID(), and GNENet::splitEdge().
|
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 194 of file GNEEdge.cpp.
References UNUSED_PARAMETER.
|
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 109 of file GNEEdge.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), and GUIGlObject::buildSelectionPopupEntry().
GNEJunction * GNEEdge::getSource | ( | ) | const |
returns the source-junction
Definition at line 129 of file GNEEdge.cpp.
References NBEdge::getFromNode(), Named::getID(), myNBEdge, myNet, and GNENet::retrieveJunction().
Referenced by GNENet::addReversedEdge(), GNENet::deleteEdge(), GNENet::deleteLane(), getAttribute(), getNBEdge(), GNESelector::handleIDs(), isValid(), GNENet::joinSelectedJunctions(), GNENet::mergeJunctions(), GNENet::moveSelection(), GNENet::replaceJunctionByGeometry(), resetEndpoint(), GNENet::reverseEdge(), setAttribute(), setEndpoint(), setGeometry(), setNumLanes(), GNENet::splitEdge(), and updateJunctionPosition().
Definition at line 217 of file GNEEdge.cpp.
References NBEdge::getGeometry(), PositionVector::indexOfClosest(), myNBEdge, PositionVector::nearest_offset_to_point2D(), PositionVector::positionAtOffset(), and SNAP_RADIUS.
Referenced by GNEViewNet::onCmdSplitEdge(), and wasSplit().
|
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(), GNEJunction::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(), GNEJunction::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(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().
|
inlineinherited |
Definition at line 73 of file GNEReferenceCounter.h.
References GNEReferenceCounter::getID(), GNEReferenceCounter::myCount, toString(), and UNUSED_PARAMETER.
Referenced by addLane(), GNENet::registerEdge(), GNENet::registerJunction(), and GNEInspector::setEdgeTemplate().
|
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 541 of file GNEEdge.cpp.
References canParseVehicleClasses(), getDest(), GUIGlObject::getMicrosimID(), getSource(), StringBijection< T >::hasString(), GNEAttributeCarrier::isValidID(), SUMOXMLDefinitions::LaneSpreadFunctions, myNet, GeomConvHelper::parseShapeReporting(), GNENet::retrieveEdge(), GNENet::retrieveJunction(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_NUMLANES, SUMO_ATTR_PRIORITY, SUMO_ATTR_SHAPE, SUMO_ATTR_SPEED, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TO, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, toString(), NBEdge::UNSPECIFIED_LOADED_LENGTH, and NBEdge::UNSPECIFIED_WIDTH.
Referenced by getNBEdge().
|
staticinherited |
true if value is a valid sumo ID
Definition at line 70 of file GNEAttributeCarrier.cpp.
Referenced by GNEAttributeCarrier::isPositive(), GNEJunction::isValid(), and isValid().
Position GNEEdge::moveGeometry | ( | const Position & | oldPos, |
const Position & | newPos, | ||
bool | relative = false |
||
) |
change the edge geometry without registering undo/redo It is up to the Edge to decide whether an new geometry node should be generated or an existing node should be moved
[in] | oldPos | The origin of the mouse movement |
[in] | newPos | The destination of the mouse movenent |
[in] | relative | Whether newPos is absolute or relative |
Definition at line 231 of file GNEEdge.cpp.
References changeGeometry(), NBEdge::getGeometry(), GUIGlObject::getMicrosimID(), myNBEdge, and setGeometry().
Referenced by getNBEdge(), GNENet::moveSelection(), and GNEViewNet::onMouseMove().
void GNEEdge::moveGeometry | ( | const Position & | delta | ) |
change the edge geometry without registering undo/redo
[in] | delta | All inner points are moved by adding delta |
Definition at line 286 of file GNEEdge.cpp.
References PositionVector::add(), NBEdge::getInnerGeometry(), myNBEdge, setGeometry(), Position::x(), Position::y(), and Position::z().
|
inlinestaticinherited |
parses an object of type T from from string
Definition at line 129 of file GNEAttributeCarrier.h.
|
private |
removes a connection
Definition at line 759 of file GNEEdge.cpp.
References GUIGlObject::getMicrosimID(), getNBEdge(), NBEdge::getTurnDestination(), myNBEdge, myNet, GNENet::refreshElement(), GNENet::removeExplicitTurnaround(), NBEdge::removeFromConnections(), and GNENet::retrieveEdge().
Referenced by GNEChange_Connection::redo(), and GNEChange_Connection::undo().
|
private |
Definition at line 727 of file GNEEdge.cpp.
References GNEReferenceCounter::decRef(), NBEdge::deleteLane(), GNELane::getIndex(), myLanes, myNBEdge, myNet, and GNENet::refreshElement().
Referenced by GNEChange_Lane::redo(), and GNEChange_Lane::undo().
|
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().
void GNEEdge::resetEndpoint | ( | const Position & | pos, |
GNEUndoList * | undoList | ||
) |
restores the endpoint to the junction position at the appropriate end
Definition at line 337 of file GNEEdge.cpp.
References Position::distanceTo2D(), getDest(), GNEJunction::getNBNode(), NBNode::getPosition(), getSource(), GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, GNEJunction::invalidateShape(), setAttribute(), and toString().
Referenced by getNBEdge(), and GNEViewNet::onCmdResetEdgeEndpoint().
|
virtual |
Implements GNEAttributeCarrier.
Definition at line 467 of file GNEEdge.cpp.
References getAttribute(), getDest(), OptionsCont::getOptions(), getSource(), GNE_ATTR_MODIFICATION_STATUS, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, GNEAttributeCarrier::GNEChange_Attribute, GNEJunction::invalidateShape(), myLanes, myNBEdge, myNet, myOrigShape, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), OptionsCont::resetWritable(), GNENet::retrieveJunction(), OptionsCont::set(), NBEdge::setGeometry(), GNEJunction::setLogicValid(), setNumLanes(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_NUMLANES, SUMO_ATTR_PRIORITY, SUMO_ATTR_SHAPE, SUMO_ATTR_SPEED, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TO, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, and toString().
Referenced by GNENet::addReversedEdge(), copyTemplate(), deleteGeometry(), GNENet::finishMoveSelection(), getNBEdge(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnRelease(), GNENet::remapEdge(), GNENet::replaceJunctionByGeometry(), resetEndpoint(), GNENet::reverseEdge(), setEndpoint(), and GNENet::splitEdge().
|
privatevirtual |
Implements GNEAttributeCarrier.
Definition at line 600 of file GNEEdge.cpp.
References GNENet::changeEdgeEndpoints(), NBEdge::declareConnectionsAsLoaded(), getDest(), NBEdge::getGeometry(), GUIGlObject::getMicrosimID(), getSource(), GNE_ATTR_MODIFICATION_STATUS, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, GNEAttributeCarrier::GUESSED, NBEdge::invalidateConnections(), SUMOXMLDefinitions::LaneSpreadFunctions, GNEAttributeCarrier::MODIFIED, myConnectionStatus, myNBEdge, myNet, myOrigShape, NBEdge::myPriority, NBEdge::myType, GeomConvHelper::parseShapeReporting(), GNENet::renameEdge(), NBEdge::setEndOffset(), setGeometry(), NBEdge::setLaneSpreadFunction(), NBEdge::setLaneWidth(), NBEdge::setLoadedLength(), NBEdge::setSpeed(), NBEdge::setStreetName(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_NUMLANES, SUMO_ATTR_PRIORITY, SUMO_ATTR_SHAPE, SUMO_ATTR_SPEED, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TO, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, and toString().
void GNEEdge::setEndpoint | ( | Position | pos, |
GNEUndoList * | undoList | ||
) |
makes pos the new geometry endpoint at the appropriate end
Definition at line 314 of file GNEEdge.cpp.
References deleteGeometry(), Position::distanceTo2D(), getDest(), NBEdge::getGeometry(), GNEJunction::getNBNode(), NBNode::getPosition(), getSource(), GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, PositionVector::indexOfClosest(), GNEJunction::invalidateShape(), myNBEdge, GNEUndoList::p_begin(), GNEUndoList::p_end(), setAttribute(), SNAP_RADIUS, and toString().
Referenced by getNBEdge(), and GNEViewNet::onCmdSetEdgeEndpoint().
void GNEEdge::setGeometry | ( | PositionVector | geom, |
bool | inner | ||
) |
update edge geometry and inform the lanes
[in] | geom | The new geometry |
[in] | inner | Whether geom is only the inner points |
Definition at line 351 of file GNEEdge.cpp.
References getDest(), getSource(), GNEJunction::invalidateShape(), myNBEdge, myNet, GNENet::refreshElement(), NBEdge::setGeometry(), and updateLaneGeometries().
Referenced by moveGeometry(), setAttribute(), setResponsible(), and updateJunctionPosition().
|
virtual |
override to also set lane ids
Reimplemented from GUIGlObject.
Definition at line 770 of file GNEEdge.cpp.
References getNBEdge(), myLanes, and GUIGlObject::setMicrosimID().
Referenced by GNENet::renameEdge(), and wasSplit().
|
private |
changes the number of lanes. When reducing the number of lanes, higher-numbered lanes are removed first. When increasing the number of lanes, the last known attributes for a lane with this number are restored. If none are found the attributes for the leftmost lane are copied
Definition at line 674 of file GNEEdge.cpp.
References getDest(), NBEdge::getLaneStruct(), getSource(), GNEChange_Lane, myLanes, myNBEdge, GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNEJunction::setLogicValid().
Referenced by setAttribute().
|
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 193 of file GNEEdge.h.
References copyTemplate(), getLaneGlIDs(), myAmResponsible, setGeometry(), and updateLaneGeometries().
Referenced by GNENet::deleteSingleEdge(), and GNENet::registerEdge().
|
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 GNEEdge::updateJunctionPosition | ( | GNEJunction * | junction, |
const Position & | origPos | ||
) |
update edge geometry after junction move
Definition at line 203 of file GNEEdge.cpp.
References PositionVector::add(), NBEdge::getGeometry(), GNEJunction::getNBNode(), NBNode::getPosition(), getSource(), myNBEdge, and setGeometry().
Referenced by GNEJunction::move().
void GNEEdge::updateLaneGeometries | ( | ) |
update edge geometry and inform the lanes let the lanes recompute their precomputed geometry information (needed after computing junction shapes)
Definition at line 361 of file GNEEdge.cpp.
References myLanes.
Referenced by setGeometry(), and setResponsible().
|
inline |
whether this edge was created from a split
Definition at line 224 of file GNEEdge.h.
References getSplitPos(), myWasSplit, and setMicrosimID().
Referenced by GNENet::splitEdge().
|
friend |
|
friend |
Definition at line 63 of file GNEEdge.h.
Referenced by setNumLanes().
|
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 setAttribute(), and GNEJunction::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 setAttribute().
|
private |
whether we are responsible for deleting myNBNode
Definition at line 252 of file GNEEdge.h.
Referenced by setResponsible(), and ~GNEEdge().
|
private |
modification status of the connections
Definition at line 258 of file GNEEdge.h.
Referenced by getAttribute(), and setAttribute().
|
private |
List of this edges lanes.
Definition at line 246 of file GNEEdge.h.
Referenced by addLane(), copyTemplate(), drawGL(), getBoundary(), getLaneGlIDs(), getLanes(), GNEEdge(), removeLane(), setAttribute(), setMicrosimID(), setNumLanes(), updateLaneGeometries(), and ~GNEEdge().
|
private |
the underlying NBEdge
Definition at line 240 of file GNEEdge.h.
Referenced by addConnection(), addLane(), deleteGeometry(), drawGL(), getAttribute(), getDest(), getNBEdge(), getSource(), getSplitPos(), GNEEdge(), moveGeometry(), removeConnection(), removeLane(), setAttribute(), setEndpoint(), setGeometry(), setNumLanes(), updateJunctionPosition(), and ~GNEEdge().
|
private |
Definition at line 249 of file GNEEdge.h.
Referenced by addConnection(), addLane(), getDest(), getSource(), isValid(), removeConnection(), removeLane(), setAttribute(), and setGeometry().
|
private |
|
private |
whether this edge was created from a split
Definition at line 255 of file GNEEdge.h.
Referenced by wasSplit().
|
static |
Definition at line 236 of file GNEEdge.h.
Referenced by changeGeometry(), deleteGeometry(), drawGL(), getSplitPos(), and setEndpoint().
|
staticinherited |
associates object types with strings
Definition at line 100 of file GUIGlObject.h.