![]() |
SUMO - Simulation of Urban MObility
|
A road/street connecting two junctions (netedit-version) More...
#include <GNEEdge.h>
Public Member Functions | ||||
void | addAdditionalChild (GNEAdditional *additional) | |||
add additional child to this edge More... | ||||
void | addAdditionalParent (GNEAdditional *additional) | |||
add additional child to this edge More... | ||||
void | clearGNEConnections () | |||
clear current connections More... | ||||
void | commitShapeChange (const PositionVector &oldShape, GNEUndoList *undoList) | |||
commit geometry changes in the attributes of an element after use of changeShapeGeometry(...) More... | ||||
void | copyTemplate (GNEEdge *tpl, GNEUndoList *undolist) | |||
copy edge attributes from tpl More... | ||||
void | decRef (const std::string &debugMsg="") | |||
Decrease reference. More... | ||||
void | deleteGeometryPoint (const Position &pos, bool allowUndo=true) | |||
delete the geometry point closest to the given pos More... | ||||
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
Draws additional, user-triggered visualisations. More... | ||||
void | drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const | |||
draw name of item More... | ||||
void | editEndpoint (Position pos, GNEUndoList *undoList) | |||
makes pos the new geometry endpoint at the appropriate end, or remove current existent endpoint More... | ||||
const std::vector< GNEAdditional * > & | getAdditionalChilds () const | |||
return vector of additionals that have as Parent this edge (For example, Calibrators) More... | ||||
const std::vector< GNEAdditional * > & | getAdditionalParents () const | |||
return vector of additionals that have as Parameter this edge (For example, Rerouters) More... | ||||
Boundary | getBoundary () const | |||
Returns the street's geometry. More... | ||||
const std::vector< GNEConnection * > & | getGNEConnections () | |||
returns a reference to the GNEConnection vector More... | ||||
std::vector< GNECrossing * > | getGNECrossings () | |||
get GNECrossings vinculated with this Edge More... | ||||
GNEJunction * | getGNEJunctionDestiny () const | |||
returns the destination-junction More... | ||||
GNEJunction * | getGNEJunctionSource () const | |||
returns the source-junction More... | ||||
FXIcon * | getIcon () const | |||
get FXIcon associated to this AC More... | ||||
const std::string | getID () const | |||
function to support debugging More... | ||||
std::set< GUIGlID > | getLaneGlIDs () | |||
returns GLIDs of all lanes More... | ||||
const std::vector< GNELane * > & | getLanes () | |||
returns a reference to the lane vector More... | ||||
NBEdge * | getNBEdge () | |||
returns the internal NBEdge More... | ||||
GNENet * | getNet () const | |||
get Net in which this element is placed More... | ||||
GNEEdge * | getOppositeEdge () const | |||
get opposite edge More... | ||||
int | getRouteProbeRelativePosition (GNERouteProbe *routeProbe) const | |||
obtain relative positions of RouteProbes More... | ||||
Position | getSplitPos (const Position &clickPos) | |||
const TagProperties & | getTagProperty () const | |||
get Tag Property assigned to this object More... | ||||
const std::string & | getTagStr () const | |||
get tag assigned to this object in string format More... | ||||
int | getVertexIndex (Position pos, bool createIfNoExist, bool snapToGrid) | |||
return index of a vertex of shape, or of a new vertex if position is over an shape's edge More... | ||||
int | getVertexIndex (const double offset, bool createIfNoExist, bool snapToGrid) | |||
return index of a vertex of shape, or of a new vertex if position is over an shape's edge More... | ||||
GNEEdge (NBEdge &nbe, GNENet *net, bool wasSplit=false, bool loaded=false) | ||||
Constructor. More... | ||||
bool | hasRestrictedLane (SUMOVehicleClass vclass) const | |||
check if edge has a restricted lane More... | ||||
void | incRef (const std::string &debugMsg="") | |||
Increarse reference. More... | ||||
void | moveEntireShape (const PositionVector &oldShape, const Position &offset) | |||
move entire shape without commiting change More... | ||||
int | moveVertexShape (const int index, const Position &oldPos, const Position &offset) | |||
change position of a vertex of shape without commiting change More... | ||||
template<> | ||||
int | parse (const std::string &string) | |||
template<> | ||||
double | parse (const std::string &string) | |||
template<> | ||||
bool | parse (const std::string &string) | |||
template<> | ||||
std::string | parse (const std::string &string) | |||
template<> | ||||
SUMOVehicleClass | parse (const std::string &string) | |||
template<> | ||||
RGBColor | parse (const std::string &string) | |||
template<> | ||||
Position | parse (const std::string &string) | |||
template<> | ||||
PositionVector | parse (const std::string &string) | |||
template<> | ||||
SUMOVehicleShape | parse (const std::string &string) | |||
template<> | ||||
std::vector< std::string > | parse (const std::string &string) | |||
template<> | ||||
std::vector< int > | parse (const std::string &string) | |||
template<> | ||||
std::vector< double > | parse (const std::string &string) | |||
template<> | ||||
std::vector< bool > | parse (const std::string &string) | |||
template<> | ||||
std::vector< GNEEdge * > | parse (GNENet *net, const std::string &value) | |||
template<> | ||||
std::vector< GNELane * > | parse (GNENet *net, const std::string &value) | |||
template<> | ||||
std::string | parseIDs (const std::vector< GNEEdge *> &ACs) | |||
template<> | ||||
std::string | parseIDs (const std::vector< GNELane *> &ACs) | |||
void | remakeGNEConnections () | |||
remake connections More... | ||||
void | removeAdditionalChild (GNEAdditional *additional) | |||
remove additional child from this edge More... | ||||
void | removeAdditionalParent (GNEAdditional *additional) | |||
remove additional child from this edge More... | ||||
void | removeEdgeOfAdditionalParents (GNEUndoList *undoList) | |||
remove Edge of Additional Parent More... | ||||
void | resetEndpoint (const Position &pos, GNEUndoList *undoList) | |||
restores the endpoint to the junction position at the appropriate end More... | ||||
GNEConnection * | retrieveGNEConnection (int fromLane, NBEdge *to, int toLane, bool createIfNoExist=true) | |||
get GNEConnection if exist, and if not create it if create is enabled More... | ||||
void | setGeometry (PositionVector geom, bool inner, bool updateGrid) | |||
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... | ||||
void | smooth (GNEUndoList *undoList) | |||
make geometry smooth More... | ||||
void | smoothElevation (GNEUndoList *undoList) | |||
smooth elevation with regard to adjoining edges More... | ||||
PositionVector | smoothShape (const PositionVector &shape, bool forElevation) | |||
return smoothed shape More... | ||||
void | straightenElevation (GNEUndoList *undoList) | |||
interpolate z values linear between junctions More... | ||||
bool | unreferenced () | |||
check if object ins't referenced More... | ||||
void | updateGeometry (bool updateGrid) | |||
update pre-computed geometry information More... | ||||
void | updateJunctionPosition (GNEJunction *junction, const Position &origPos, bool updateGrid) | |||
update edge geometry after junction move More... | ||||
bool | wasSplit () | |||
whether this edge was created from a split More... | ||||
~GNEEdge () | ||||
Destructor. More... | ||||
functions for edit start and end positions of shapes | ||||
return true if user clicked over ShapeStart | ||||
bool | clickedOverShapeStart (const Position &pos) | |||
bool | clickedOverShapeEnd (const Position &pos) | |||
return true if user clicked over ShapeEnd More... | ||||
void | moveShapeStart (const Position &oldPos, const Position &offset) | |||
move position of shape start without commiting change More... | ||||
void | moveShapeEnd (const Position &oldPos, const Position &offset) | |||
move position of shape end without commiting change More... | ||||
void | commitShapeStartChange (const Position &oldPos, GNEUndoList *undoList) | |||
commit position changing in shape start More... | ||||
void | commitShapeEndChange (const Position &oldPos, GNEUndoList *undoList) | |||
commit position changing in shape end More... | ||||
functions for edit geometry | ||||
begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree) | ||||
void | startGeometryMoving () | |||
void | endGeometryMoving () | |||
begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree) More... | ||||
inherited from GUIGlObject | ||||
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own popup-menu. 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... | ||||
inherited from GNEAttributeCarrier | ||||
std::string | getAttribute (SumoXMLAttr key) const | |||
std::string | getAttributeForSelection (SumoXMLAttr key) const | |||
method for getting the attribute in the context of object selection More... | ||||
void | setAttribute (SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) | |||
bool | isValid (SumoXMLAttr key, const std::string &value) | |||
Function related with Generic Parameters | ||||
std::string | getGenericParametersStr () const | |||
return generic parameters in string format More... | ||||
std::vector< std::pair< std::string, std::string > > | getGenericParameters () const | |||
return generic parameters as vector of pairs format More... | ||||
void | setGenericParametersStr (const std::string &value) | |||
set generic parameters in string format More... | ||||
inherited from GUIGlObject | ||||
GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own parameter window. More... | ||||
inherited from GNEAttributeCarrier | ||||
void | selectAttributeCarrier (bool changeFlag=true) | |||
select attribute carrier using GUIGlobalSelection More... | ||||
void | unselectAttributeCarrier (bool changeFlag=true) | |||
unselect attribute carrier using GUIGlobalSelection More... | ||||
bool | isAttributeCarrierSelected () const | |||
check if attribute carrier is selected More... | ||||
std::string | getPopUpID () const | |||
get PopPup ID (Used in AC Hierarchy) More... | ||||
std::string | getHierarchyName () const | |||
get Hierarchy Name (Used in AC Hierarchy) More... | ||||
Atomar getter methods | ||||
Returns the full name appearing in the tool tip
| ||||
const std::string & | getFullName () const | |||
virtual 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 | ||||
virtual GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own type parameter window (optional) More... | ||||
virtual 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... | ||||
virtual double | getColorValue (const GUIVisualizationSettings &, int) const | |||
Parameter table window I/O | ||||
Lets this object know a parameter window showing the object's values was opened
| ||||
void | addParameterTable (GUIParameterTableWindow *w) | |||
void | removeParameterTable (GUIParameterTableWindow *w) | |||
Lets this object know a parameter window showing the object's values was closed. More... | ||||
Static Public Member Functions | |
static std::vector< SumoXMLTag > | allowedTags (bool onlyDrawables) |
get tags of all editable element types More... | |
static std::vector< SumoXMLTag > | allowedTagsByCategory (int tagPropertyCategory, bool onlyDrawables) |
get tags of all editable element types using TagProperty Type (TAGPROPERTY_NETELEMENT, TAGPROPERTY_ADDITIONAL, etc.) More... | |
template<typename T > | |
static bool | canParse (const std::string &string) |
true if a value of type T can be parsed from string More... | |
template<typename T > | |
static bool | canParse (GNENet *net, const std::string &value, bool report) |
true if a value of type T can be parsed from string More... | |
static int | getCircleResolution (const GUIVisualizationSettings &settings) |
function to calculate circle resolution for all circles drawn in drawGL(...) functions More... | |
static int | getHigherNumberOfAttributes () |
return the number of attributes of the tag with the most highter number of attributes More... | |
static const TagProperties & | getTagProperties (SumoXMLTag tag) |
get Tag Properties More... | |
static bool | isGenericParametersValid (const std::string &value) |
check if given string can be parsed to a map/list of generic parameters More... | |
static bool | lanesConsecutives (const std::vector< GNELane *> &lanes) |
check if lanes are consecutives More... | |
template<typename T > | |
static T | parse (const std::string &string) |
parses a value of type T from string (used for basic types: int, double, bool, etc.) More... | |
template<typename T > | |
static T | parse (GNENet *net, const std::string &value) |
parses a complex value of type T from string (use for list of edges, list of lanes, etc.) More... | |
template<typename T > | |
static T | parseAttributeFromXML (const SUMOSAXAttributes &attrs, const std::string &objectID, const SumoXMLTag tag, const SumoXMLAttr attribute, bool &abort) |
Parse attribute from XML and show warnings if there are problems parsing it. More... | |
template<typename T > | |
static std::string | parseIDs (const std::vector< T > &ACs) |
parses a list of specific Attribute Carriers into a string of IDs More... | |
Static Public Attributes | |
static GNEEdge | DummyEdge |
Dummy edge to use when a reference must be supplied in the no-arguments constructor (FOX technicality) More... | |
static const GUIGlID | INVALID_ID = 0 |
static const double | SNAP_RADIUS = SUMO_const_halfLaneWidth |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings More... | |
Certain attributes and ACs (for example, connections) can be either loaded or guessed. The following static variables are used to remark it. | |
feature is still unchanged after being loaded (implies approval) | |
static const std::string | FEATURE_LOADED = "loaded" |
static const std::string | FEATURE_GUESSED = "guessed" |
feature has been reguessed (may still be unchanged be we can't tell (yet) More... | |
static const std::string | FEATURE_MODIFIED = "modified" |
feature has been manually modified (implies approval) More... | |
static const std::string | FEATURE_APPROVED = "approved" |
feature has been approved but not changed (i.e. after being reguessed) More... | |
Protected Member Functions | |
void | buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
void | buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
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 | buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the type 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... | |
Protected Attributes | |
std::vector< GNEAdditional * > | myAdditionalChilds |
list of Additional Childs of this NetElement More... | |
bool | myAmResponsible |
whether we are responsible for deleting myNBNode More... | |
std::string | myConnectionStatus |
modification status of the connections More... | |
std::vector< GNEAdditional * > | myFirstAdditionalParents |
list of Additional parents of this NetElement More... | |
ConnectionVector | myGNEConnections |
vector with the connections of this edge More... | |
GNEJunction * | myGNEJunctionDestiny |
pointer to GNEJunction destiny More... | |
GNEJunction * | myGNEJunctionSource |
pointer to GNEJunction source More... | |
LaneVector | myLanes |
vectgor with the lanes of this edge More... | |
Boundary | myMovingGeometryBoundary |
boundary used during moving of elements More... | |
PositionVector | myMovingShape |
variable used to save shape bevore moving (used to avoid inconsistences in GL Tree) More... | |
NBEdge & | myNBEdge |
the underlying NBEdge More... | |
GNENet * | myNet |
the net to inform about updates More... | |
bool | mySelected |
boolean to check if this AC is selected (instead of GUIGlObjectStorage) More... | |
const TagProperties & | myTagProperty |
the xml tag to which this attribute carrier corresponds More... | |
bool | myWasSplit |
whether this edge was created from a split More... | |
Static Protected Attributes | |
static TagProperties | dummyTagProperty |
dummy TagProperty used for reference some elements (for Example, dummyEdge) More... | |
Private Member Functions | |
void | addConnection (NBEdge::Connection nbCon, bool selectAfterCreation=false) |
adds a connection More... | |
void | addLane (GNELane *lane, const NBEdge::Lane &laneAttrs, bool recomputeConnections) |
increase number of lanes by one use the given attributes and restore the GNELane More... | |
GNEEdge (const GNEEdge &s)=delete | |
invalidated copy constructor More... | |
GNEEdge () | |
constructor for dummy edge More... | |
void | mouseOverObject (const GUIVisualizationSettings &s) const |
method for check if mouse is over objects More... | |
GNEEdge & | operator= (const GNEEdge &s)=delete |
invalidated assignment operator More... | |
void | removeConnection (NBEdge::Connection nbCon) |
removes a connection More... | |
void | removeEdgeFromCrossings (GNEJunction *junction, GNEUndoList *undoList) |
remove crossing of junction More... | |
void | removeLane (GNELane *lane, bool recomputeConnections) |
the number of lanes by one. argument is only used to increase robustness (assertions) More... | |
void | setAttribute (SumoXMLAttr key, const std::string &value) |
set attribute after validation More... | |
void | setNumLanes (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... | |
void | setShapeEndPos (const Position &pos, bool updateGrid) |
change Shape EndPos More... | |
void | setShapeStartPos (const Position &pos, bool updateGrid) |
change Shape StartPos More... | |
Friends | |
class | GNEChange_Connection |
class | GNEChange_Lane |
Friend class. More... | |
A road/street connecting two junctions (netedit-version)
typedef std::vector<GNEConnection*> GNEEdge::ConnectionVector |
typedef std::vector<GNELane*> GNEEdge::LaneVector |
|
inherited |
struct with the tag Properties
Definition at line 60 of file GNEAttributeCarrier.h.
|
inherited |
Definition at line 223 of file GNEAttributeCarrier.h.
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 60 of file GNEEdge.cpp.
References NBEdge::getNumLanes(), myLanes, and myNBEdge.
GNEEdge::~GNEEdge | ( | ) |
Destructor.
Definition at line 88 of file GNEEdge.cpp.
References myAmResponsible, myGNEConnections, myLanes, myNBEdge, and WRITE_DEBUG.
|
privatedelete |
invalidated copy constructor
|
private |
constructor for dummy edge
Definition at line 82 of file GNEEdge.cpp.
|
inherited |
add additional child to this edge
Definition at line 83 of file GNENetElement.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENetElement::myAdditionalChilds, and GNENetElement::updateGeometry().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildVaporizer(), GNEAdditional::changeEdge(), and GNEAdditional::changeLane().
|
inherited |
add additional child to this edge
Definition at line 56 of file GNENetElement.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENetElement::myFirstAdditionalParents, and GNENetElement::updateGeometry().
|
private |
adds a connection
Definition at line 1463 of file GNEEdge.cpp.
References NBEdge::Connection::contPos, NBEdge::Connection::customShape, NBEdge::Connection::fromLane, GNENetElement::getAdditionalChilds(), GNEConnection::getLaneFrom(), GNEConnection::getLaneTo(), NBEdge::Connection::keepClear, NBEdge::L2L_USER, NBEdge::Connection::mayDefinitelyPass, myGNEConnections, myNBEdge, retrieveGNEConnection(), GNENetElement::selectAttributeCarrier(), NBEdge::setConnection(), NBEdge::Connection::speed, SUMO_TAG_E2DETECTOR_MULTILANE, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, NBEdge::Connection::uncontrolled, GNEConnection::updateGeometry(), updateGeometry(), and NBEdge::Connection::visibility.
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 1360 of file GNEEdge.cpp.
References GNENet::addGLObjectIntoGrid(), NBEdge::addLane(), NBEdge::Lane::endOffset, GNEJunction::getGNEEdges(), GNELane::getIndex(), NBEdge::getNumLanes(), GNEReferenceCounter::incRef(), GNENetElement::isAttributeCarrierSelected(), myGNEJunctionDestiny, myGNEJunctionSource, myLanes, myNBEdge, GNENetElement::myNet, NBEdge::Lane::permissions, NBEdge::Lane::preferred, remakeGNEConnections(), GNENet::removeGLObjectFromGrid(), GNENetElement::selectAttributeCarrier(), NBEdge::setEndOffset(), NBEdge::setLaneWidth(), NBEdge::setPermissions(), NBEdge::setPreferredVehicleClass(), NBEdge::setSpeed(), NBEdge::Lane::speed, updateGeometry(), and NBEdge::Lane::width.
Referenced by GNEChange_Lane::redo(), and GNEChange_Lane::undo().
|
inherited |
Definition at line 263 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
staticinherited |
get tags of all editable element types
Definition at line 1056 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::fillAttributeCarriers(), and GNEAttributeCarrier::myTagProperties.
|
staticinherited |
get tags of all editable element types using TagProperty Type (TAGPROPERTY_NETELEMENT, TAGPROPERTY_ADDITIONAL, etc.)
Definition at line 1073 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::fillAttributeCarriers(), GNEAttributeCarrier::myTagProperties, GNEAttributeCarrier::TAGPROPERTY_ADDITIONAL, GNEAttributeCarrier::TAGPROPERTY_NETELEMENT, GNEAttributeCarrier::TAGPROPERTY_SHAPE, and GNEAttributeCarrier::TAGPROPERTY_TAZ.
Referenced by GNENet::computeEverything(), GNESelectorFrame::MatchAttribute::enableMatchAttribute(), GNENet::GNENet(), GNEFrame::ItemSelector::ItemSelector(), GNESelectorFrame::MatchAttribute::onCmdSelMBTag(), and GNEAdditionalFrame::SelectorAdditionalParent::showSelectorAdditionalParentModul().
|
protectedinherited |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 301 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 192 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNENet::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 201 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 183 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNENet::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::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 242 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNENet::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 211 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 GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 278 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
Referenced by GUIPointOfInterest::getPopUpMenu(), and GNEPOI::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 254 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 224 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNELane::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), getPopUpMenu(), GUILane::getPopUpMenu(), and GNEAdditional::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
Definition at line 233 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIPerson::getPopUpMenu(), and GUIBaseVehicle::getPopUpMenu().
|
inlinestaticinherited |
true if a value of type T can be parsed from string
Definition at line 547 of file GNEAttributeCarrier.h.
References GNEAttributeCarrier::parse().
Referenced by GNECalibratorRoute::isValid(), GNECrossing::isValid(), GNEDetectorE2::isValid(), GNEAdditionalHandler::parseAndBuildCalibratorRoute(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildRerouter(), and GNEAdditionalHandler::parseAndBuildVariableSpeedSign().
|
inlinestaticinherited |
true if a value of type T can be parsed from string
Definition at line 566 of file GNEAttributeCarrier.h.
References GNEAttributeCarrier::lanesConsecutives(), GNEAttributeCarrier::parse(), GNEAttributeCarrier::parseIDs(), and WRITE_WARNING.
void GNEEdge::clearGNEConnections | ( | ) |
clear current connections
Definition at line 748 of file GNEEdge.cpp.
References myGNEConnections, GNENetElement::myNet, GNENet::removeGLObjectFromGrid(), and WRITE_DEBUG.
Referenced by setAttribute().
bool GNEEdge::clickedOverShapeEnd | ( | const Position & | pos | ) |
return true if user clicked over ShapeEnd
Definition at line 156 of file GNEEdge.cpp.
References NBEdge::getGeometry(), GNEJunction::getPositionInView(), myGNEJunctionDestiny, myNBEdge, and SNAP_RADIUS.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues().
bool GNEEdge::clickedOverShapeStart | ( | const Position & | pos | ) |
Definition at line 146 of file GNEEdge.cpp.
References NBEdge::getGeometry(), GNEJunction::getPositionInView(), myGNEJunctionSource, myNBEdge, and SNAP_RADIUS.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues().
void GNEEdge::commitShapeChange | ( | const PositionVector & | oldShape, |
GNEUndoList * | undoList | ||
) |
commit geometry changes in the attributes of an element after use of changeShapeGeometry(...)
[in] | oldShape | the old shape of polygon |
[in] | undoList | The undoList on which to register changes |
Definition at line 353 of file GNEEdge.cpp.
References GNEJunction::BUBBLE_RADIUS, endGeometryMoving(), GUIVisualizationSizeSettings::exaggeration, NBEdge::getGeometry(), NBEdge::getInnerGeometry(), GNEAttributeCarrier::getTagStr(), GNENet::getViewNet(), GUISUMOAbstractView::getVisualisationSettings(), GNEAttributeCarrier::GNEChange_Attribute, GUIVisualizationSettings::junctionSize, myNBEdge, GNENetElement::myNet, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), PositionVector::removeClosest(), PositionVector::removeDoublePoints(), setGeometry(), SNAP_RADIUS, SUMO_ATTR_SHAPE, toString(), updateGeometry(), and WRITE_WARNING.
Referenced by GNEViewNet::onLeftBtnRelease().
void GNEEdge::commitShapeEndChange | ( | const Position & | oldPos, |
GNEUndoList * | undoList | ||
) |
commit position changing in shape end
Definition at line 211 of file GNEEdge.cpp.
References NBEdge::getGeometry(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_SHAPE_END, GNEAttributeCarrier::GNEChange_Attribute, myNBEdge, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), setShapeEndPos(), and toString().
Referenced by GNEViewNet::onLeftBtnRelease().
void GNEEdge::commitShapeStartChange | ( | const Position & | oldPos, |
GNEUndoList * | undoList | ||
) |
commit position changing in shape start
Definition at line 198 of file GNEEdge.cpp.
References NBEdge::getGeometry(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_SHAPE_START, GNEAttributeCarrier::GNEChange_Attribute, myNBEdge, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), setShapeStartPos(), and toString().
Referenced by GNEViewNet::onLeftBtnRelease().
void GNEEdge::copyTemplate | ( | GNEEdge * | tpl, |
GNEUndoList * | undolist | ||
) |
copy edge attributes from tpl
Definition at line 841 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 GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate().
|
inlineinherited |
Decrease reference.
Definition at line 53 of file GNEReferenceCounter.h.
References GNEReferenceCounter::getID(), GNEReferenceCounter::myCount, toString(), UNUSED_PARAMETER, and WRITE_ERROR.
Referenced by GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), removeConnection(), removeLane(), GNEInspectorFrame::TemplateEditor::setEdgeTemplate(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_Shape::~GNEChange_Shape(), GNEChange_TLS::~GNEChange_TLS(), GNENet::~GNENet(), and GNEInspectorFrame::TemplateEditor::~TemplateEditor().
void GNEEdge::deleteGeometryPoint | ( | const Position & | pos, |
bool | allowUndo = true |
||
) |
delete the geometry point closest to the given pos
Definition at line 383 of file GNEEdge.cpp.
References NBEdge::getInnerGeometry(), GNEViewNet::getUndoList(), GNENet::getViewNet(), PositionVector::indexOfClosest(), myNBEdge, GNENetElement::myNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), setAttribute(), setGeometry(), SUMO_ATTR_SHAPE, and toString().
Referenced by editEndpoint(), and GNEDeleteFrame::removeAttributeCarrier().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GNENetElement.
Definition at line 476 of file GNEEdge.cpp.
References Position::add(), RGBColor::changedBrightness(), GUIVisualizationTextSettings::color, Position::distanceSquaredTo2D(), GLHelper::drawFilledCircle(), GUIVisualizationSettings::drawForSelecting, GLHelper::drawLine(), GUIGlObject::drawName(), GLHelper::drawShapeDottedContour(), GLHelper::drawText(), GLHelper::drawTextSettings(), GUIVisualizationSettings::edgeName, GUIVisualizationSettings::edgeValue, GNEViewNet::editingElevation(), GUIPropertySchemeStorage< T >::getActive(), GNEAttributeCarrier::getCircleResolution(), GNELane::getColorValue(), GNEViewNet::getCurrentEditMode(), GNEViewNet::getDottedAC(), NBEdge::getGeometry(), GUIGlObject::getGlID(), NBEdge::getLanes(), NBEdge::getLaneWidth(), GUISUMOAbstractView::getPositionInformation(), GNEJunction::getPositionInView(), GUIPropertySchemeStorage< T >::getSchemes(), GNELane::getShape(), NBEdge::getStreetName(), GNENet::getViewNet(), GLO_JUNCTION, GLO_MAX, GNE_MODE_MOVE, GNENetElement::isAttributeCarrierSelected(), GUIVisualizationSettings::junctionColorer, GUIVisualizationSettings::laneColorer, GUIVisualizationSettings::laneWidthExaggeration, PositionVector::length(), MIN2(), Position::mul(), myGNEJunctionDestiny, myGNEJunctionSource, myLanes, myNBEdge, GNENetElement::myNet, PositionVector::positionAtOffset(), PositionVector::rotationDegreeAtOffset(), GUIVisualizationSettings::scale, GUIVisualizationTextSettings::scaledSize(), GUIVisualizationSettings::selectedEdgeColor, GLHelper::setColor(), GUIVisualizationTextSettings::show, SNAP_RADIUS, GUIVisualizationSettings::streetName, toString(), RGBColor::WHITE, Position::x(), Position::y(), and Position::z().
|
virtualinherited |
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 162 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
|
inherited |
draw name of item
Definition at line 330 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), GUIGlObject::getMicrosimID(), and GUIVisualizationTextSettings::show.
Referenced by GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEVariableSpeedSign::drawGL(), GNEJunction::drawGL(), GNERerouter::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorExit::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEDetectorE1Instant::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GNECalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GNETAZ::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEDetectorE2::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), and GUIBaseVehicle::drawOnPos().
void GNEEdge::editEndpoint | ( | Position | pos, |
GNEUndoList * | undoList | ||
) |
makes pos the new geometry endpoint at the appropriate end, or remove current existent endpoint
Definition at line 633 of file GNEEdge.cpp.
References deleteGeometryPoint(), Position::distanceTo2D(), NBEdge::getGeometry(), NBEdge::getInnerGeometry(), GNEJunction::getNBNode(), NBNode::getPosition(), GNEJunction::getPositionInView(), getVertexIndex(), GNENet::getViewNet(), GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, PositionVector::indexOfClosest(), GeomHelper::INVALID_OFFSET, GNEJunction::invalidateShape(), myGNEJunctionDestiny, myGNEJunctionSource, myNBEdge, GNENetElement::myNet, PositionVector::nearest_offset_to_point2D(), GNEUndoList::p_begin(), GNEUndoList::p_end(), PositionVector::positionAtOffset2D(), setAttribute(), SNAP_RADIUS, GUISUMOAbstractView::snapToActiveGrid(), and toString().
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), and GNEViewNet::onCmdEditEdgeEndpoint().
void GNEEdge::endGeometryMoving | ( | ) |
begin movement (used when user click over edge to start a movement, to avoid problems with problems with GL Tree)
Definition at line 243 of file GNEEdge.cpp.
References GNENet::addGLObjectIntoGrid(), Boundary::isInitialised(), GNENetElement::myAdditionalChilds, GNENetElement::myFirstAdditionalParents, myLanes, GNENetElement::myMovingGeometryBoundary, GNENetElement::myNet, GNENet::removeGLObjectFromGrid(), Boundary::reset(), and updateGeometry().
Referenced by commitShapeChange(), and GNEViewNet::onLeftBtnRelease().
|
inherited |
return vector of additionals that have as Parent this edge (For example, Calibrators)
Definition at line 116 of file GNENetElement.cpp.
References GNENetElement::myAdditionalChilds.
Referenced by addConnection(), GNENet::deleteEdge(), GNENet::deleteLane(), GNEDeleteFrame::removeAttributeCarrier(), removeConnection(), GNENet::replaceIncomingEdge(), retrieveGNEConnection(), and GNEFrame::ACHierarchy::showAttributeCarrierChilds().
|
inherited |
return vector of additionals that have as Parameter this edge (For example, Rerouters)
Definition at line 110 of file GNENetElement.cpp.
References GNENetElement::myFirstAdditionalParents.
Referenced by GNEDeleteFrame::removeAttributeCarrier(), and GNENet::replaceIncomingEdge().
|
virtual |
Implements GNENetElement.
Definition at line 891 of file GNEEdge.cpp.
References NBEdge::getEndOffset(), NBEdge::getFinalLength(), getGenericParametersStr(), NBEdge::getGeometry(), NBEdge::getInnerGeometry(), NBEdge::getLaneSpreadFunction(), NBEdge::getLaneWidth(), GUIGlObject::getMicrosimID(), NBEdge::getNumLanes(), NBEdge::getPermissions(), GNEJunction::getPositionInView(), NBEdge::getPriority(), NBEdge::getSpeed(), NBEdge::getStreetName(), GNEAttributeCarrier::getTagStr(), NBEdge::getTypeID(), getVehicleClassNames(), GNE_ATTR_BIDIR, GNE_ATTR_GENERIC, GNE_ATTR_MODIFICATION_STATUS, GNE_ATTR_SELECTED, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, NBEdge::hasLaneSpecificEndOffset(), NBEdge::hasLaneSpecificPermissions(), NBEdge::hasLaneSpecificSpeed(), NBEdge::hasLaneSpecificWidth(), invertPermissions(), GNENetElement::isAttributeCarrierSelected(), NBEdge::isBidiRail(), myConnectionStatus, myGNEJunctionDestiny, myGNEJunctionSource, 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 GNENet::addReversedEdge(), copyTemplate(), getAttributeForSelection(), GNENet::replaceIncomingEdge(), GNENet::replaceJunctionByGeometry(), GNENet::reverseEdge(), setAttribute(), and GNENet::splitEdge().
|
virtual |
method for getting the attribute in the context of object selection
Reimplemented from GNEAttributeCarrier.
Definition at line 962 of file GNEEdge.cpp.
References getAttribute(), getVehicleClassNames(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, and SVCAll.
Boundary GNEEdge::getBoundary | ( | ) | const |
Returns the street's geometry.
Definition at line 415 of file GNEEdge.cpp.
References Boundary::add(), NBEdge::getGeometry(), Boundary::grow(), myLanes, and myNBEdge.
Referenced by getCenteringBoundary(), and GNENet::registerEdge().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GNENetElement.
Definition at line 430 of file GNEEdge.cpp.
References getBoundary(), Boundary::grow(), Boundary::isInitialised(), and GNENetElement::myMovingGeometryBoundary.
Referenced by startGeometryMoving().
|
staticinherited |
function to calculate circle resolution for all circles drawn in drawGL(...) functions
Definition at line 1165 of file GNEAttributeCarrier.cpp.
References GUIVisualizationSettings::drawForSelecting, and GUIVisualizationSettings::scale.
Referenced by GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEJunction::drawGL(), GNETAZ::drawGL(), GNELane::drawGL(), GNEPoly::drawGL(), drawGL(), and GNEAttributeCarrier::parseAttributeFromXML().
|
inlinevirtualinherited |
Reimplemented in GUILane, GNELane, and GUIEdge.
Definition at line 145 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::showToolTipFor().
|
inherited |
Definition at line 117 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), and GUISelectedStorage::save().
|
virtual |
return generic parameters as vector of pairs format
Implements GNENetElement.
Definition at line 1175 of file GNEEdge.cpp.
References Parameterised::getParametersMap(), and myNBEdge.
|
virtual |
return generic parameters in string format
Implements GNENetElement.
Definition at line 1160 of file GNEEdge.cpp.
References Parameterised::getParametersMap(), and myNBEdge.
Referenced by getAttribute().
|
inherited |
Returns the numerical id of the object.
Definition at line 129 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildRouteProbe(), GUIGlObject::buildSelectionPopupEntry(), GNEAdditionalHandler::buildVaporizer(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEJunction::drawGL(), GNEVariableSpeedSign::drawGL(), GNEInternalLane::drawGL(), GNECrossing::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEDetectorE1Instant::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUIPolygon::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GNECalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GUIPointOfInterest::drawGL(), GNETAZ::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEDetectorE2::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), drawGL(), GUILane::drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), GNEPoly::getGlID(), GNEPOI::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::isLaneOrEdgeSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIVehicle::isSelected(), GUIPerson::isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GNEFrame::ACHierarchy::onCmdCenterItem(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNENetElement::selectAttributeCarrier(), GNEShape::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNENetElement::unselectAttributeCarrier(), GNEShape::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
const std::vector< GNEConnection * > & GNEEdge::getGNEConnections | ( | ) |
returns a reference to the GNEConnection vector
Definition at line 879 of file GNEEdge.cpp.
References myGNEConnections.
Referenced by GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), and GNELane::getGNEOutcomingConnections().
std::vector< GNECrossing * > GNEEdge::getGNECrossings | ( | ) |
get GNECrossings vinculated with this Edge
Definition at line 789 of file GNEEdge.cpp.
References GNEJunction::getGNECrossings(), myGNEJunctionDestiny, and myGNEJunctionSource.
GNEJunction * GNEEdge::getGNEJunctionDestiny | ( | ) | const |
returns the destination-junction
Definition at line 464 of file GNEEdge.cpp.
References myGNEJunctionDestiny.
Referenced by GNENet::addReversedEdge(), GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEConnectorFrame::buildConnection(), GNEProhibitionFrame::buildProhibition(), GNENet::deleteConnection(), GNENet::deleteEdge(), GNENet::deleteLane(), GNENet::deleteSingleEdge(), GNELane::drawGL(), GNEConnection::getBoundary(), GNEConnectorFrame::initTargets(), GNEAdditional::isRouteValid(), GNENet::joinSelectedJunctions(), GNENet::mergeJunctions(), GNENet::registerEdge(), GNENet::replaceIncomingEdge(), GNENet::reverseEdge(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), and GNENet::splitEdge().
GNEJunction * GNEEdge::getGNEJunctionSource | ( | ) | const |
returns the source-junction
Definition at line 458 of file GNEEdge.cpp.
References myGNEJunctionSource.
Referenced by GNENet::addReversedEdge(), GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEConnectorFrame::buildConnection(), GNENet::deleteEdge(), GNENet::deleteLane(), GNENet::deleteSingleEdge(), GNELane::drawGL(), GNELane::getGNEIncomingConnections(), GNENet::mergeJunctions(), GNENet::registerEdge(), GNENet::reverseEdge(), and GNEFrame::ACHierarchy::showAttributeCarrierParents().
|
virtualinherited |
get Hierarchy Name (Used in AC Hierarchy)
Implements GNEAttributeCarrier.
Definition at line 188 of file GNENetElement.cpp.
References GNENetElement::getAttribute(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::myTagProperty, SUMO_ATTR_FROM_LANE, SUMO_ATTR_ID, SUMO_ATTR_INDEX, SUMO_ATTR_TO_LANE, SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_LANE, and toString().
Referenced by GNEFrame::ACHierarchy::showAttributeCarrierParents().
|
staticinherited |
return the number of attributes of the tag with the most highter number of attributes
Definition at line 1120 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::fillAttributeCarriers(), MAX2(), and GNEAttributeCarrier::myTagProperties.
Referenced by GNEFrame::ACAttributes::ACAttributes(), and GNEInspectorFrame::AttributesEditor::AttributesEditor().
|
inherited |
get FXIcon associated to this AC
Definition at line 1019 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::fillAttributeCarriers(), GNEAttributeCarrier::TagProperties::getGUIIcon(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::myTagProperties, and GNEAttributeCarrier::myTagProperty.
Referenced by GNEFrame::ACHierarchy::addACIntoList(), GNEFrame::ACHierarchy::createPopUpMenu(), GNEAdditional::getPopUpMenu(), and GNEFrame::ACHierarchy::showAttributeCarrierParents().
|
virtualinherited |
function to support debugging
Implements GNEReferenceCounter.
Definition at line 1029 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::getAttribute(), and SUMO_ATTR_ID.
Referenced by GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNENetElement::addAdditionalParent(), GNECrossingFrame::addCrossing(), GNEAdditional::addEdgeChild(), GNEJunction::addIncomingGNEEdge(), GNEAdditional::addLaneChild(), GNEJunction::addOutgoingGNEEdge(), GNENet::addPOI(), GNENet::addReversedEdge(), GNELane::addShapeChild(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildAdditional(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEConnectorFrame::buildConnection(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNENet::changeShapeID(), GNENet::computeEverything(), GNENet::deleteAdditional(), GNEAdditional::generateAdditionalChildID(), GNEAdditionalFrame::generateID(), GNEContainerStop::getAttribute(), GNEBusStop::getAttribute(), GNEChargingStation::getAttribute(), GNEParkingArea::getAttribute(), GNETAZSink::getAttribute(), GNETAZSource::getAttribute(), GNERouteProbe::getAttribute(), GNEClosingReroute::getAttribute(), GNERouteProbReroute::getAttribute(), GNEDestProbReroute::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNERerouterInterval::getAttribute(), GNECalibratorFlow::getAttribute(), GNEAccess::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorEntry::getAttribute(), GNEDetectorExit::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNECalibrator::getAttribute(), GNEConnection::getAttribute(), GNEJunction::getAttribute(), GNEViewNet::getAttributeCarriersInBoundary(), GNELane::getColorValue(), GNEClosingReroute::getHierarchyName(), GNEDestProbReroute::getHierarchyName(), GNEClosingLaneReroute::getHierarchyName(), GNEParkingAreaReroute::getHierarchyName(), GNEAccess::getHierarchyName(), GNETAZSink::getParentName(), GNETAZSource::getParentName(), GNEClosingReroute::getParentName(), GNERouteProbReroute::getParentName(), GNEDestProbReroute::getParentName(), GNEClosingLaneReroute::getParentName(), GNEParkingAreaReroute::getParentName(), GNEVariableSpeedSignStep::getParentName(), GNERerouterInterval::getParentName(), GNECalibratorFlow::getParentName(), GNEAccess::getParentName(), GNEDetectorE3::getPopUpID(), GNECalibratorRoute::getPopUpID(), GNEVariableSpeedSign::getPopUpID(), GNERerouter::getPopUpID(), GNECalibratorVehicleType::getPopUpID(), GNEStoppingPlace::getPopUpID(), GNECalibrator::getPopUpID(), GNETAZ::getPopUpID(), GNEDetector::getPopUpID(), GNEShape::getPopUpID(), GNENetElement::getPopUpID(), GNEAdditionalHandler::getPosition(), GNENet::GNENet(), GNENet::insertAdditional(), GNENet::insertShape(), GNEAdditional::isRouteValid(), GNEAccess::isValid(), GNENet::joinSelectedJunctions(), GNECrossingFrame::CrossingParameters::markEdge(), GNENet::mergeJunctions(), GNERerouterDialog::onCmdAccept(), GNECalibratorRouteDialog::onCmdSetVariable(), GNEViewNet::onCmdTransformPOI(), GNEAdditionalHandler::parseAndBuildAccess(), GNEPolygonFrame::processClick(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_TLS::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNENetElement::removeAdditionalChild(), GNEAdditional::removeAdditionalChild(), GNENetElement::removeAdditionalParent(), GNEDeleteFrame::removeAttributeCarrier(), removeConnection(), GNEAdditional::removeEdgeChild(), GNEJunction::removeEdgeFromCrossings(), removeEdgeOfAdditionalParents(), GNEJunction::removeIncomingGNEEdge(), removeLane(), GNEAdditional::removeLaneChild(), GNELane::removeLaneOfAdditionalParents(), GNEJunction::removeOutgoingGNEEdge(), GNENet::removeShape(), GNELane::removeShapeChild(), GNENet::renameJunction(), GNENet::replaceIncomingEdge(), GNENet::retrieveEdge(), retrieveGNEConnection(), GNEJunction::retrieveGNECrossing(), GNENet::reverseEdge(), setAttribute(), GNETAZFrame::TAZCurrent::setTAZ(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), smooth(), smoothElevation(), smoothShape(), GNENet::splitEdge(), GNENet::splitJunction(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), GNEChange_Additional::undo(), GNEChange_Connection::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), GNENet::updateAdditionalID(), GNECalibratorRouteDialog::updateCalibratorRouteValues(), GNEAdditional::writeAdditional(), GNEPOI::writeShape(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_Shape::~GNEChange_Shape(), GNEChange_TLS::~GNEChange_TLS(), and GNEJunction::~GNEJunction().
std::set< GUIGlID > GNEEdge::getLaneGlIDs | ( | ) |
const std::vector< GNELane * > & GNEEdge::getLanes | ( | ) |
returns a reference to the lane vector
Definition at line 873 of file GNEEdge.cpp.
References myLanes.
Referenced by GNEAdditionalHandler::accessCanBeCreated(), GNENet::addRestrictedLane(), GNENet::deleteEdge(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNECalibrator::getParentName(), GNEAdditional::getPopUpMenu(), GNEVaporizer::getPositionInView(), GNERouteProbe::getPositionInView(), GNECalibrator::getPositionInView(), GNETLSEditorFrame::handleMultiChange(), GNEConnectorFrame::initTargets(), GNECalibrator::isValid(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEDeleteFrame::removeAttributeCarrier(), GNENet::removeRestrictedLane(), GNENet::renameEdge(), GNEJunction::replaceIncomingConnections(), GNENet::replaceIncomingEdge(), GNENet::restrictLane(), retrieveGNEConnection(), GNENet::retrieveLane(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNENet::splitEdge(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), and GNECalibrator::updateGeometry().
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 143 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEConnection::getAttribute(), GNELane::getAttribute(), GNEJunction::getAttribute(), getAttribute(), GNEDialogACChooser::getObjectName(), GUIDialog_GLObjChooser::getObjectName(), GNEVaporizer::getParentName(), GNERouteProbe::getParentName(), GNEDetectorE3::getParentName(), GNECalibratorRoute::getParentName(), GNEParkingSpace::getParentName(), GNEVariableSpeedSign::getParentName(), GNECalibratorVehicleType::getParentName(), GNERerouter::getParentName(), GNELane::getParentName(), GNEStoppingPlace::getParentName(), GNECalibrator::getParentName(), GNETAZ::getParentName(), GNEDetector::getParentName(), GNEPoly::getParentName(), GNEPOI::getParentName(), GNETLSEditorFrame::handleMultiChange(), isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEInspectorFrame::TemplateEditor::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), SUMORTree::removeAdditionalGLObject(), removeConnection(), setAttribute(), GNENet::splitEdge(), GNEProhibitionFrame::updateDescription(), and GNEConnection::updateID().
NBEdge * GNEEdge::getNBEdge | ( | ) |
returns the internal NBEdge
Definition at line 613 of file GNEEdge.cpp.
References myNBEdge.
Referenced by GNENet::addReversedEdge(), GNEConnectorFrame::buildConnection(), GNEProhibitionFrame::buildProhibition(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNENet::changeEdgeEndpoints(), GNECrossing::checkEdgeBelong(), GNENet::createEdge(), GNENet::deleteLane(), GNENet::deleteSingleEdge(), GNELane::drawArrows(), GNELane::drawAsRailway(), GNELane::drawAsWaterway(), GNELane::drawDirectionIndicators(), GNELane::drawGL(), GNELane::drawLane2LaneConnections(), GNEViewNet::drawLaneCandidates(), GNELane::drawLinkNo(), GNELane::drawMarkings(), GNELane::drawTLSLinkNo(), GNENet::duplicateLane(), GNEDetectorE1Instant::fixAdditionalProblem(), GNEDetectorEntry::fixAdditionalProblem(), GNEDetectorExit::fixAdditionalProblem(), GNEDetectorE1::fixAdditionalProblem(), GNEDetectorE1Instant::getAdditionalProblem(), GNEDetectorEntry::getAdditionalProblem(), GNEDetectorExit::getAdditionalProblem(), GNEStoppingPlace::getAdditionalProblem(), GNEDetectorE1::getAdditionalProblem(), GNELane::getAttribute(), GNELane::getBoundary(), GNELane::getColorValue(), GNELane::getGenericParameters(), GNELane::getGenericParametersStr(), GNELane::getLaneParametricLength(), GNEApplicationWindow::GNEShapeHandler::getLanePos(), GNEConnectorFrame::getLaneStatus(), GNELane::getLengthGeometryFactor(), GNEConnection::getNBEdgeConnection(), GNELane::getPopUpMenu(), GNELane::getShape(), GNELane::getSpeed(), GNEConnectorFrame::initTargets(), GNENet::insertEdge(), GNEAccess::isAccessPositionFixed(), GNEDetectorE1Instant::isAdditionalValid(), GNEDetectorExit::isAdditionalValid(), GNEStoppingPlace::isAdditionalValid(), GNEDetectorE1::isAdditionalValid(), GNEDetectorEntry::isAdditionalValid(), GNELane::isRestricted(), GNEConnection::isValid(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEViewNet::onLeftBtnPress(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEChange_Connection::redo(), GNEJunction::removeConnectionsFrom(), GNEJunction::removeConnectionsTo(), GNEJunction::removeEdgeFromCrossings(), GNENet::renameEdge(), GNEJunction::replaceIncomingConnections(), GNENet::replaceIncomingEdge(), GNENet::replaceJunctionByGeometry(), GNENet::restrictLane(), GNENet::reverseEdge(), GNEConnection::setAttribute(), GNELane::setAttribute(), GNELane::setGenericParametersStr(), GNELane::setIndex(), setMicrosimID(), GNEStoppingPlace::setStoppingPlaceGeometry(), GNENet::splitEdge(), GNEChange_Connection::undo(), GNEConnection::updateGeometry(), GNEBusStop::updateGeometry(), GNEContainerStop::updateGeometry(), GNEParkingArea::updateGeometry(), GNEAccess::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntry::updateGeometry(), GNEDetectorExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), and GNEConnection::updateLinkState().
|
inherited |
get Net in which this element is placed
Definition at line 50 of file GNENetElement.cpp.
References GNENetElement::myNet.
Referenced by GNEConnection::setAttribute().
GNEEdge * GNEEdge::getOppositeEdge | ( | ) | const |
get opposite edge
Definition at line 470 of file GNEEdge.cpp.
References myGNEJunctionDestiny, myGNEJunctionSource, GNENetElement::myNet, and GNENet::retrieveEdge().
Referenced by GNEViewNet::onCmdSplitEdgeBidi().
|
virtualinherited |
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 122 of file GNENetElement.cpp.
References GUIParameterTableWindow::closeBuilding(), GNENetElement::getAttribute(), GNEAttributeCarrier::TagProperties::getNumberOfAttributes(), GUIParameterTableWindow::mkItem(), GNEAttributeCarrier::myTagProperty, and toString().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNEPOI, GNEPoly, GNEDetector, GNETAZ, GNECalibrator, GNEStoppingPlace, GUILane, GNELane, GNECalibratorVehicleType, GNERerouter, GNEAccess, GNEVariableSpeedSign, GNECalibratorFlow, GNERerouterInterval, GNEVariableSpeedSignStep, GNECalibratorRoute, GNEParkingAreaReroute, GNEParkingSpace, GNEClosingLaneReroute, GNEDestProbReroute, GNEDetectorE3, GNERouteProbReroute, GNEClosingReroute, GNERouteProbe, GNETAZSink, GNETAZSource, and GNEVaporizer.
Definition at line 123 of file GUIGlObject.cpp.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
|
virtualinherited |
get PopPup ID (Used in AC Hierarchy)
Implements GNEAttributeCarrier.
Definition at line 178 of file GNENetElement.cpp.
References GNENetElement::getAttribute(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::myTagProperty, SUMO_ATTR_FROM, SUMO_ATTR_FROM_LANE, SUMO_ATTR_TO, SUMO_ATTR_TO_LANE, and SUMO_TAG_CONNECTION.
|
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 GNENetElement.
Definition at line 443 of file GNEEdge.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GNEViewNet::buildSelectionACPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GNENet::getViewNet(), and GNENetElement::myNet.
int GNEEdge::getRouteProbeRelativePosition | ( | GNERouteProbe * | routeProbe | ) | const |
obtain relative positions of RouteProbes
Definition at line 771 of file GNEEdge.cpp.
References GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and GNENetElement::myAdditionalChilds.
Referenced by GNERouteProbe::updateGeometry().
Definition at line 619 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 GNEViewNet::onCmdSplitEdgeBidi().
|
staticinherited |
get Tag Properties
Definition at line 1038 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::dummyTagProperty, GNEAttributeCarrier::fillAttributeCarriers(), GNEAttributeCarrier::myTagProperties, SUMO_TAG_NOTHING, and toString().
Referenced by GNECrossingFrame::CrossingParameters::enableCrossingParameters(), GNESelectorFrame::getMatches(), GNECrossingFrame::CrossingParameters::onCmdHelp(), GNETAZFrame::TAZParameters::onCmdHelp(), GNEFrame::ItemSelector::onCmdSelectItem(), GNESelectorFrame::MatchAttribute::onCmdSelMBAttribute(), GNESelectorFrame::MatchAttribute::onCmdSelMBString(), GNESelectorFrame::MatchAttribute::onCmdSelMBTag(), GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute(), GNEAttributeCarrier::parseAttributeFromXML(), GNENet::retrieveAttributeCarriers(), GNENet::saveAdditionalsConfirmed(), GNEFrame::ItemSelector::setCurrentTypeTag(), GNETAZFrame::TAZCurrent::setTAZ(), GNEInspectorFrame::AttributesEditor::AttributeInput::showAttribute(), and GNEInspectorFrame::AttributesEditor::showAttributeEditorModul().
|
inherited |
get Tag Property assigned to this object
Definition at line 1013 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::myTagProperty.
Referenced by GNEAdditionalHandler::accessCanBeCreated(), GNENet::additionalExist(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEAdditionalFrame::buildAdditionalWithParent(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeSecondAdditionalParent(), GNENet::changeShapeID(), GNEAdditionalHandler::checkOverlappingRerouterIntervals(), GNENet::computeEverything(), GNENet::deleteAdditional(), GNEAdditional::BlockIcon::draw(), GNEViewNet::getAttributeCarriersInBoundary(), getRouteProbeRelativePosition(), GNEAdditional::GNEAdditional(), GNEAdditionalHandler::GNEAdditionalHandler(), GNENet::GNENet(), GNEViewNet::hotkeyEnter(), GNENet::insertAdditional(), GNENet::insertShape(), GNEInspectorFrame::inspectSingleElement(), GNEInspectorFrame::OverlappedInspection::onCmdNextElement(), GNEViewNet::onCmdOpenAdditionalDialog(), GNEInspectorFrame::OverlappedInspection::onCmdPreviousElement(), GNEViewNet::onCmdTransformPOI(), GNEViewNet::onLeftBtnPress(), GNEAdditionalHandler::parseGenericParameter(), GNEInspectorFrame::processClick(), GNEDeleteFrame::removeAttributeCarrier(), GNENet::removeShape(), GNENet::replaceInListAttribute(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), GNENet::retrieveShapes(), GNEFrame::ACHierarchy::showAttributeCarrierChilds(), GNEFrame::ACHierarchy::showAttributeCarrierParents(), GNENet::updateAdditionalID(), and GNEChange_Attribute::~GNEChange_Attribute().
|
inherited |
get tag assigned to this object in string format
Definition at line 1007 of file GNEAttributeCarrier.cpp.
References GNEAttributeCarrier::TagProperties::getTagStr(), and GNEAttributeCarrier::myTagProperty.
Referenced by GNENetElement::addAdditionalChild(), GNEAdditional::addAdditionalChild(), GNENetElement::addAdditionalParent(), GNEAdditional::addEdgeChild(), GNEJunction::addIncomingGNEEdge(), GNEAdditional::addLaneChild(), GNEJunction::addOutgoingGNEEdge(), GNENet::addPOI(), GNELane::addShapeChild(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::builDestProbReroute(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNEAdditionalHandler::buildVehicleType(), GNEAdditionalHandler::builParkingAreaReroute(), GNEAdditional::changeAdditionalID(), GNEAdditional::changeEdge(), GNEAdditional::changeFirstAdditionalParent(), GNEAdditional::changeLane(), GNEAdditional::changeSecondAdditionalParent(), GNEAdditional::checkAdditionalChildRestriction(), GNETAZ::commitGeometryMoving(), GNEDetectorE3::commitGeometryMoving(), GNEParkingSpace::commitGeometryMoving(), GNEVariableSpeedSign::commitGeometryMoving(), GNEAccess::commitGeometryMoving(), GNERerouter::commitGeometryMoving(), GNEDetectorEntry::commitGeometryMoving(), GNEDetectorExit::commitGeometryMoving(), GNEDetectorE1::commitGeometryMoving(), GNEDetectorE1Instant::commitGeometryMoving(), GNEStoppingPlace::commitGeometryMoving(), GNEPOI::commitGeometryMoving(), GNEDetectorE2::commitGeometryMoving(), GNEJunction::commitGeometryMoving(), GNETAZ::commitShapeChange(), GNEPoly::commitShapeChange(), commitShapeChange(), commitShapeEndChange(), commitShapeStartChange(), GNENet::deleteAdditional(), GNENet::deleteShape(), GNEAdditional::fixAdditionalProblem(), GNEBusStop::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), GNEParkingArea::getAttribute(), GNEVaporizer::getAttribute(), GNETAZSink::getAttribute(), GNETAZSource::getAttribute(), GNERouteProbe::getAttribute(), GNEClosingReroute::getAttribute(), GNEDetectorE3::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNERouteProbReroute::getAttribute(), GNEDestProbReroute::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNECalibratorRoute::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNECalibratorFlow::getAttribute(), GNERerouterInterval::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNECrossing::getAttribute(), GNEAccess::getAttribute(), GNERerouter::getAttribute(), GNECalibratorVehicleType::getAttribute(), GNEDetectorEntry::getAttribute(), GNEDetectorExit::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNECalibrator::getAttribute(), GNETAZ::getAttribute(), GNEConnection::getAttribute(), GNEDetectorE2::getAttribute(), GNEPoly::getAttribute(), GNELane::getAttribute(), GNEJunction::getAttribute(), GNEPOI::getAttribute(), getAttribute(), GNEVaporizer::getHierarchyName(), GNERouteProbe::getHierarchyName(), GNETAZSink::getHierarchyName(), GNETAZSource::getHierarchyName(), GNEClosingReroute::getHierarchyName(), GNEDetectorE3::getHierarchyName(), GNEClosingLaneReroute::getHierarchyName(), GNERouteProbReroute::getHierarchyName(), GNEDestProbReroute::getHierarchyName(), GNEParkingAreaReroute::getHierarchyName(), GNEParkingSpace::getHierarchyName(), GNECalibratorRoute::getHierarchyName(), GNEVariableSpeedSignStep::getHierarchyName(), GNERerouterInterval::getHierarchyName(), GNECalibratorFlow::getHierarchyName(), GNEVariableSpeedSign::getHierarchyName(), GNERerouter::getHierarchyName(), GNEAccess::getHierarchyName(), GNECalibratorVehicleType::getHierarchyName(), GNEStoppingPlace::getHierarchyName(), GNECalibrator::getHierarchyName(), GNETAZ::getHierarchyName(), GNENetElement::getHierarchyName(), GNEShape::getHierarchyName(), GNEDetector::getHierarchyName(), GNEVaporizer::getPopUpID(), GNETAZSource::getPopUpID(), GNERouteProbe::getPopUpID(), GNETAZSink::getPopUpID(), GNEClosingReroute::getPopUpID(), GNEDestProbReroute::getPopUpID(), GNEDetectorE3::getPopUpID(), GNEClosingLaneReroute::getPopUpID(), GNERouteProbReroute::getPopUpID(), GNEParkingAreaReroute::getPopUpID(), GNEParkingSpace::getPopUpID(), GNECalibratorRoute::getPopUpID(), GNEVariableSpeedSignStep::getPopUpID(), GNERerouterInterval::getPopUpID(), GNECalibratorFlow::getPopUpID(), GNEVariableSpeedSign::getPopUpID(), GNEAccess::getPopUpID(), GNERerouter::getPopUpID(), GNECalibratorVehicleType::getPopUpID(), GNEStoppingPlace::getPopUpID(), GNECalibrator::getPopUpID(), GNETAZ::getPopUpID(), GNEShape::getPopUpID(), GNENetElement::getPopUpID(), GNEDetector::getPopUpID(), GNEAdditional::getPopUpMenu(), GNEViewNet::hotkeyEnter(), GNENet::insertAdditional(), GNEAdditional::isRouteValid(), GNEBusStop::isValid(), GNEContainerStop::isValid(), GNEChargingStation::isValid(), GNEParkingArea::isValid(), GNEVaporizer::isValid(), GNETAZSink::isValid(), GNETAZSource::isValid(), GNERouteProbe::isValid(), GNEClosingReroute::isValid(), GNEDetectorE3::isValid(), GNERouteProbReroute::isValid(), GNEDestProbReroute::isValid(), GNEClosingLaneReroute::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNECalibratorRoute::isValid(), GNEVariableSpeedSignStep::isValid(), GNERerouterInterval::isValid(), GNECalibratorFlow::isValid(), GNEVariableSpeedSign::isValid(), GNECrossing::isValid(), GNEAccess::isValid(), GNERerouter::isValid(), GNECalibratorVehicleType::isValid(), GNEDetectorEntry::isValid(), GNEDetectorExit::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNETAZ::isValid(), GNEConnection::isValid(), GNEDetectorE2::isValid(), GNEPoly::isValid(), GNELane::isValid(), GNEJunction::isValid(), GNEPOI::isValid(), isValid(), GNECalibratorVehicleTypeDialog::onCmdAccept(), GNECalibratorRouteDialog::onCmdAccept(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), GNEAdditional::openAdditionalDialog(), GNEAdditionalHandler::parseGenericParameter(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Additional::redo(), GNEChange_TLS::redo(), GNEChange_Edge::redo(), GNEChange_Lane::redo(), GNEChange_Crossing::redo(), GNEChange_Attribute::redo(), GNEChange_Shape::redoName(), GNEChange_Additional::redoName(), GNEChange_Attribute::redoName(), GNEAdditionalFrame::removeAdditional(), GNENetElement::removeAdditionalChild(), GNEAdditional::removeAdditionalChild(), GNENetElement::removeAdditionalParent(), GNEDeleteFrame::removeAttributeCarrier(), removeConnection(), GNEAdditional::removeEdgeChild(), GNEJunction::removeIncomingGNEEdge(), removeLane(), GNEAdditional::removeLaneChild(), GNEJunction::removeOutgoingGNEEdge(), GNELane::removeShapeChild(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveAdditionalParent(), retrieveGNEConnection(), GNEJunction::retrieveGNECrossing(), GNEBusStop::setAttribute(), GNEChargingStation::setAttribute(), GNEContainerStop::setAttribute(), GNEParkingArea::setAttribute(), GNEVaporizer::setAttribute(), GNETAZSink::setAttribute(), GNETAZSource::setAttribute(), GNERouteProbe::setAttribute(), GNEClosingReroute::setAttribute(), GNERouteProbReroute::setAttribute(), GNEDetectorE3::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNECalibratorRoute::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNERerouterInterval::setAttribute(), GNECalibratorFlow::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNECrossing::setAttribute(), GNEAccess::setAttribute(), GNERerouter::setAttribute(), GNECalibratorVehicleType::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorEntry::setAttribute(), GNEDetectorExit::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNECalibrator::setAttribute(), GNETAZ::setAttribute(), GNEConnection::setAttribute(), GNEDetectorE2::setAttribute(), GNEPoly::setAttribute(), GNELane::setAttribute(), GNEPOI::setAttribute(), GNEJunction::setAttribute(), setAttribute(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_Additional::undo(), GNEChange_TLS::undo(), GNEChange_Edge::undo(), GNEChange_Lane::undo(), GNEChange_Crossing::undo(), GNEChange_Attribute::undo(), GNEChange_Shape::undoName(), GNEChange_Additional::undoName(), GNEChange_Attribute::undoName(), GNENet::updateAdditionalID(), GNEAdditional::writeAdditional(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_Shape::~GNEChange_Shape(), and GNEChange_TLS::~GNEChange_TLS().
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 156 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GNEAdditional::BlockIcon::draw(), GNEAdditional::ChildConnections::draw(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE3::drawGL(), GNEParkingSpace::drawGL(), GNEJunction::drawGL(), GNEVariableSpeedSign::drawGL(), GNECrossing::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEDetectorE1Instant::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GNECalibrator::drawGL(), GUIJunctionWrapper::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEDetectorE2::drawGL(), GUIParkingArea::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GNEJunction::getAttribute(), GNEViewNet::getAttributeCarriersInBoundary(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUIGlChildWindow::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), 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(), GNEShape::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNENetElement::unselectAttributeCarrier(), and GNEShape::unselectAttributeCarrier().
|
virtualinherited |
Returns an own type parameter window (optional)
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Reimplemented in GUIVehicle, GUIBaseVehicle, GUIMEVehicle, GUIPerson, and GUIContainer.
Definition at line 135 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
int GNEEdge::getVertexIndex | ( | Position | pos, |
bool | createIfNoExist, | ||
bool | snapToGrid | ||
) |
return index of a vertex of shape, or of a new vertex if position is over an shape's edge
pos | position of new/existent vertex |
createIfNoExist | enable or disable creation of new verte if there isn't another vertex in position |
snapToGrid | enable or disable snapToActiveGrid |
Definition at line 271 of file GNEEdge.cpp.
References NBEdge::getGeometry(), GNENet::getViewNet(), PositionVector::insertAtClosest(), GeomHelper::INVALID_OFFSET, myNBEdge, GNENetElement::myNet, PositionVector::nearest_offset_to_point2D(), PositionVector::positionAtOffset2D(), setGeometry(), SNAP_RADIUS, and GUISUMOAbstractView::snapToActiveGrid().
Referenced by GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), editEndpoint(), getVertexIndex(), GNEViewNet::onLeftBtnPress(), and GNEDeleteFrame::removeAttributeCarrier().
int GNEEdge::getVertexIndex | ( | const double | offset, |
bool | createIfNoExist, | ||
bool | snapToGrid | ||
) |
return index of a vertex of shape, or of a new vertex if position is over an shape's edge
offset | position over edge |
createIfNoExist | enable or disable creation of new verte if there isn't another vertex in position |
snapToGrid | enable or disable snapToActiveGrid |
Definition at line 309 of file GNEEdge.cpp.
References NBEdge::getGeometry(), getVertexIndex(), myNBEdge, and PositionVector::positionAtOffset2D().
bool GNEEdge::hasRestrictedLane | ( | SUMOVehicleClass | vclass | ) | const |
check if edge has a restricted lane
Definition at line 1584 of file GNEEdge.cpp.
References myLanes.
Referenced by GNELane::getPopUpMenu().
|
inlineinherited |
Increarse reference.
Definition at line 68 of file GNEReferenceCounter.h.
References GNEReferenceCounter::getID(), GNEReferenceCounter::myCount, toString(), and UNUSED_PARAMETER.
Referenced by addLane(), GNENet::addPOI(), GNENet::addPolygon(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildCalibratorRoute(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::builDestProbReroute(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNEAdditionalHandler::buildVehicleType(), GNEAdditionalHandler::builParkingAreaReroute(), GNENet::computeEverything(), GNEChange_Attribute::GNEChange_Attribute(), GNENet::GNENet(), GNEJunction::rebuildGNECrossings(), GNENet::registerEdge(), GNENet::registerJunction(), remakeGNEConnections(), and GNEInspectorFrame::TemplateEditor::setEdgeTemplate().
|
virtualinherited |
check if attribute carrier is selected
Implements GNEAttributeCarrier.
Definition at line 172 of file GNENetElement.cpp.
References GNEAttributeCarrier::mySelected.
Referenced by addLane(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNENet::deleteConnection(), GNENet::deleteCrossing(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNEJunction::drawGL(), GNECrossing::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), drawGL(), GNECrossing::getAttribute(), GNEConnection::getAttribute(), GNELane::getAttribute(), GNEJunction::getAttribute(), getAttribute(), GNELane::getColorValue(), GNEJunction::getColorValue(), GNELane::getPopUpMenu(), GNETLSEditorFrame::handleMultiChange(), GNEJunction::mouseOverObject(), GNEViewNet::onCmdAddReversedEdge(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdDuplicateLane(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetJunctionShape(), GNEViewNet::onCmdResetLaneCustomShape(), GNEViewNet::onCmdReverseEdge(), GNEViewNet::onCmdSmoothEdges(), GNEViewNet::onCmdSmoothEdgesElevation(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onCmdStraightenEdgesElevation(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), GNENet::registerEdge(), GNENet::registerJunction(), removeConnection(), removeLane(), GNEJunction::setColor(), and GNELane::setLaneColor().
|
staticinherited |
check if given string can be parsed to a map/list of generic parameters
Definition at line 1135 of file GNEAttributeCarrier.cpp.
References StringTokenizer::hasNext(), SUMOXMLDefinitions::isValidGenericParameterKey(), SUMOXMLDefinitions::isValidGenericParameterValue(), and StringTokenizer::next().
Referenced by GNEBusStop::isValid(), GNEContainerStop::isValid(), GNEChargingStation::isValid(), GNEParkingArea::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNETAZSource::isValid(), GNETAZSink::isValid(), GNEClosingReroute::isValid(), GNERouteProbReroute::isValid(), GNEClosingLaneReroute::isValid(), GNEDetectorE3::isValid(), GNEDestProbReroute::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNECalibratorRoute::isValid(), GNEVariableSpeedSignStep::isValid(), GNERerouterInterval::isValid(), GNECalibratorFlow::isValid(), GNEVariableSpeedSign::isValid(), GNECrossing::isValid(), GNEAccess::isValid(), GNERerouter::isValid(), GNECalibratorVehicleType::isValid(), GNEDetectorExit::isValid(), GNEDetectorEntry::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNETAZ::isValid(), GNEConnection::isValid(), GNEDetectorE2::isValid(), GNEPoly::isValid(), GNELane::isValid(), GNEJunction::isValid(), GNEPOI::isValid(), isValid(), and GNEFrame::GenericParametersEditor::onCmdSetGenericParameter().
|
virtual |
Implements GNENetElement.
Definition at line 1071 of file GNEEdge.cpp.
References canParseVehicleClasses(), NBEdge::getGeometry(), GUIGlObject::getMicrosimID(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_BIDIR, GNE_ATTR_GENERIC, GNE_ATTR_SELECTED, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, StringBijection< T >::hasString(), GNEAttributeCarrier::isGenericParametersValid(), SUMOXMLDefinitions::isValidNetID(), SUMOXMLDefinitions::LaneSpreadFunctions, myGNEJunctionDestiny, myGNEJunctionSource, myNBEdge, GNENetElement::myNet, 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.
|
staticinherited |
check if lanes are consecutives
Definition at line 964 of file GNEAttributeCarrier.cpp.
Referenced by GNEAttributeCarrier::canParse(), GNEDetectorE2::isValid(), and GNEAdditionalHandler::parseAndBuildDetectorE2().
|
privatevirtual |
method for check if mouse is over objects
Implements GNENetElement.
Definition at line 1335 of file GNEEdge.cpp.
void GNEEdge::moveEntireShape | ( | const PositionVector & | oldShape, |
const Position & | offset | ||
) |
move entire shape without commiting change
[in] | oldShape | the old shape of polygon before moving |
[in] | offset | the offset of movement |
Definition at line 340 of file GNEEdge.cpp.
References PositionVector::add(), and setGeometry().
move position of shape end without commiting change
Definition at line 182 of file GNEEdge.cpp.
References Position::add(), NBEdge::getGeometry(), GNENet::getViewNet(), myNBEdge, GNENetElement::myNet, setShapeEndPos(), GUISUMOAbstractView::snapToActiveGrid(), and updateGeometry().
Referenced by GNEViewNet::onMouseMove().
move position of shape start without commiting change
Definition at line 166 of file GNEEdge.cpp.
References Position::add(), NBEdge::getGeometry(), GNENet::getViewNet(), myNBEdge, GNENetElement::myNet, setShapeStartPos(), GUISUMOAbstractView::snapToActiveGrid(), and updateGeometry().
Referenced by GNEViewNet::onMouseMove().
change position of a vertex of shape without commiting change
[in] | index | index of Vertex shape |
[in] | newPos | The new position of vertex |
Definition at line 315 of file GNEEdge.cpp.
References PositionVector::add(), NBEdge::getInnerGeometry(), GNENet::getViewNet(), myNBEdge, GNENetElement::myNet, setGeometry(), and GUISUMOAbstractView::snapToActiveGrid().
Referenced by GNEViewNet::onMouseMove().
|
staticinherited |
parses a value of type T from string (used for basic types: int, double, bool, etc.)
Referenced by GNEAttributeCarrier::canParse(), GNECalibratorRoute::isValid(), and GNEDetectorE2::isValid().
|
staticinherited |
parses a complex value of type T from string (use for list of edges, list of lanes, etc.)
|
inherited |
Definition at line 781 of file GNEAttributeCarrier.cpp.
References StringUtils::toInt().
|
inherited |
Definition at line 787 of file GNEAttributeCarrier.cpp.
References StringUtils::toDouble().
|
inherited |
Definition at line 793 of file GNEAttributeCarrier.cpp.
References StringUtils::toBool().
|
inherited |
Definition at line 799 of file GNEAttributeCarrier.cpp.
|
inherited |
Definition at line 805 of file GNEAttributeCarrier.cpp.
References SumoVehicleClassStrings, and SVC_IGNORING.
|
inherited |
Definition at line 817 of file GNEAttributeCarrier.cpp.
References RGBColor::parseColor().
|
inherited |
Definition at line 823 of file GNEAttributeCarrier.cpp.
References GeomConvHelper::parseShapeReporting().
|
inherited |
Definition at line 839 of file GNEAttributeCarrier.cpp.
References GeomConvHelper::parseShapeReporting().
|
inherited |
Definition at line 857 of file GNEAttributeCarrier.cpp.
References SumoVehicleShapeStrings, and SVS_UNKNOWN.
|
inherited |
Definition at line 867 of file GNEAttributeCarrier.cpp.
References StringTokenizer::getVector().
|
inherited |
Definition at line 873 of file GNEAttributeCarrier.cpp.
|
inherited |
Definition at line 884 of file GNEAttributeCarrier.cpp.
|
inherited |
Definition at line 895 of file GNEAttributeCarrier.cpp.
|
inherited |
Definition at line 906 of file GNEAttributeCarrier.cpp.
References GNENet::retrieveEdge(), SUMO_ATTR_EDGES, SUMO_TAG_EDGE, and toString().
|
inherited |
Definition at line 924 of file GNEAttributeCarrier.cpp.
References GNENet::retrieveLane(), SUMO_ATTR_LANES, SUMO_TAG_LANE, and toString().
|
inlinestaticinherited |
Parse attribute from XML and show warnings if there are problems parsing it.
Definition at line 591 of file GNEAttributeCarrier.h.
References canParseVehicleClasses(), SUMOSAXAttributes::get(), GNEAttributeCarrier::getCircleResolution(), GNEAttributeCarrier::getTagProperties(), SUMOSAXAttributes::hasAttribute(), SUMOXMLDefinitions::isValidAttribute(), SUMOXMLDefinitions::isValidDetectorID(), SUMOXMLDefinitions::isValidFilename(), SUMOXMLDefinitions::isValidListOfTypeID(), SUMOXMLDefinitions::isValidNetID(), GNEAttributeCarrier::mouseOverObject(), GNEAttributeCarrier::setAttribute(), SUMO_ATTR_EDGES, SUMO_ATTR_GUISHAPE, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_NAME, SUMO_ATTR_POSITION, SUMO_ATTR_ROUTEPROBE, SUMO_ATTR_VCLASS, SUMO_ATTR_VTYPES, SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, toString(), and WRITE_WARNING.
|
staticinherited |
parses a list of specific Attribute Carriers into a string of IDs
Referenced by GNEAttributeCarrier::canParse(), GNECalibratorRoute::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNERerouter::getAttribute(), and GNEDetectorE2::getAttribute().
|
inherited |
Definition at line 942 of file GNEAttributeCarrier.cpp.
References joinToString().
|
inherited |
Definition at line 953 of file GNEAttributeCarrier.cpp.
References joinToString().
void GNEEdge::remakeGNEConnections | ( | ) |
remake connections
Definition at line 709 of file GNEEdge.cpp.
References NBEdge::getConnections(), GNEReferenceCounter::incRef(), GNEConnection::markConnectionGeometryDeprecated(), myGNEConnections, myNBEdge, GNENetElement::myNet, GNENet::removeGLObjectFromGrid(), retrieveGNEConnection(), GNEConnection::updateLinkState(), and WRITE_DEBUG.
Referenced by addLane(), and removeLane().
|
inherited |
remove additional child from this edge
Definition at line 96 of file GNENetElement.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENetElement::myAdditionalChilds, and GNENetElement::updateGeometry().
Referenced by GNEAdditional::changeEdge(), and GNEAdditional::changeLane().
|
inherited |
remove additional child from this edge
Definition at line 69 of file GNENetElement.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNENetElement::myFirstAdditionalParents, and GNENetElement::updateGeometry().
|
private |
removes a connection
Definition at line 1499 of file GNEEdge.cpp.
References GNEReferenceCounter::decRef(), NBEdge::Connection::fromLane, GNENetElement::getAdditionalChilds(), GNEAttributeCarrier::getID(), GNEConnection::getLaneFrom(), GNEConnection::getLaneTo(), GUIGlObject::getMicrosimID(), GNEAttributeCarrier::getTagStr(), NBEdge::getTurnDestination(), GNENetElement::isAttributeCarrierSelected(), myGNEConnections, myNBEdge, GNENetElement::myNet, GNENet::removeExplicitTurnaround(), NBEdge::removeFromConnections(), GNENet::removeGLObjectFromGrid(), retrieveGNEConnection(), SUMO_TAG_E2DETECTOR_MULTILANE, NBEdge::Connection::toEdge, NBEdge::Connection::toLane, GNEReferenceCounter::unreferenced(), GNENetElement::unselectAttributeCarrier(), updateGeometry(), and WRITE_DEBUG.
Referenced by GNEChange_Connection::redo(), and GNEChange_Connection::undo().
|
private |
remove crossing of junction
Definition at line 1595 of file GNEEdge.cpp.
References GNENet::deleteCrossing(), GNEJunction::getGNECrossings(), and GNENetElement::myNet.
Referenced by setAttribute().
void GNEEdge::removeEdgeOfAdditionalParents | ( | GNEUndoList * | undoList | ) |
remove Edge of Additional Parent
Definition at line 806 of file GNEEdge.cpp.
References GNEAttributeCarrier::getID(), GNENetElement::myFirstAdditionalParents, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, and toString().
Referenced by GNENet::deleteEdge().
|
private |
the number of lanes by one. argument is only used to increase robustness (assertions)
Definition at line 1413 of file GNEEdge.cpp.
References GNENet::addGLObjectIntoGrid(), GNEReferenceCounter::decRef(), NBEdge::deleteLane(), GNEJunction::getGNEEdges(), GNEAttributeCarrier::getID(), GNELane::getIndex(), GNEAttributeCarrier::getTagStr(), GNENetElement::isAttributeCarrierSelected(), myGNEJunctionDestiny, myGNEJunctionSource, myLanes, myNBEdge, GNENetElement::myNet, remakeGNEConnections(), GNENet::removeGLObjectFromGrid(), SUMO_TAG_LANE, toString(), GNEReferenceCounter::unreferenced(), GNENetElement::unselectAttributeCarrier(), updateGeometry(), and WRITE_DEBUG.
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 269 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 677 of file GNEEdge.cpp.
References Position::distanceTo2D(), GNEJunction::getNBNode(), NBNode::getPosition(), GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, GNEJunction::invalidateShape(), myGNEJunctionDestiny, myGNEJunctionSource, setAttribute(), and toString().
Referenced by GNEViewNet::onCmdResetEdgeEndpoint().
GNEConnection * GNEEdge::retrieveGNEConnection | ( | int | fromLane, |
NBEdge * | to, | ||
int | toLane, | ||
bool | createIfNoExist = true |
||
) |
get GNEConnection if exist, and if not create it if create is enabled
Definition at line 1541 of file GNEEdge.cpp.
References GNENet::addGLObjectIntoGrid(), GNENetElement::getAdditionalChilds(), Named::getID(), GNEAttributeCarrier::getID(), GNEConnection::getLaneFrom(), getLanes(), GNEConnection::getLaneTo(), GNEAttributeCarrier::getTagStr(), myGNEConnections, myLanes, GNENetElement::myNet, GNENet::retrieveEdge(), SUMO_TAG_E2DETECTOR_MULTILANE, and WRITE_DEBUG.
Referenced by addConnection(), GNEConnectorFrame::buildConnection(), remakeGNEConnections(), and removeConnection().
|
virtualinherited |
select attribute carrier using GUIGlobalSelection
Implements GNEAttributeCarrier.
Definition at line 141 of file GNENetElement.cpp.
References GNESelectorFrame::LockGLObjectTypes::addedLockedObject(), GUIGlObject::getGlID(), GNESelectorFrame::getLockGLObjectTypes(), GNEViewParent::getSelectorFrame(), GUIGlObject::getType(), GNENet::getViewNet(), GNEViewNet::getViewParent(), gSelected, GNENetElement::myNet, GNEAttributeCarrier::mySelected, and GUISelectedStorage::select().
Referenced by addConnection(), addLane(), GNEViewNet::onLeftBtnRelease(), GNEChange_Crossing::redo(), GNENet::registerEdge(), GNENet::registerJunction(), GNECrossing::setAttribute(), GNEConnection::setAttribute(), GNELane::setAttribute(), GNEJunction::setAttribute(), setAttribute(), and GNEChange_Crossing::undo().
|
virtual |
Implements GNENetElement.
Definition at line 971 of file GNEEdge.cpp.
References getAttribute(), GNEJunction::getNBNode(), OptionsCont::getOptions(), NBNode::getPosition(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_BIDIR, GNE_ATTR_GENERIC, GNE_ATTR_MODIFICATION_STATUS, GNE_ATTR_SELECTED, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, GNEAttributeCarrier::GNEChange_Attribute, GNEJunction::invalidateShape(), myGNEJunctionDestiny, myGNEJunctionSource, myLanes, GNENetElement::myNet, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), removeEdgeFromCrossings(), OptionsCont::resetWritable(), GNENet::retrieveJunction(), OptionsCont::set(), 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, toString(), and GNEJunction::updateGeometry().
Referenced by GNENet::addReversedEdge(), copyTemplate(), deleteGeometryPoint(), editEndpoint(), GNEViewNet::onCmdStraightenEdges(), GNENet::replaceJunctionByGeometry(), resetEndpoint(), GNENet::reverseEdge(), smooth(), smoothElevation(), GNENet::splitEdge(), and straightenElevation().
|
privatevirtual |
set attribute after validation
Implements GNENetElement.
Definition at line 1220 of file GNEEdge.cpp.
References GNEJunction::addIncomingGNEEdge(), GNEJunction::addOutgoingGNEEdge(), GNENet::changeEdgeEndpoints(), clearGNEConnections(), NBEdge::declareConnectionsAsLoaded(), GNEAttributeCarrier::FEATURE_GUESSED, NBEdge::getFromNode(), Named::getID(), GNEAttributeCarrier::getID(), GUIGlObject::getMicrosimID(), GNEJunction::getPositionInView(), GNEAttributeCarrier::getTagStr(), NBEdge::getToNode(), GNE_ATTR_BIDIR, GNE_ATTR_GENERIC, GNE_ATTR_MODIFICATION_STATUS, GNE_ATTR_SELECTED, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, NBEdge::invalidateConnections(), SUMOXMLDefinitions::LaneSpreadFunctions, myConnectionStatus, myGNEJunctionDestiny, myGNEJunctionSource, myNBEdge, GNENetElement::myNet, NBEdge::myPriority, NBEdge::myType, GNEJunction::removeIncomingGNEEdge(), GNEJunction::removeOutgoingGNEEdge(), GNENet::renameEdge(), GNENet::retrieveJunction(), GNENetElement::selectAttributeCarrier(), NBEdge::setEndOffset(), setGenericParametersStr(), setGeometry(), NBEdge::setLaneSpreadFunction(), NBEdge::setLaneWidth(), NBEdge::setLoadedLength(), setShapeEndPos(), setShapeStartPos(), 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, toString(), GNENetElement::unselectAttributeCarrier(), updateGeometry(), and WRITE_DEBUG.
|
virtual |
set generic parameters in string format
Implements GNENetElement.
Definition at line 1186 of file GNEEdge.cpp.
References Parameterised::clearParameter(), StringTokenizer::hasNext(), SUMOXMLDefinitions::isValidGenericParameterKey(), SUMOXMLDefinitions::isValidGenericParameterValue(), myNBEdge, StringTokenizer::next(), and Parameterised::setParameter().
Referenced by setAttribute().
void GNEEdge::setGeometry | ( | PositionVector | geom, |
bool | inner, | ||
bool | updateGrid | ||
) |
update edge geometry and inform the lanes
[in] | geom | The new geometry |
[in] | inner | Whether geom is only the inner points |
Definition at line 691 of file GNEEdge.cpp.
References GNENet::addGLObjectIntoGrid(), GNEJunction::invalidateShape(), myGNEJunctionDestiny, myGNEJunctionSource, myNBEdge, GNENetElement::myNet, GNENet::removeGLObjectFromGrid(), NBEdge::setGeometry(), and updateGeometry().
Referenced by commitShapeChange(), deleteGeometryPoint(), getVertexIndex(), moveEntireShape(), moveVertexShape(), setAttribute(), setShapeEndPos(), setShapeStartPos(), and updateJunctionPosition().
|
virtual |
override to also set lane ids
Reimplemented from GUIGlObject.
Definition at line 1575 of file GNEEdge.cpp.
References getNBEdge(), myLanes, and GUIGlObject::setMicrosimID().
Referenced by GNENet::renameEdge().
|
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 1340 of file GNEEdge.cpp.
References NBEdge::getLaneStruct(), GNEChange_Lane, myGNEJunctionDestiny, myGNEJunctionSource, myLanes, myNBEdge, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEJunction::setLogicValid(), SUMO_TAG_LANE, and toString().
Referenced by setAttribute().
void GNEEdge::setResponsible | ( | bool | newVal | ) |
set responsibility for deleting internal strctures
Definition at line 1211 of file GNEEdge.cpp.
References myAmResponsible.
Referenced by GNENet::deleteSingleEdge(), and GNENet::registerEdge().
|
private |
change Shape EndPos
Definition at line 1742 of file GNEEdge.cpp.
References NBEdge::getGeometry(), myNBEdge, PositionVector::push_back_noDoublePos(), and setGeometry().
Referenced by commitShapeEndChange(), moveShapeEnd(), and setAttribute().
|
private |
change Shape StartPos
Definition at line 1731 of file GNEEdge.cpp.
References NBEdge::getGeometry(), myNBEdge, PositionVector::push_front_noDoublePos(), and setGeometry().
Referenced by commitShapeStartChange(), moveShapeStart(), and setAttribute().
void GNEEdge::smooth | ( | GNEUndoList * | undoList | ) |
make geometry smooth
Definition at line 1689 of file GNEEdge.cpp.
References NBEdge::getGeometry(), GNEAttributeCarrier::getID(), myNBEdge, setAttribute(), smoothShape(), SUMO_ATTR_SHAPE, toString(), and WRITE_WARNING.
Referenced by GNEViewNet::onCmdSmoothEdges().
void GNEEdge::smoothElevation | ( | GNEUndoList * | undoList | ) |
smooth elevation with regard to adjoining edges
Definition at line 1701 of file GNEEdge.cpp.
References NBEdge::getGeometry(), GNEAttributeCarrier::getID(), OptionsCont::getOptions(), PositionVector::length2D(), myNBEdge, PositionVector::positionAtOffset2D(), PositionVector::resample(), setAttribute(), smoothShape(), SUMO_ATTR_SHAPE, toString(), WRITE_WARNING, and Position::z().
Referenced by GNEViewNet::onCmdSmoothEdgesElevation().
PositionVector GNEEdge::smoothShape | ( | const PositionVector & | shape, |
bool | forElevation | ||
) |
return smoothed shape
Definition at line 1616 of file GNEEdge.cpp.
References bezier(), NBNode::bezierControlPoints(), DEBUGCOND, DEG2RAD, PositionVector::EMPTY, NBNode::geometryLike(), OptionsCont::getFloat(), NBEdge::getFromNode(), GNEAttributeCarrier::getID(), NBNode::getIncomingEdges(), OptionsCont::getInt(), OptionsCont::getOptions(), NBNode::getOutgoingEdges(), NBEdge::getToNode(), NBEdge::isTurningDirectionAt(), PositionVector::length2D(), MAX2(), MIN2(), myNBEdge, PositionVector::positionAtOffset2D(), and Position::z().
Referenced by smooth(), and smoothElevation().
void GNEEdge::startGeometryMoving | ( | ) |
Definition at line 224 of file GNEEdge.cpp.
References getCenteringBoundary(), GNENetElement::myAdditionalChilds, GNENetElement::myFirstAdditionalParents, myLanes, and GNENetElement::myMovingGeometryBoundary.
Referenced by GNEViewNet::MoveMultipleElementValues::beginMoveSelection(), and GNEViewNet::MoveSingleElementValues::calculateEdgeValues().
void GNEEdge::straightenElevation | ( | GNEUndoList * | undoList | ) |
interpolate z values linear between junctions
Definition at line 1606 of file GNEEdge.cpp.
References NBEdge::getFromNode(), NBEdge::getGeometry(), NBNode::getPosition(), NBEdge::getToNode(), PositionVector::interpolateZ(), myNBEdge, setAttribute(), SUMO_ATTR_SHAPE, toString(), and Position::z().
Referenced by GNEViewNet::onCmdStraightenEdgesElevation().
|
inlineinherited |
check if object ins't referenced
Definition at line 79 of file GNEReferenceCounter.h.
References GNEReferenceCounter::getID(), and GNEReferenceCounter::myCount.
Referenced by removeConnection(), removeLane(), GNEInspectorFrame::TemplateEditor::setEdgeTemplate(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_Attribute::~GNEChange_Attribute(), GNEChange_Edge::~GNEChange_Edge(), GNEChange_Junction::~GNEChange_Junction(), GNEChange_Lane::~GNEChange_Lane(), GNEChange_Shape::~GNEChange_Shape(), GNEChange_TLS::~GNEChange_TLS(), and GNEInspectorFrame::TemplateEditor::~TemplateEditor().
|
virtualinherited |
unselect attribute carrier using GUIGlobalSelection
Implements GNEAttributeCarrier.
Definition at line 157 of file GNENetElement.cpp.
References GUISelectedStorage::deselect(), GUIGlObject::getGlID(), GNESelectorFrame::getLockGLObjectTypes(), GNEViewParent::getSelectorFrame(), GUIGlObject::getType(), GNENet::getViewNet(), GNEViewNet::getViewParent(), gSelected, GNENetElement::myNet, GNEAttributeCarrier::mySelected, and GNESelectorFrame::LockGLObjectTypes::removeLockedObject().
Referenced by GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GNEViewNet::onLeftBtnRelease(), removeConnection(), removeLane(), GNECrossing::setAttribute(), GNEConnection::setAttribute(), GNELane::setAttribute(), GNEJunction::setAttribute(), and setAttribute().
|
virtual |
update pre-computed geometry information
Implements GNENetElement.
Definition at line 114 of file GNEEdge.cpp.
References GNENet::addGLObjectIntoGrid(), GNENetElement::myAdditionalChilds, GNENetElement::myFirstAdditionalParents, myGNEConnections, myLanes, GNENetElement::myNet, and GNENet::removeGLObjectFromGrid().
Referenced by addConnection(), addLane(), commitShapeChange(), endGeometryMoving(), moveShapeEnd(), moveShapeStart(), removeConnection(), removeLane(), setAttribute(), and setGeometry().
void GNEEdge::updateJunctionPosition | ( | GNEJunction * | junction, |
const Position & | origPos, | ||
bool | updateGrid | ||
) |
update edge geometry after junction move
Definition at line 401 of file GNEEdge.cpp.
References PositionVector::add(), NBEdge::getGeometry(), GNEJunction::getNBNode(), NBNode::getPosition(), myGNEJunctionSource, myNBEdge, and setGeometry().
bool GNEEdge::wasSplit | ( | ) |
whether this edge was created from a split
Definition at line 885 of file GNEEdge.cpp.
References myWasSplit.
Referenced by GNENet::splitEdge().
|
friend |
|
friend |
|
static |
|
staticprotectedinherited |
dummy TagProperty used for reference some elements (for Example, dummyEdge)
Definition at line 921 of file GNEAttributeCarrier.h.
Referenced by GNEAttributeCarrier::getTagProperties().
|
staticinherited |
feature has been approved but not changed (i.e. after being reguessed)
Definition at line 498 of file GNEAttributeCarrier.h.
|
staticinherited |
feature has been reguessed (may still be unchanged be we can't tell (yet)
Definition at line 492 of file GNEAttributeCarrier.h.
Referenced by GNEJunction::setAttribute(), and setAttribute().
|
staticinherited |
Definition at line 489 of file GNEAttributeCarrier.h.
|
staticinherited |
feature has been manually modified (implies approval)
Definition at line 495 of file GNEAttributeCarrier.h.
Referenced by GNEJunction::markAsModified(), and GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections().
|
staticinherited |
Definition at line 70 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::paintGL(), and GUIViewTraffic::stopTrack().
|
protectedinherited |
list of Additional Childs of this NetElement
Definition at line 174 of file GNENetElement.h.
Referenced by GNENetElement::addAdditionalChild(), GNELane::endGeometryMoving(), endGeometryMoving(), GNENetElement::getAdditionalChilds(), getRouteProbeRelativePosition(), GNENetElement::removeAdditionalChild(), GNELane::startGeometryMoving(), startGeometryMoving(), updateGeometry(), and GNELane::updateGeometry().
|
protected |
whether we are responsible for deleting myNBNode
Definition at line 323 of file GNEEdge.h.
Referenced by setResponsible(), and ~GNEEdge().
|
protected |
modification status of the connections
Definition at line 329 of file GNEEdge.h.
Referenced by getAttribute(), and setAttribute().
|
protectedinherited |
list of Additional parents of this NetElement
Definition at line 171 of file GNENetElement.h.
Referenced by GNENetElement::addAdditionalParent(), GNELane::endGeometryMoving(), endGeometryMoving(), GNENetElement::getAdditionalParents(), GNENetElement::removeAdditionalParent(), removeEdgeOfAdditionalParents(), GNELane::removeLaneOfAdditionalParents(), GNELane::startGeometryMoving(), startGeometryMoving(), updateGeometry(), and GNELane::updateGeometry().
|
protected |
vector with the connections of this edge
Definition at line 320 of file GNEEdge.h.
Referenced by addConnection(), clearGNEConnections(), getGNEConnections(), remakeGNEConnections(), removeConnection(), retrieveGNEConnection(), updateGeometry(), and ~GNEEdge().
|
protected |
pointer to GNEJunction destiny
Definition at line 314 of file GNEEdge.h.
Referenced by addLane(), clickedOverShapeEnd(), drawGL(), editEndpoint(), getAttribute(), getGNECrossings(), getGNEJunctionDestiny(), getOppositeEdge(), isValid(), removeLane(), resetEndpoint(), setAttribute(), setGeometry(), and setNumLanes().
|
protected |
pointer to GNEJunction source
Definition at line 311 of file GNEEdge.h.
Referenced by addLane(), clickedOverShapeStart(), drawGL(), editEndpoint(), getAttribute(), getGNECrossings(), getGNEJunctionSource(), getOppositeEdge(), isValid(), removeLane(), resetEndpoint(), setAttribute(), setGeometry(), setNumLanes(), and updateJunctionPosition().
|
protected |
vectgor with the lanes of this edge
Definition at line 317 of file GNEEdge.h.
Referenced by addLane(), copyTemplate(), drawGL(), endGeometryMoving(), getBoundary(), getLaneGlIDs(), getLanes(), GNEEdge(), hasRestrictedLane(), removeLane(), retrieveGNEConnection(), setAttribute(), setMicrosimID(), setNumLanes(), startGeometryMoving(), updateGeometry(), and ~GNEEdge().
|
protectedinherited |
boundary used during moving of elements
Definition at line 168 of file GNENetElement.h.
Referenced by endGeometryMoving(), GNEJunction::endGeometryMoving(), GNEJunction::getCenteringBoundary(), getCenteringBoundary(), startGeometryMoving(), and GNEJunction::startGeometryMoving().
|
protected |
|
protected |
the underlying NBEdge
Definition at line 305 of file GNEEdge.h.
Referenced by addConnection(), addLane(), clickedOverShapeEnd(), clickedOverShapeStart(), commitShapeChange(), commitShapeEndChange(), commitShapeStartChange(), deleteGeometryPoint(), drawGL(), editEndpoint(), getAttribute(), getBoundary(), getGenericParameters(), getGenericParametersStr(), getNBEdge(), getSplitPos(), getVertexIndex(), GNEEdge(), isValid(), moveShapeEnd(), moveShapeStart(), moveVertexShape(), remakeGNEConnections(), removeConnection(), removeLane(), setAttribute(), setGenericParametersStr(), setGeometry(), setNumLanes(), setShapeEndPos(), setShapeStartPos(), smooth(), smoothElevation(), smoothShape(), straightenElevation(), updateJunctionPosition(), and ~GNEEdge().
|
protectedinherited |
the net to inform about updates
Definition at line 165 of file GNENetElement.h.
Referenced by addLane(), GNEJunction::addTrafficLight(), clearGNEConnections(), commitShapeChange(), deleteGeometryPoint(), GNEJunction::drawGL(), GNECrossing::drawGL(), GNELane::drawGL(), GNEConnection::drawGL(), drawGL(), editEndpoint(), endGeometryMoving(), GNEJunction::endGeometryMoving(), GNENetElement::getNet(), getOppositeEdge(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNELane::getPopUpMenu(), GNEConnection::getPopUpMenu(), getPopUpMenu(), getVertexIndex(), GNEJunction::invalidateShape(), GNEJunction::invalidateTLS(), GNECrossing::isValid(), GNEJunction::isValid(), isValid(), GNEJunction::markAsModified(), GNEJunction::mouseOverObject(), GNEJunction::moveGeometry(), GNEJunction::moveJunctionGeometry(), moveShapeEnd(), moveShapeStart(), moveVertexShape(), GNELane::onDefault(), GNEJunction::rebuildGNECrossings(), remakeGNEConnections(), removeConnection(), GNEJunction::removeConnectionsFrom(), GNEJunction::removeConnectionsTo(), GNEJunction::removeEdgeFromCrossings(), removeEdgeFromCrossings(), removeLane(), GNEJunction::removeTLSConnections(), GNEJunction::removeTrafficLight(), GNEJunction::replaceIncomingConnections(), retrieveGNEConnection(), GNENetElement::selectAttributeCarrier(), GNECrossing::setAttribute(), GNEJunction::setAttribute(), GNEConnection::setAttribute(), setAttribute(), GNELane::setAttribute(), setGeometry(), GNEJunction::setLogicValid(), GNENetElement::unselectAttributeCarrier(), GNEConnection::updateGeometry(), updateGeometry(), GNELane::updateGeometry(), GNEJunction::updateGeometry(), and GNEJunction::updateShapesAndGeometries().
|
protectedinherited |
boolean to check if this AC is selected (instead of GUIGlObjectStorage)
Definition at line 918 of file GNEAttributeCarrier.h.
Referenced by GNEShape::draw(), GNEAdditional::BlockIcon::draw(), GNEAccess::drawGL(), GNENetElement::isAttributeCarrierSelected(), GNEShape::isAttributeCarrierSelected(), GNEAdditional::isAttributeCarrierSelected(), GNEShape::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), GNEShape::unselectAttributeCarrier(), and GNEAdditional::unselectAttributeCarrier().
|
protectedinherited |
the xml tag to which this attribute carrier corresponds
Definition at line 915 of file GNEAttributeCarrier.h.
Referenced by GNEAdditional::addAdditionalChild(), GNEAdditional::changeAdditionalID(), GNEDetectorE2::drawGL(), GNENetElement::getHierarchyName(), GNEAttributeCarrier::getIcon(), GNENetElement::getParameterWindow(), GNEAdditional::getParameterWindow(), GNENetElement::getPopUpID(), GNEAdditional::getPopUpMenu(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAdditional::GNEAdditional(), GNEAdditional::isValidAdditionalID(), GNEAdditional::isValidDetectorID(), GNEAdditional::removeAdditionalChild(), GNEAdditional::setDefaultValues(), GNEAdditional::sortAdditionalChilds(), GNEAdditional::startGeometryMoving(), and GNEAdditional::writeAdditional().
|
protected |
whether this edge was created from a split
Definition at line 326 of file GNEEdge.h.
Referenced by wasSplit().
|
static |
Definition at line 274 of file GNEEdge.h.
Referenced by clickedOverShapeEnd(), clickedOverShapeStart(), commitShapeChange(), GNELane::drawGL(), drawGL(), editEndpoint(), getSplitPos(), and getVertexIndex().
|
staticinherited |
associates object types with strings
Definition at line 69 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().