![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A NBNetBuilder extended by visualisation and editing capabilities. More...
#include <GNENet.h>
Data Structures | |
struct | AttributeCarriers |
struct used for saving all attribute carriers of net, in different formats More... | |
class | GNEChange_ReplaceEdgeInTLS |
class for GNEChange_ReplaceEdgeInTLS More... | |
Public Types | |
typedef NamedObjectCont< PointOfInterest * > | POIs |
typedef NamedObjectCont< SUMOPolygon * > | Polygons |
containers More... | |
Public Member Functions | ||||
void | addExplicitTurnaround (std::string id) | |||
add edge id to the list of explicit turnarounds More... | ||||
void | addGLObjectIntoGrid (GUIGlObject *o) | |||
add GL Object into net More... | ||||
virtual PolygonDynamics * | addPolygonDynamics (double simtime, std::string polyID, SUMOTrafficObject *trackedObject, const std::vector< double > &timeSpan, const std::vector< double > &alphaSpan, bool looped, bool rotate) | |||
Adds dynamics (animation / tracking) to the given polygon. More... | ||||
virtual void | addPolygonUpdateCommand (std::string polyID, ParametrisedWrappingCommand< ShapeContainer, PolygonDynamics * > *cmd) | |||
Register update command (for descheduling at removal) More... | ||||
bool | addRestrictedLane (SUMOVehicleClass vclass, GNEEdge *edge, int index, GNEUndoList *undoList) | |||
add restricted lane to edge More... | ||||
GNEEdge * | addReversedEdge (GNEEdge *edge, GNEUndoList *undoList) | |||
add reversed edge More... | ||||
void | changeEdgeEndpoints (GNEEdge *edge, const std::string &newSourceID, const std::string &newDestID) | |||
modifies endpoins of the given edge More... | ||||
bool | cleanInvalidCrossings (GNEUndoList *undoList) | |||
clear invalid crossings More... | ||||
void | cleanInvalidDemandElements (GNEUndoList *undoList) | |||
clean invalid demand elements More... | ||||
void | cleanUnusedRoutes (GNEUndoList *undoList) | |||
clean unused routes More... | ||||
void | clearJunctionConnections (GNEJunction *junction, GNEUndoList *undoList) | |||
clear junction's connections More... | ||||
void | computeAndUpdate (OptionsCont &oc, bool volatileOptions) | |||
recompute the network and update lane geometries More... | ||||
void | computeDemandElements (GNEApplicationWindow *window) | |||
compute demand elements param[in] window The window to inform about delay More... | ||||
void | computeJunction (GNEJunction *junction) | |||
trigger recomputation of junction shape and logic param[in] window The window to inform about delay More... | ||||
void | computeNetwork (GNEApplicationWindow *window, bool force=false, bool volatileOptions=false, std::string additionalPath="", std::string demandPath="") | |||
trigger full netbuild computation param[in] window The window to inform about delay param[in] force Whether to force recomputation even if not needed param[in] volatileOptions enable or disable volatile options param[in] additionalPath path in wich additionals were saved before recomputing with volatile options param[in] demandPath path in wich demand elements were saved before recomputing with volatile options More... | ||||
GNEEdge * | createEdge (GNEJunction *src, GNEJunction *dest, GNEEdge *tpl, GNEUndoList *undoList, const std::string &suggestedName="", bool wasSplit=false, bool allowDuplicateGeom=false, bool recomputeConnections=true) | |||
creates a new edge (unless an edge with the same geometry already exists) More... | ||||
GNEJunction * | createJunction (const Position &pos, GNEUndoList *undoList) | |||
creates a new junction More... | ||||
void | deleteAdditional (GNEAdditional *additional, GNEUndoList *undoList) | |||
remove additional More... | ||||
void | deleteConnection (GNEConnection *connection, GNEUndoList *undoList) | |||
remove connection More... | ||||
void | deleteCrossing (GNECrossing *crossing, GNEUndoList *undoList) | |||
remove crossing More... | ||||
void | deleteDemandElement (GNEDemandElement *demandElement, GNEUndoList *undoList) | |||
remove demand element More... | ||||
void | deleteEdge (GNEEdge *edge, GNEUndoList *undoList, bool recomputeConnections) | |||
removes edge More... | ||||
void | deleteJunction (GNEJunction *junction, GNEUndoList *undoList) | |||
removes junction and all incident edges More... | ||||
void | deleteLane (GNELane *lane, GNEUndoList *undoList, bool recomputeConnections) | |||
removes lane More... | ||||
void | deleteShape (GNEShape *shape, GNEUndoList *undoList) | |||
remove shape 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 | duplicateLane (GNELane *lane, GNEUndoList *undoList, bool recomputeConnections) | |||
duplicates lane More... | ||||
FXApp * | getApp () | |||
get pointer to the main App More... | ||||
const AttributeCarriers & | getAttributeCarriers () const | |||
retrieve all attribute carriers of Net More... | ||||
const Boundary & | getBoundary () const | |||
returns the bounder of the network More... | ||||
NBEdgeCont & | getEdgeCont () | |||
returns the NBEdgeCont of the underlying netbuilder More... | ||||
NBNetBuilder * | getNetBuilder () const | |||
get net builder More... | ||||
const POIs & | getPOIs () const | |||
Returns all pois. More... | ||||
const Polygons & | getPolygons () const | |||
Returns all polygons. More... | ||||
std::vector< GNEAttributeCarrier * > | getSelectedAttributeCarriers (bool ignoreCurrentSupermode) | |||
get all selected attribute carriers (or only relative to current supermode More... | ||||
NBTrafficLightLogicCont & | getTLLogicCont () | |||
returns the tllcont of the underlying netbuilder More... | ||||
GNEViewNet * | getViewNet () const | |||
get view net More... | ||||
SUMORTree & | getVisualisationSpeedUp () | |||
Returns the RTree used for visualisation speed-up. More... | ||||
const SUMORTree & | getVisualisationSpeedUp () const | |||
Returns the RTree used for visualisation speed-up. More... | ||||
GNENet (NBNetBuilder *netBuilder) | ||||
Constructor. More... | ||||
void | initGNEConnections () | |||
initialize GNEConnections More... | ||||
bool | isNetSaved () const | |||
return if net has to be saved More... | ||||
void | joinRoutes (GNEUndoList *undoList) | |||
join routes More... | ||||
bool | joinSelectedJunctions (GNEUndoList *undoList) | |||
join selected junctions More... | ||||
void | mergeJunctions (GNEJunction *moved, GNEJunction *target, GNEUndoList *undoList) | |||
merge the given junctions edges between the given junctions will be deleted More... | ||||
virtual void | movePOI (const std::string &id, const Position &pos) | |||
Assigns a new position to the named PoI. More... | ||||
bool | netHasGNECrossings () const | |||
check if net has GNECrossings More... | ||||
virtual void | onLeftBtnPress (void *) | |||
notify object about left click More... | ||||
virtual SUMOTime | polygonDynamicsUpdate (SUMOTime t, PolygonDynamics *pd) | |||
Regular update event for updating polygon dynamics. More... | ||||
virtual void | registerHighlight (const std::string &objectID, const int type, const std::string &polygonID) | |||
register highlight of the specified type if the given id More... | ||||
virtual void | removeActiveAddVisualisation (GUISUMOAbstractView *const, int) | |||
remove additional user-griggered visualisations More... | ||||
void | removeExplicitTurnaround (std::string id) | |||
remove edge id from the list of explicit turnarounds More... | ||||
void | removeGLObjectFromGrid (GUIGlObject *o) | |||
add GL Object into net More... | ||||
virtual bool | removePOI (const std::string &id) | |||
Removes a PoI from the container. More... | ||||
virtual bool | removePolygon (const std::string &id, bool useLock=true) | |||
Removes a polygon from the container. More... | ||||
virtual bool | removePolygonDynamics (const std::string &polyID) | |||
Remove dynamics (animation / tracking) for the given polygon. More... | ||||
bool | removeRestrictedLane (SUMOVehicleClass vclass, GNEEdge *edge, GNEUndoList *undoList) | |||
remove restricted lane More... | ||||
void | removeSolitaryJunctions (GNEUndoList *undoList) | |||
removes junctions that have no edges More... | ||||
virtual void | removeTrackers (std::string objectID) | |||
Remove all tracking polygons for the given object. More... | ||||
void | renameEdge (GNEEdge *edge, const std::string &newID) | |||
updates the map and reserves new id More... | ||||
void | renameJunction (GNEJunction *junction, const std::string &newID) | |||
updates the map and reserves new id More... | ||||
void | replaceIncomingEdge (GNEEdge *which, GNEEdge *by, GNEUndoList *undoList) | |||
replaces edge More... | ||||
void | replaceJunctionByGeometry (GNEJunction *junction, GNEUndoList *undoList) | |||
replace the selected junction by geometry node(s) and merge the edges More... | ||||
void | requireRecompute () | |||
inform the net about the need for recomputation More... | ||||
void | requireSaveNet (bool value) | |||
inform that net has to be saved More... | ||||
void | resetJunctionConnections (GNEJunction *junction, GNEUndoList *undoList) | |||
reset junction's connections More... | ||||
virtual void | reshapePolygon (const std::string &id, const PositionVector &shape) | |||
Assigns a shape to the named polygon. More... | ||||
bool | restrictLane (SUMOVehicleClass vclass, GNELane *lane, GNEUndoList *undoList) | |||
transform lane to restricted lane More... | ||||
GNEAttributeCarrier * | retrieveAttributeCarrier (const GUIGlID id, bool failHard=true) | |||
get a single attribute carrier based on a GLID More... | ||||
std::vector< GNEAttributeCarrier * > | retrieveAttributeCarriers (SumoXMLTag type=SUMO_TAG_NOTHING) | |||
get the attribute carriers based on Type More... | ||||
GNEConnection * | retrieveConnection (const std::string &id, bool failHard=true) const | |||
get Connection by id More... | ||||
std::vector< GNEConnection * > | retrieveConnections (bool onlySelected=false) const | |||
return all connections More... | ||||
GNECrossing * | retrieveCrossing (const std::string &id, bool failHard=true) const | |||
get Crossing by id More... | ||||
std::vector< GNECrossing * > | retrieveCrossings (bool onlySelected=false) const | |||
return all crossings More... | ||||
GNEEdge * | retrieveEdge (const std::string &id, bool failHard=true) | |||
get edge by id More... | ||||
GNEEdge * | retrieveEdge (GNEJunction *from, GNEJunction *to, bool failHard=true) | |||
get edge by from and to GNEJunction More... | ||||
std::vector< GNEEdge * > | retrieveEdges (bool onlySelected=false) | |||
return all edges More... | ||||
GNEJunction * | retrieveJunction (const std::string &id, bool failHard=true) | |||
get junction by id More... | ||||
std::vector< GNEJunction * > | retrieveJunctions (bool onlySelected=false) | |||
return all junctions More... | ||||
GNELane * | retrieveLane (const std::string &id, bool failHard=true, bool checkVolatileChange=false) | |||
get lane by id More... | ||||
std::vector< GNELane * > | retrieveLanes (bool onlySelected=false) | |||
return all lanes More... | ||||
GNEPOI * | retrievePOI (const std::string &id, bool failHard=true) const | |||
get POI by id More... | ||||
GNEPoly * | retrievePolygon (const std::string &id, bool failHard=true) const | |||
get Polygon by id More... | ||||
std::vector< GNEShape * > | retrieveShapes (bool onlySelected=false) | |||
return all shapes More... | ||||
std::vector< GNEShape * > | retrieveShapes (SumoXMLTag shapeTag, bool onlySelected=false) | |||
return shape by type shapes More... | ||||
void | reverseEdge (GNEEdge *edge, GNEUndoList *undoList) | |||
reverse edge More... | ||||
void | save (OptionsCont &oc) | |||
save the network More... | ||||
void | saveJoined (OptionsCont &oc) | |||
save log of joined junctions (and nothing else) More... | ||||
void | savePlain (OptionsCont &oc) | |||
save plain xml representation of the network (and nothing else) More... | ||||
void | setViewNet (GNEViewNet *viewNet) | |||
Set the viewNet to be notified of network changes. More... | ||||
GNEJunction * | splitEdge (GNEEdge *edge, const Position &pos, GNEUndoList *undoList, GNEJunction *newJunction=0) | |||
split edge at position by inserting a new junction More... | ||||
void | splitEdgesBidi (GNEEdge *edge, GNEEdge *oppositeEdge, const Position &pos, GNEUndoList *undoList) | |||
split all edges at position by inserting one new junction More... | ||||
void | splitJunction (GNEJunction *junction, bool reconnect, GNEUndoList *undoList) | |||
replace the selected junction by a list of junctions for each unique edge endpoint More... | ||||
~GNENet () | ||||
Destructor. More... | ||||
inherited from GUIGlObject | ||||
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own popup-menu. More... | ||||
GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own parameter window. More... | ||||
Boundary | getCenteringBoundary () const | |||
Returns the boundary to which the view shall be centered in order to show the object. More... | ||||
const Boundary & | getZBoundary () const | |||
Returns the Z boundary (stored in the x() coordinate) values of 0 do not affect the boundary. More... | ||||
void | drawGL (const GUIVisualizationSettings &s) const | |||
Draws the object. More... | ||||
inherited from ShapeHandler | ||||
bool | addPolygon (const std::string &id, const std::string &type, const RGBColor &color, double layer, double angle, const std::string &imgFile, bool relativePath, const PositionVector &shape, bool geo, bool fill, double lineWidth, bool ignorePruning=false) | |||
Builds a polygon using the given values and adds it to the container. More... | ||||
bool | addPOI (const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, bool geo, const std::string &lane, double posOverLane, double posLat, double layer, double angle, const std::string &imgFile, bool relativePath, double width, double height, bool ignorePruning=false) | |||
Builds a POI using the given values and adds it to the container. More... | ||||
Functions related to Additional Items | ||||
GNEAdditional * | retrieveAdditional (SumoXMLTag type, const std::string &id, bool hardFail=true) const | |||
Returns the named additional. More... | ||||
std::vector< GNEAdditional * > | retrieveAdditionals (bool onlySelected=false) const | |||
return all additionals More... | ||||
int | getNumberOfAdditionals (SumoXMLTag type=SUMO_TAG_NOTHING) const | |||
Returns the number of additionals of the net. More... | ||||
void | updateAdditionalID (const std::string &oldID, GNEAdditional *additional) | |||
update additional ID in container More... | ||||
void | requireSaveAdditionals (bool value) | |||
inform that additionals has to be saved More... | ||||
void | saveAdditionals (const std::string &filename) | |||
save additional elements of the network More... | ||||
bool | isAdditionalsSaved () const | |||
check if additionals are saved More... | ||||
std::string | generateAdditionalID (SumoXMLTag type) const | |||
generate additional id More... | ||||
Functions related to DemandElement Items | ||||
GNEDemandElement * | retrieveDemandElement (SumoXMLTag type, const std::string &id, bool hardFail=true) const | |||
Returns the named demand element. More... | ||||
std::vector< GNEDemandElement * > | retrieveDemandElements (bool onlySelected=false) const | |||
return all demand elements More... | ||||
int | getNumberOfDemandElements (SumoXMLTag type=SUMO_TAG_NOTHING) const | |||
Returns the number of demand elements of the net. More... | ||||
void | updateDemandElementID (const std::string &oldID, GNEDemandElement *demandElement) | |||
update demand element ID in container More... | ||||
void | updateDemandElementBegin (const std::string &oldBegin, GNEDemandElement *demandElement) | |||
update demand element begin in container More... | ||||
void | requireSaveDemandElements (bool value) | |||
inform that demand elements has to be saved More... | ||||
void | saveDemandElements (const std::string &filename) | |||
save demand element elements of the network More... | ||||
bool | isDemandElementsSaved () const | |||
check if demand elements are saved More... | ||||
std::string | generateDemandElementID (const std::string &prefix, SumoXMLTag type) const | |||
generate demand element id More... | ||||
Functions related to Shapes | ||||
GNEPoly * | addPolygonForEditShapes (GNENetElement *netElement, const PositionVector &shape, bool fill, RGBColor col) | |||
Builds a special polygon used for edit Junctions's shapes. More... | ||||
void | removePolygonForEditShapes (GNEPoly *polygon) | |||
remove Polygon for edit shapes More... | ||||
std::string | generateShapeID (SumoXMLTag shapeTag) const | |||
generate Shape ID More... | ||||
void | changeShapeID (GNEShape *s, const std::string &OldID) | |||
change Shape ID More... | ||||
int | getNumberOfShapes () const | |||
get number of shapes More... | ||||
Functions related to TLS Programs | ||||
inform that TLS Programs has to be saved | ||||
void | requireSaveTLSPrograms () | |||
void | saveTLSPrograms (const std::string &filename) | |||
save TLS Programs elements of the network More... | ||||
int | getNumberOfTLSPrograms () const | |||
get number of TLS Programs More... | ||||
Functions related to Enable or disable update geometry of elements after insertio | ||||
enable update geometry of elements after inserting or removing an element in net | ||||
void | enableUpdateGeometry () | |||
void | disableUpdateGeometry () | |||
disable update geometry of elements after inserting or removing an element in net More... | ||||
bool | isUpdateGeometryEnabled () const | |||
check if update geometry after inserting or removing has to be updated 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 void | removedPopupMenu () | |||
notify object about popup menu removal More... | ||||
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... | ||||
virtual const std::string | getOptionalName () const | |||
Returns the name of the object (default "") More... | ||||
virtual void | setMicrosimID (const std::string &newID) | |||
Changes the microsimID of the object. 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 Attributes | |
static const GUIGlID | INVALID_ID = 0 |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings More... | |
Protected Member Functions | ||||
virtual bool | add (PointOfInterest *poi, bool ignorePruning=false) | |||
add poi More... | ||||
virtual bool | add (SUMOPolygon *poly, bool ignorePruning=false) | |||
add polygon More... | ||||
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... | ||||
virtual void | cleanupPolygonDynamics (const std::string &id) | |||
Unschedules the removal and update commands of the given polygon. More... | ||||
Insertion and erasing of GNEAdditionals items | ||||
bool | additionalExist (GNEAdditional *additional) const | |||
return true if additional exist (use pointer instead ID) More... | ||||
void | insertAdditional (GNEAdditional *additional) | |||
Insert a additional element int GNENet container. More... | ||||
bool | deleteAdditional (GNEAdditional *additional, bool updateViewAfterDeleting) | |||
delete additional element of GNENet container More... | ||||
Insertion and erasing of GNEDemandElements items | ||||
bool | demandElementExist (GNEDemandElement *demandElement) const | |||
return true if demand element exist (use pointer instead ID) More... | ||||
void | insertDemandElement (GNEDemandElement *demandElement) | |||
Insert a demand element element int GNENet container. More... | ||||
bool | deleteDemandElement (GNEDemandElement *demandElement, bool updateViewAfterDeleting) | |||
delete demand element element of GNENet container 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... | ||||
Management of highlights. For each type, only one highlight can be active, | ||||
Remove any previously added highlight polygon of the specified type
| ||||
virtual void | clearHighlight (const std::string &objectID, const int type, std::string &toRemove) | |||
virtual void | clearHighlights (const std::string &objectID, SUMOPolygon *p) | |||
Clears all highlight information from the maps when the object leaves the net (Highlight polygons and dynamics are removed via removeTrackers()) More... | ||||
Protected Attributes | |
AttributeCarriers | myAttributeCarriers |
AttributeCarriers of net. More... | |
SUMORTree | myGrid |
the rtree which contains all GUIGlObjects (so named for historical reasons) More... | |
std::map< std::string, std::string > | myHighlightedObjects |
inverse map to myHighlightPolygons saves the highlighted object for each polygon More... | |
std::map< std::string, std::map< int, std::string > > | myHighlightPolygons |
maps objects to a map of highlight types to highlighting polygons More... | |
NBNetBuilder * | myNetBuilder |
The internal netbuilder. More... | |
POIs | myPOIs |
stored POIs More... | |
std::map< std::string, PolygonDynamics * > | myPolygonDynamics |
stored PolygonDynamics More... | |
Polygons | myPolygons |
stored Polygons More... | |
std::map< const std::string, std::set< const SUMOPolygon * > > | myTrackingPolygons |
Information about tracked objects. More... | |
GNEViewNet * | myViewNet |
The viewNet to be notofied of about changes. More... | |
ID Suppliers for newly created edges and junctions | |
IDSupplier | myEdgeIDSupplier |
IDSupplier | myJunctionIDSupplier |
std::set< std::string > | myExplicitTurnarounds |
list of edge ids for which turn-arounds must be added explicitly More... | |
bool | myNeedRecompute |
whether the net needs recomputation More... | |
bool | myNetSaved |
Flag to check if net has to be saved. More... | |
bool | myAdditionalsSaved |
Flag to check if additionals has to be saved. More... | |
bool | myTLSProgramsSaved |
Flag to check if shapes has to be saved. More... | |
bool | myDemandElementsSaved |
Flag to check if demand elements has to be saved. More... | |
bool | myUpdateGeometryEnabled |
Flag to enable or disable update geometry of elements after inserting or removing element in net. More... | |
Private Member Functions | |
bool | checkJunctionPosition (const Position &pos) |
return true if there are already a Junction in the given position, false in other case More... | |
std::string | createFullName () const |
create full name More... | |
void | deleteSingleEdge (GNEEdge *edge, bool updateViewAfterDeleting) |
deletes a single edge More... | |
void | deleteSingleJunction (GNEJunction *junction, bool updateViewAfterDeleting) |
deletes a single junction More... | |
void | initJunctionsAndEdges () |
Init Junctions and edges. More... | |
void | insertEdge (GNEEdge *edge) |
inserts a single edge into the net and into the underlying netbuild-container More... | |
void | insertJunction (GNEJunction *junction) |
inserts a single junction into the net and into the underlying netbuild-container More... | |
void | insertShape (GNEShape *shape, bool updateViewAfterDeleting) |
insert shape More... | |
GNEEdge * | registerEdge (GNEEdge *edge) |
registers an edge with GNENet containers More... | |
GNEJunction * | registerJunction (GNEJunction *junction) |
registers a junction with GNENet containers More... | |
void | removeShape (GNEShape *shape, bool updateViewAfterDeleting) |
remove created shape (but NOT delete) More... | |
void | reserveEdgeID (const std::string &id) |
reserve edge ID (To avoid duplicates) More... | |
void | reserveJunctionID (const std::string &id) |
reserve junction ID (To avoid duplicates) More... | |
void | saveAdditionalsConfirmed (const std::string &filename) |
save additionals after confirming invalid objects More... | |
void | saveDemandElementsConfirmed (const std::string &filename) |
save demand elements after confirming invalid objects More... | |
void | update () |
notify myViewNet More... | |
Static Private Member Functions | |
static void | replaceInListAttribute (GNEAttributeCarrier *ac, SumoXMLAttr key, const std::string &which, const std::string &by, GNEUndoList *undoList) |
Private Attributes | |
bool | myAllowUndoShapes |
flag used to indicate if shaped created can be undo More... | |
std::map< std::string, int > | myEdgesAndNumberOfLanes |
map with the Edges and their number of lanes More... | |
std::string | myFullName |
full name of GL Object More... | |
GUIGlID | myGlID |
The numerical id of the object. More... | |
const GUIGlObjectType | myGLObjectType |
The type of the object. More... | |
std::string | myMicrosimID |
ID of GL object. More... | |
std::set< GUIParameterTableWindow * > | myParamWindows |
Parameter table windows which refer to this object. More... | |
std::map< const std::string, ParametrisedWrappingCommand< ShapeContainer, PolygonDynamics * > * > | myPolygonUpdateCommands |
Command pointers for scheduled polygon update. Maps PolyID->Command. More... | |
Boundary | myZBoundary |
the z boundary (stored in the x-coordinate), values of 0 are ignored More... | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
LinkStates (Currently unused) More... | |
static const double | Z_INITIALIZED = 1 |
marker for whether the z-boundary is initialized More... | |
Friends | |
class | GNEAdditionalHandler |
declare friend class More... | |
class | GNEChange_Additional |
class | GNEChange_CalibratorItem |
class | GNEChange_Connection |
class | GNEChange_DemandElement |
class | GNEChange_Edge |
class | GNEChange_Junction |
class | GNEChange_Lane |
class | GNEChange_Shape |
class | GNERouteHandler |
A NBNetBuilder extended by visualisation and editing capabilities.
|
inherited |
Definition at line 54 of file ShapeContainer.h.
|
inherited |
containers
Definition at line 53 of file ShapeContainer.h.
GNENet::GNENet | ( | NBNetBuilder * | netBuilder | ) |
Constructor.
[in] | netbuilder | the netbuilder which may already have been filled GNENet becomes responsible for cleaning this up |
Definition at line 87 of file GNENet.cpp.
References GNEAttributeCarrier::allowedTagsByCategory(), GUIGlObjectStorage::gIDStorage, GUIGlObjectStorage::setNetObject(), and WRITE_GLDEBUG.
GNENet::~GNENet | ( | ) |
Destructor.
Definition at line 133 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, GNEReferenceCounter::decRef(), GNEDemandElement::deleteRouteCalculatorInstance(), GNENet::AttributeCarriers::demandElements, GNENet::AttributeCarriers::edges, GNENet::AttributeCarriers::junctions, myAttributeCarriers, myNetBuilder, ShapeContainer::myPOIs, ShapeContainer::myPolygons, and WRITE_DEBUG.
|
protectedvirtualinherited |
add poi
Reimplemented in PCPolyContainer.
Definition at line 197 of file ShapeContainer.cpp.
References NamedObjectCont< T >::add(), Named::getID(), and ShapeContainer::myPOIs.
|
protectedvirtualinherited |
add polygon
Reimplemented in PCPolyContainer.
Definition at line 187 of file ShapeContainer.cpp.
References NamedObjectCont< T >::add(), Named::getID(), and ShapeContainer::myPolygons.
Referenced by PCPolyContainer::add(), ShapeContainer::addPOI(), and ShapeContainer::addPolygon().
void GNENet::addExplicitTurnaround | ( | std::string | id | ) |
add edge id to the list of explicit turnarounds
Definition at line 2171 of file GNENet.cpp.
References myExplicitTurnarounds.
Referenced by GNEJunction::removeConnectionsFrom(), and GNEJunction::removeConnectionsTo().
void GNENet::addGLObjectIntoGrid | ( | GUIGlObject * | o | ) |
add GL Object into net
Definition at line 1322 of file GNENet.cpp.
References SUMORTree::addAdditionalGLObject(), and myGrid.
Referenced by GNEEdge::addLane(), GNEPoly::deleteGeometryPoint(), GNETAZ::deleteGeometryPoint(), GNEAdditional::endGeometryMoving(), GNEPoly::endGeometryMoving(), GNEEdge::endGeometryMoving(), GNEJunction::endGeometryMoving(), GNEJunction::invalidateShape(), GNEEdge::removeLane(), GNEDetectorE3::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingSpace::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNERerouter::setAttribute(), GNETAZ::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNELane::setAttribute(), GNEEdge::setNumLanes(), and GNEParkingArea::updateGeometry().
|
protected |
return true if additional exist (use pointer instead ID)
Definition at line 2697 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and myAttributeCarriers.
Referenced by deleteAdditional(), insertAdditional(), and GNEChange_Additional::~GNEChange_Additional().
|
inherited |
Definition at line 287 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
virtual |
Builds a POI using the given values and adds it to the container.
[in] | id | The name of the POI |
[in] | type | The (abstract) type of the POI |
[in] | color | The color of the POI |
[in] | pos | The position of the POI |
[in[ | geo use GEO coordinates (lon/lat) | |
[in] | lane | The Lane in which this POI is placed |
[in] | posOverLane | The position over Lane |
[in] | posLat | The position lateral over Lane |
[in] | layer | The layer of the POI |
[in] | angle | The rotation of the POI |
[in] | imgFile | The raster image of the POI |
[in] | relativePath | set image file as relative path |
[in] | width | The width of the POI image |
[in] | height | The height of the POI image |
Reimplemented from ShapeContainer.
Definition at line 240 of file GNENet.cpp.
References NamedObjectCont< T >::add(), NamedObjectCont< T >::get(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getUndoList(), GNEChange_Shape, GNEReferenceCounter::incRef(), insertShape(), myAllowUndoShapes, ShapeContainer::myPOIs, myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), and retrieveLane().
Referenced by GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), and GNEViewNet::onCmdTransformPOI().
|
virtual |
Builds a polygon using the given values and adds it to the container.
[in] | id | The name of the polygon |
[in] | type | The (abstract) type of the polygon |
[in] | color | The color of the polygon |
[in] | layer | The layer of the polygon |
[in] | angle | The rotation of the polygon |
[in] | imgFile | The raster image of the polygon |
[in] | relativePath | set image file as relative path |
[in] | shape | The shape of the polygon |
[in] | geo | specify if shape was loaded as GEO coordinate |
[in] | fill | Whether the polygon shall be filled |
[in] | lineWidth | The widht for drawing unfiled polygon |
Reimplemented from ShapeContainer.
Definition at line 217 of file GNENet.cpp.
References NamedObjectCont< T >::get(), GNEViewNet::getUndoList(), GNEChange_Shape, GNEReferenceCounter::incRef(), insertShape(), myAllowUndoShapes, ShapeContainer::myPolygons, myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_POLY, and toString().
Referenced by GNEPolygonFrame::addPolygon().
|
virtualinherited |
Adds dynamics (animation / tracking) to the given polygon.
polyID | ID of the polygon which should become dynamic |
Reimplemented in GUIShapeContainer.
Definition at line 73 of file ShapeContainer.cpp.
References NamedObjectCont< T >::get(), PolygonDynamics::getTrackedObjectID(), ShapeContainer::myPolygonDynamics, ShapeContainer::myPolygons, ShapeContainer::myTrackingPolygons, and ShapeContainer::removePolygonDynamics().
Referenced by libsumo::Polygon::addDynamics(), and GUIShapeContainer::addPolygonDynamics().
GNEPoly * GNENet::addPolygonForEditShapes | ( | GNENetElement * | netElement, |
const PositionVector & | shape, | ||
bool | fill, | ||
RGBColor | col | ||
) |
Builds a special polygon used for edit Junctions's shapes.
[in] | netElement | GNENetElement to be edited |
[in] | shape | shape to be edited |
[in] | fill | enable or disable fill polygon |
[in] | col | The color for drawing the polygon |
processError | if shape is empty |
Definition at line 2568 of file GNENet.cpp.
References SUMORTree::addAdditionalGLObject(), GLO_POLYGON, myGrid, myViewNet, GNEPoly::setShapeEditedElement(), and GNEViewNet::update().
|
virtualinherited |
Register update command (for descheduling at removal)
Definition at line 280 of file ShapeContainer.cpp.
References ShapeContainer::myPolygonUpdateCommands.
Referenced by libsumo::Polygon::addDynamics().
bool GNENet::addRestrictedLane | ( | SUMOVehicleClass | vclass, |
GNEEdge * | edge, | ||
int | index, | ||
GNEUndoList * | undoList | ||
) |
add restricted lane to edge
[in] | vclass | vehicle class to restrict |
[in] | edge | The edge in which insert restricted lane |
[in] | undoList | The undolist in which to mark changes |
Definition at line 720 of file GNENet.cpp.
References duplicateLane(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), NBEdge::getPermissions(), MIN2(), restrictLane(), SVC_BICYCLE, SVC_BUS, SVC_IGNORING, and SVC_PEDESTRIAN.
Referenced by GNEViewNet::addRestrictedLane().
GNEEdge * GNENet::addReversedEdge | ( | GNEEdge * | edge, |
GNEUndoList * | undoList | ||
) |
add reversed edge
[in] | edge | The edge of which to add the reverse |
Definition at line 900 of file GNENet.cpp.
References createEdge(), createJunction(), GNEEdge::getAttribute(), NBEdge::getGeometry(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNEAttributeCarrier::getID(), NBEdge::getInnerGeometry(), NBEdge::getLaneSpreadFunction(), GNEEdge::getNBEdge(), NBEdge::getPermissions(), NBEdge::getTotalWidth(), GNE_ATTR_SELECTED, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, isRailway(), LANESPREAD_RIGHT, PositionVector::move2side(), GNEUndoList::p_begin(), GNEUndoList::p_end(), PositionVector::reverse(), GNEEdge::setAttribute(), GNEJunction::setAttribute(), SUMO_ATTR_SHAPE, SUMO_TAG_EDGE, and toString().
Referenced by GNEViewNet::onCmdAddReversedEdge().
|
protectedinherited |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 325 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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 216 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 225 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
Builds the header.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 207 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 266 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 235 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(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 302 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
Referenced by GNEPOI::getPopUpMenu(), and GUIPointOfInterest::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 278 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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 248 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 257 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), and GUIPerson::getPopUpMenu().
void GNENet::changeEdgeEndpoints | ( | GNEEdge * | edge, |
const std::string & | newSourceID, | ||
const std::string & | newDestID | ||
) |
modifies endpoins of the given edge
Definition at line 2107 of file GNENet.cpp.
References GNEEdge::getNBEdge(), GNEJunction::getNBNode(), NBEdge::reinitNodes(), requireRecompute(), retrieveJunction(), and update().
Referenced by GNEEdge::setAttribute().
void GNENet::changeShapeID | ( | GNEShape * | s, |
const std::string & | OldID | ||
) |
change Shape ID
Definition at line 2622 of file GNENet.cpp.
References NamedObjectCont< T >::changeID(), NamedObjectCont< T >::get(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), ShapeContainer::myPOIs, ShapeContainer::myPolygons, and SUMO_TAG_POLY.
Referenced by GNEPOI::setAttribute(), and GNEPoly::setAttribute().
|
private |
return true if there are already a Junction in the given position, false in other case
Definition at line 970 of file GNENet.cpp.
References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.
Referenced by joinSelectedJunctions().
bool GNENet::cleanInvalidCrossings | ( | GNEUndoList * | undoList | ) |
clear invalid crossings
Definition at line 1736 of file GNENet.cpp.
References deleteCrossing(), getApp(), GNENet::AttributeCarriers::junctions, myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_CROSSING, toString(), and WRITE_DEBUG.
Referenced by GNEApplicationWindow::onCmdProcessButton().
void GNENet::cleanInvalidDemandElements | ( | GNEUndoList * | undoList | ) |
clean invalid demand elements
Definition at line 1899 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, GNEChange_DemandElement, myAttributeCarriers, myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_TRIP, and GNEViewNet::update().
Referenced by GNEApplicationWindow::onCmdProcessButton().
void GNENet::cleanUnusedRoutes | ( | GNEUndoList * | undoList | ) |
clean unused routes
Definition at line 1805 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, GNEChange_DemandElement, myAttributeCarriers, myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_ROUTE, and GNEViewNet::update().
Referenced by GNEApplicationWindow::onCmdProcessButton().
|
protectedvirtualinherited |
Unschedules the removal and update commands of the given polygon.
[in] | id | The id of the polygon |
Definition at line 207 of file ShapeContainer.cpp.
References ShapeContainer::myPolygonUpdateCommands.
Referenced by ShapeContainer::removePolygonDynamics().
|
protectedvirtualinherited |
Definition at line 245 of file ShapeContainer.cpp.
References ShapeContainer::myHighlightedObjects, and ShapeContainer::myHighlightPolygons.
Referenced by ShapeContainer::registerHighlight().
|
protectedvirtualinherited |
Clears all highlight information from the maps when the object leaves the net (Highlight polygons and dynamics are removed via removeTrackers())
Definition at line 261 of file ShapeContainer.cpp.
References Named::getID(), and ShapeContainer::myHighlightPolygons.
Referenced by ShapeContainer::removePolygonDynamics().
void GNENet::clearJunctionConnections | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
clear junction's connections
Definition at line 2071 of file GNENet.cpp.
References deleteConnection(), GNEJunction::getGNEConnections(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by GNEViewNet::onCmdClearConnections(), replaceJunctionByGeometry(), and resetJunctionConnections().
void GNENet::computeAndUpdate | ( | OptionsCont & | oc, |
bool | volatileOptions | ||
) |
recompute the network and update lane geometries
Definition at line 3094 of file GNENet.cpp.
References Boundary::add(), SUMORTree::addAdditionalGLObject(), GNENet::AttributeCarriers::additionals, GNEAttributeCarrier::allowedTagsByCategory(), NamedObjectCont< T >::clear(), GNEInspectorFrame::clearInspectedAC(), NBNetBuilder::compute(), GNENet::AttributeCarriers::demandElements, GNENet::AttributeCarriers::edges, OptionsCont::getBool(), GeoConvHelper::getFinal(), GNEViewParent::getInspectorFrame(), GNEViewNet::getUndoList(), GNEViewNet::getViewParent(), initJunctionsAndEdges(), OptionsCont::isSet(), GNENet::AttributeCarriers::junctions, myAttributeCarriers, myExplicitTurnarounds, myGrid, myNeedRecompute, myNetBuilder, ShapeContainer::myPOIs, ShapeContainer::myPolygons, myUpdateGeometryEnabled, myViewNet, GNEUndoList::p_clear(), SUMORTree::removeAdditionalGLObject(), Boundary::reset(), and WRITE_GLDEBUG.
Referenced by computeNetwork(), GNEViewNet::onCmdEditJunctionShape(), GNELoadThread::run(), save(), saveJoined(), and savePlain().
void GNENet::computeDemandElements | ( | GNEApplicationWindow * | window | ) |
compute demand elements param[in] window The window to inform about delay
Definition at line 1538 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, myAttributeCarriers, and GNEApplicationWindow::setStatusBarText().
Referenced by GNEApplicationWindow::onCmdProcessButton(), and saveDemandElements().
void GNENet::computeJunction | ( | GNEJunction * | junction | ) |
trigger recomputation of junction shape and logic param[in] window The window to inform about delay
Definition at line 1551 of file GNENet.cpp.
References NBTrafficLightLogicCont::computeSingleLogic(), NBNode::getControllingTLS(), GNEJunction::getNBNode(), OptionsCont::getOptions(), and getTLLogicCont().
Referenced by GNETLSEditorFrame::onCmdDefSwitch().
void GNENet::computeNetwork | ( | GNEApplicationWindow * | window, |
bool | force = false , |
||
bool | volatileOptions = false , |
||
std::string | additionalPath = "" , |
||
std::string | demandPath = "" |
||
) |
trigger full netbuild computation param[in] window The window to inform about delay param[in] force Whether to force recomputation even if not needed param[in] volatileOptions enable or disable volatile options param[in] additionalPath path in wich additionals were saved before recomputing with volatile options param[in] demandPath path in wich demand elements were saved before recomputing with volatile options
Definition at line 1457 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, GNEAttributeCarrier::allowedTagsByCategory(), computeAndUpdate(), GNENet::AttributeCarriers::demandElements, GNENet::AttributeCarriers::edges, OptionsCont::getOptions(), myAttributeCarriers, myEdgesAndNumberOfLanes, myNeedRecompute, myViewNet, XMLSubSys::runParser(), GNEApplicationWindow::setStatusBarText(), update(), and WRITE_MESSAGE.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEApplicationWindow::onCmdOpenTLSPrograms(), and GNEApplicationWindow::onCmdProcessButton().
GNEEdge * GNENet::createEdge | ( | GNEJunction * | src, |
GNEJunction * | dest, | ||
GNEEdge * | tpl, | ||
GNEUndoList * | undoList, | ||
const std::string & | suggestedName = "" , |
||
bool | wasSplit = false , |
||
bool | allowDuplicateGeom = false , |
||
bool | recomputeConnections = true |
||
) |
creates a new edge (unless an edge with the same geometry already exists)
[in] | src | The starting junction |
[in] | dest | The ending junction |
[in] | tpl | The template edge from which to copy attributes (including lane attrs) |
[in] | undoList | The undoList in which to mark changes |
[in] | suggestedName | |
[in] | wasSplit | Whether the edge was created from a split |
[in] | allowDuplicateGeom | Whether to create the edge even though another edge with the same geometry exists |
[in] | recomputeConnections | Whether connections on the affected junctions must be recomputed |
Definition at line 326 of file GNENet.cpp.
References GNENet::AttributeCarriers::edges, OptionsCont::getFloat(), OptionsCont::getInt(), GNEEdge::getNBEdge(), GNEJunction::getNBNode(), IDSupplier::getNext(), OptionsCont::getOptions(), NBNode::getOutgoingEdges(), OptionsCont::getString(), GNEChange_Edge, myAttributeCarriers, myEdgeIDSupplier, GNEUndoList::p_begin(), GNEUndoList::p_end(), requireRecompute(), reserveEdgeID(), retrieveEdge(), GNEJunction::setLogicValid(), SUMO_TAG_EDGE, toString(), NBEdge::UNSPECIFIED_OFFSET, and NBEdge::UNSPECIFIED_WIDTH.
Referenced by addReversedEdge(), GNECreateEdgeFrame::processClick(), reverseEdge(), splitEdge(), and splitJunction().
|
privateinherited |
create full name
Definition at line 348 of file GUIGlObject.cpp.
References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.
Referenced by GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
GNEJunction * GNENet::createJunction | ( | const Position & | pos, |
GNEUndoList * | undoList | ||
) |
creates a new junction
[in] | position | The position of the new junction |
[in] | undoList | The undolist in which to mark changes |
Definition at line 313 of file GNENet.cpp.
References IDSupplier::getNext(), GNEChange_Junction, GNENet::AttributeCarriers::junctions, myAttributeCarriers, and myJunctionIDSupplier.
Referenced by addReversedEdge(), joinSelectedJunctions(), GNECreateEdgeFrame::processClick(), splitEdge(), and splitJunction().
|
protected |
delete additional element of GNENet container
processError | if additional wasn't previously inserted |
Definition at line 2734 of file GNENet.cpp.
References additionalExist(), GNENet::AttributeCarriers::additionals, GNEInspectorFrame::getAttributesEditor(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getViewParent(), GNEAdditional::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDrawable(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), myAttributeCarriers, myGrid, myViewNet, SUMORTree::removeAdditionalGLObject(), GNEFrameAttributesModuls::AttributesEditor::removeEditedAC(), requireSaveAdditionals(), GNEAdditional::unselectAttributeCarrier(), and GNEViewNet::update().
void GNENet::deleteAdditional | ( | GNEAdditional * | additional, |
GNEUndoList * | undoList | ||
) |
remove additional
[in] | additional | The Shape to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 628 of file GNENet.cpp.
References deleteDemandElement(), GNEHierarchicalChildElements::getChildAdditionals(), GNEHierarchicalChildElements::getChildDemandElements(), GNEAttributeCarrier::getTagStr(), GNEChange_Additional, GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by deleteEdge(), deleteLane(), GNEViewNet::deleteSelectedAdditionals(), GNEFixAdditionalElements::onCmdAccept(), GNEChange_Additional::redo(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEChange_Additional::undo(), and GNEChange_Additional::~GNEChange_Additional().
void GNENet::deleteConnection | ( | GNEConnection * | connection, |
GNEUndoList * | undoList | ||
) |
remove connection
[in] | connection | The connection to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 587 of file GNENet.cpp.
References GNEConnection::getEdgeFrom(), GNEEdge::getGNEJunctionDestiny(), GNEConnection::getNBConnection(), GNEConnection::getNBEdgeConnection(), GNEChange_Connection, GNEJunction::invalidateTLS(), GNENetElement::isAttributeCarrierSelected(), GNEJunction::markAsModified(), GNEUndoList::p_begin(), GNEUndoList::p_end(), requireRecompute(), SUMO_TAG_CONNECTION, and toString().
Referenced by GNEConnectorFrame::buildConnection(), clearJunctionConnections(), GNEViewNet::deleteSelectedConnections(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::deleteCrossing | ( | GNECrossing * | crossing, |
GNEUndoList * | undoList | ||
) |
remove crossing
[in] | crossing | The crossing to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 602 of file GNENet.cpp.
References NBNode::Crossing::customShape, NBNode::Crossing::customTLIndex, NBNode::Crossing::customTLIndex2, NBNode::Crossing::edges, GNECrossing::getNBCrossing(), GNECrossing::getParentJunction(), GNENetElement::isAttributeCarrierSelected(), GNEUndoList::p_begin(), GNEUndoList::p_end(), NBNode::Crossing::priority, requireRecompute(), and NBNode::Crossing::width.
Referenced by cleanInvalidCrossings(), deleteJunction(), GNEViewNet::deleteSelectedCrossings(), joinSelectedJunctions(), GNEDeleteFrame::removeAttributeCarrier(), GNEJunction::removeEdgeFromCrossings(), GNEEdge::removeEdgeFromCrossings(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
|
protected |
delete demand element element of GNENet container
processError | if demand element wasn't previously inserted |
Definition at line 2811 of file GNENet.cpp.
References demandElementExist(), GNENet::AttributeCarriers::demandElements, GNEInspectorFrame::getAttributesEditor(), GNEDemandElement::getBegin(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getViewParent(), GNEDemandElement::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDrawable(), GNEAttributeCarrier::TagProperties::isPerson(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), GNEAttributeCarrier::TagProperties::isVehicle(), myAttributeCarriers, myGrid, myViewNet, SUMORTree::removeAdditionalGLObject(), GNEFrameAttributesModuls::AttributesEditor::removeEditedAC(), requireSaveDemandElements(), GNEDemandElement::unselectAttributeCarrier(), GNEViewNet::update(), and GNENet::AttributeCarriers::vehicleDepartures.
void GNENet::deleteDemandElement | ( | GNEDemandElement * | demandElement, |
GNEUndoList * | undoList | ||
) |
remove demand element
[in] | demandElement | The Shape to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 645 of file GNENet.cpp.
References GNEDemandElement::getAttribute(), GNEHierarchicalChildElements::getChildDemandElements(), GNEHierarchicalParentElements::getParentDemandElements(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_DEFAULT_VTYPE, GNEChange_DemandElement, GNEAttributeCarrier::TagProperties::isPersonPlan(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and SUMO_TAG_VTYPE.
Referenced by deleteAdditional(), deleteEdge(), deleteLane(), GNEViewNet::deleteSelectedDemandElements(), GNEFixDemandElements::onCmdAccept(), GNEChange_DemandElement::redo(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNEChange_DemandElement::undo(), and GNEChange_DemandElement::~GNEChange_DemandElement().
void GNENet::deleteEdge | ( | GNEEdge * | edge, |
GNEUndoList * | undoList, | ||
bool | recomputeConnections | ||
) |
removes edge
[in] | edge | The edge to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 430 of file GNENet.cpp.
References deleteAdditional(), deleteDemandElement(), deleteShape(), GNEHierarchicalChildElements::getChildAdditionals(), GNEHierarchicalChildElements::getChildDemandElements(), GNEHierarchicalChildElements::getChildShapes(), GNEJunction::getGNEIncomingEdges(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNEJunction::getGNEOutgoingEdges(), GNEEdge::getLanes(), GNEJunction::getNBNode(), GNEChange_Edge, GNEEdge::invalidatePathChildElementss(), NBNode::isTLControlled(), NODETYPE_PRIORITY, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEJunction::removeConnectionsFrom(), GNEJunction::removeConnectionsTo(), GNEJunction::removeEdgeFromCrossings(), requireRecompute(), GNEJunction::setAttribute(), GNEJunction::setLogicValid(), SUMO_ATTR_TYPE, SUMO_TAG_EDGE, and toString().
Referenced by deleteJunction(), deleteLane(), GNEViewNet::deleteSelectedEdges(), joinSelectedJunctions(), mergeJunctions(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), and reverseEdge().
void GNENet::deleteJunction | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
removes junction and all incident edges
[in] | junction | The junction to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 385 of file GNENet.cpp.
References deleteCrossing(), deleteEdge(), GNENet::AttributeCarriers::edges, NBNode::getEdges(), GNEJunction::getGNECrossings(), GNEJunction::getGNEEdges(), GNEJunction::getJunctionNeighbours(), GNEJunction::getNBNode(), GNEChange_Junction, myAttributeCarriers, NODETYPE_PRIORITY, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEJunction::setAttribute(), SUMO_ATTR_TYPE, SUMO_TAG_JUNCTION, and toString().
Referenced by GNEViewNet::deleteSelectedJunctions(), joinSelectedJunctions(), mergeJunctions(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), removeSolitaryJunctions(), replaceJunctionByGeometry(), and splitJunction().
void GNENet::deleteLane | ( | GNELane * | lane, |
GNEUndoList * | undoList, | ||
bool | recomputeConnections | ||
) |
removes lane
[in] | lane | The lane to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 549 of file GNENet.cpp.
References deleteAdditional(), deleteDemandElement(), deleteEdge(), GNEHierarchicalChildElements::getChildAdditionals(), GNEHierarchicalChildElements::getChildDemandElements(), GNEHierarchicalChildElements::getChildShapes(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNELane::getIndex(), NBEdge::getLaneStruct(), GNEEdge::getNBEdge(), NBEdge::getNumLanes(), GNELane::getParentEdge(), GNEChange_Lane, GNEChange_Shape, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEJunction::removeConnectionsFrom(), GNEJunction::removeConnectionsTo(), requireRecompute(), GNEJunction::setLogicValid(), SUMO_TAG_LANE, and toString().
Referenced by GNEViewNet::deleteSelectedLanes(), GNEDeleteFrame::removeAttributeCarrier(), removeRestrictedLane(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::deleteShape | ( | GNEShape * | shape, |
GNEUndoList * | undoList | ||
) |
remove shape
[in] | shape | The Shape to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 619 of file GNENet.cpp.
References GNEAttributeCarrier::getTagStr(), GNEChange_Shape, GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by deleteEdge(), GNEViewNet::deleteSelectedShapes(), GNEViewNet::onCmdTransformPOI(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
|
private |
deletes a single edge
Definition at line 2975 of file GNENet.cpp.
References GNEReferenceCounter::decRef(), GNENet::AttributeCarriers::edges, NBEdgeCont::extract(), GNEInspectorFrame::getAttributesEditor(), NBNetBuilder::getDistrictCont(), NBNetBuilder::getEdgeCont(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNEViewParent::getInspectorFrame(), GUIGlObject::getMicrosimID(), GNEEdge::getNBEdge(), GNEViewNet::getViewParent(), GNENetElement::isAttributeCarrierSelected(), myAttributeCarriers, myGrid, myNetBuilder, myViewNet, SUMORTree::removeAdditionalGLObject(), GNEFrameAttributesModuls::AttributesEditor::removeEditedAC(), GNEJunction::removeIncomingGNEEdge(), GNEJunction::removeOutgoingGNEEdge(), GNEEdge::setResponsible(), GNENetElement::unselectAttributeCarrier(), and GNEViewNet::update().
Referenced by GNEChange_Edge::redo(), and GNEChange_Edge::undo().
|
private |
deletes a single junction
Definition at line 2954 of file GNENet.cpp.
References GNEReferenceCounter::decRef(), NBNodeCont::extract(), GNEInspectorFrame::getAttributesEditor(), GNEViewParent::getInspectorFrame(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), NBNetBuilder::getNodeCont(), GNEViewNet::getViewParent(), GNENetElement::isAttributeCarrierSelected(), GNENet::AttributeCarriers::junctions, myAttributeCarriers, myGrid, myNetBuilder, myViewNet, SUMORTree::removeAdditionalGLObject(), GNEFrameAttributesModuls::AttributesEditor::removeEditedAC(), GNEJunction::setResponsible(), GNENetElement::unselectAttributeCarrier(), and GNEViewNet::update().
Referenced by GNEChange_Junction::redo(), and GNEChange_Junction::undo().
|
protected |
return true if demand element exist (use pointer instead ID)
Definition at line 2765 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and myAttributeCarriers.
Referenced by deleteDemandElement(), insertDemandElement(), and GNEChange_DemandElement::~GNEChange_DemandElement().
void GNENet::disableUpdateGeometry | ( | ) |
disable update geometry of elements after inserting or removing an element in net
Definition at line 2682 of file GNENet.cpp.
References myUpdateGeometryEnabled.
Referenced by GNEAdditionalHandler::buildTAZ(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 212 of file GNENet.cpp.
|
virtualinherited |
Draws additional, user-triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented in GUIPerson, GUIContainer, and GUIBaseVehicle.
Definition at line 186 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
|
inherited |
draw name of item
Definition at line 354 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), GUIGlObject::getMicrosimID(), and GUIVisualizationTextSettings::show.
Referenced by GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEJunction::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), and GNEEdge::drawPartialTripFromTo().
void GNENet::duplicateLane | ( | GNELane * | lane, |
GNEUndoList * | undoList, | ||
bool | recomputeConnections | ||
) |
duplicates lane
[in] | lane | The lane to be duplicated |
[in] | undoList | The undolist in which to mark changes |
Definition at line 674 of file GNENet.cpp.
References GNEEdge::getGNEJunctionSource(), GNELane::getIndex(), NBEdge::getLaneStruct(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEChange_Lane, GNEUndoList::p_begin(), GNEUndoList::p_end(), requireRecompute(), GNEJunction::setLogicValid(), SUMO_TAG_LANE, and toString().
Referenced by addRestrictedLane(), GNEViewNet::onCmdDuplicateLane(), and splitJunction().
void GNENet::enableUpdateGeometry | ( | ) |
Definition at line 2676 of file GNENet.cpp.
References myUpdateGeometryEnabled.
Referenced by GNEAdditionalHandler::buildTAZ(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
std::string GNENet::generateAdditionalID | ( | SumoXMLTag | type | ) | const |
generate additional id
Definition at line 2306 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, myAttributeCarriers, and toString().
Referenced by GNETAZFrame::shapeDrawed().
std::string GNENet::generateDemandElementID | ( | const std::string & | prefix, |
SumoXMLTag | type | ||
) | const |
generate demand element id
Definition at line 2461 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, myAttributeCarriers, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTEFLOW, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, and toString().
Referenced by GNEVehicleFrame::addVehicle(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNERouteHandler::closeRoute(), GNEVehicleFrame::edgePathCreated(), GNEStopFrame::getStopParameter(), and GNECalibratorDialog::onCmdAddVehicleType().
std::string GNENet::generateShapeID | ( | SumoXMLTag | shapeTag | ) | const |
generate Shape ID
Definition at line 2597 of file GNENet.cpp.
References NamedObjectCont< T >::get(), ShapeContainer::myPOIs, ShapeContainer::myPolygons, SUMO_TAG_POLY, and toString().
Referenced by GNEPolygonFrame::processClick(), and GNEPolygonFrame::shapeDrawed().
FXApp * GNENet::getApp | ( | ) |
get pointer to the main App
Definition at line 1586 of file GNENet.cpp.
References myViewNet.
Referenced by cleanInvalidCrossings(), and joinSelectedJunctions().
const GNENet::AttributeCarriers & GNENet::getAttributeCarriers | ( | ) | const |
retrieve all attribute carriers of Net
Definition at line 1063 of file GNENet.cpp.
References myAttributeCarriers.
Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNESelectorFrame::clearCurrentSelection(), GNECalibratorDialog::onCmdAddFlow(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEViewParent::onCmdLocate(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateRouteTable(), and GNECalibratorDialog::updateVehicleTypeTable().
const Boundary & GNENet::getBoundary | ( | ) | const |
returns the bounder of the network
Definition at line 185 of file GNENet.cpp.
References myGrid.
Referenced by getCenteringBoundary(), and GNEVehicle::setColor().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 289 of file GNENet.cpp.
References getBoundary().
|
inlinevirtualinherited |
Reimplemented in GUIBaseVehicle, GNELane, GNEJunction, GUIMEVehicle, GUIVehicle, GUIPerson, GUILane, GUIJunctionWrapper, GUIEdge, and GUIContainer.
Definition at line 150 of file GUIGlObject.h.
Referenced by GNEPerson::drawGL(), GNEPerson::setColor(), and GUISUMOAbstractView::showToolTipFor().
NBEdgeCont & GNENet::getEdgeCont | ( | ) |
returns the NBEdgeCont of the underlying netbuilder
Definition at line 2153 of file GNENet.cpp.
References NBNetBuilder::getEdgeCont(), and myNetBuilder.
Referenced by GNEViewNet::getEdgeLaneParamKeys(), and GNETLSEditorFrame::parseTLSPrograms().
|
inherited |
Definition at line 137 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUICalibrator::openManipulator(), GUILaneSpeedTrigger::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObjectStorage::remove(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), and GUISelectedStorage::save().
|
inherited |
Returns the numerical id of the object.
Definition at line 149 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEEdge::drawEdgeName(), GNEEdge::drawGeometryPoints(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIPerson::getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GNEPOI::getGlID(), GNEPoly::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIEdge::getScaleValue(), GUITransportableControl::insertPersonIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), GUILane::isLaneOrEdgeSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUIPerson::isSelected(), GUIVehicle::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIViewTraffic::onCmdShowReachability(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::onCmdTrack(), GUIViewTraffic::onGamingClick(), TraCIServerAPI_GUI::processSet(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNEAdditional::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEVehicleType::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNEAdditional::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GNEVehicleType::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 163 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEAdditional::changeAdditionalID(), GNEDemandElement::changeDemandElementID(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), deleteSingleEdge(), deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNEDemandElement::getDemandElementID(), GUIDialog_GLObjChooser::getObjectName(), GNEDialogACChooser::getObjectName(), GNEDetector::getParentName(), GNEDetectorE3::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNEVariableSpeedSign::getParentName(), GNEPerson::getParentName(), GNEPersonTrip::getParentName(), GNERide::getParentName(), GNERoute::getParentName(), GNEVehicleType::getParentName(), GNEWalk::getParentName(), GNELane::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), registerEdge(), registerJunction(), SUMORTree::removeAdditionalGLObject(), GNEEdge::removeConnection(), GNEEdge::setAttribute(), splitEdge(), and GNEConnection::updateID().
NBNetBuilder * GNENet::getNetBuilder | ( | ) | const |
get net builder
Definition at line 1592 of file GNENet.cpp.
References myNetBuilder.
Referenced by GNEJunction::rebuildGNECrossings(), GNEChange_Crossing::redo(), GNEDemandElement::RouteCalculator::RouteCalculator(), GNEJunction::setAttribute(), and GNEChange_Crossing::undo().
int GNENet::getNumberOfAdditionals | ( | SumoXMLTag | type = SUMO_TAG_NOTHING | ) | const |
Returns the number of additionals of the net.
[in] | type | type of additional to count. SUMO_TAG_NOTHING will count all additionals |
Definition at line 2210 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, myAttributeCarriers, and SUMO_TAG_NOTHING.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEAdditionalFrame::generateID(), and GNEApplicationWindow::onCmdOpenSUMOGUI().
int GNENet::getNumberOfDemandElements | ( | SumoXMLTag | type = SUMO_TAG_NOTHING | ) | const |
Returns the number of demand elements of the net.
[in] | type | type of demand element to count. SUMO_TAG_NOTHING will count all demand elements |
Definition at line 2343 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, myAttributeCarriers, and SUMO_TAG_NOTHING.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), and GNEApplicationWindow::onCmdOpenSUMOGUI().
int GNENet::getNumberOfShapes | ( | ) | const |
get number of shapes
Definition at line 2640 of file GNENet.cpp.
References ShapeContainer::myPOIs, ShapeContainer::myPolygons, and NamedObjectCont< T >::size().
int GNENet::getNumberOfTLSPrograms | ( | ) | const |
get number of TLS Programs
Definition at line 2671 of file GNENet.cpp.
|
virtualinherited |
Returns the name of the object (default "")
Reimplemented in GNEEdge, GUIParkingArea, GUIJunctionWrapper, GUIEdge, GUIContainerStop, GUIChargingStation, GUIBusStop, and GUIBaseVehicle.
Definition at line 168 of file GUIGlObject.cpp.
Referenced by GUIDialog_GLObjChooser::getObjectName().
|
virtual |
Returns an own parameter window.
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Implements GUIGlObject.
Definition at line 202 of file GNENet.cpp.
References GUIParameterTableWindow::closeBuilding().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNELane, GNEWalk, GNEVehicleType, GNEVehicle, GNEStop, GNERoute, GNERide, GNEPersonTrip, GNEPerson, GNEVariableSpeedSignStep, GNEVariableSpeedSign, GNEVaporizer, GNETAZSourceSink, GNETAZ, GNEStoppingPlace, GNERouteProbReroute, GNERouteProbe, GNERerouterInterval, GNERerouter, GNEPoly, GNEPOI, GNEParkingSpace, GNEParkingAreaReroute, GNEDetectorE3, GNEDetector, GNEDestProbReroute, GNEClosingReroute, GNEClosingLaneReroute, GNECalibratorFlow, GNECalibrator, GNEAccess, and GUILane.
Definition at line 143 of file GUIGlObject.cpp.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
|
inlineinherited |
Returns all pois.
Definition at line 154 of file ShapeContainer.h.
References ShapeContainer::myPOIs.
Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), ShapeHandler::addPOI(), GNESelectorFrame::clearCurrentSelection(), GNEPOI::generateChildID(), libsumo::POI::getIDList(), libsumo::POI::getPoI(), GUIShapeContainer::getPOIIds(), libsumo::POI::getTree(), GNEViewParent::onCmdLocate(), GNEAdditionalHandler::parseAndBuildPOI(), and retrieveShapes().
|
inlineinherited |
Returns all polygons.
Definition at line 149 of file ShapeContainer.h.
References ShapeContainer::myPolygons.
Referenced by GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), ShapeHandler::addPoly(), GNESelectorFrame::clearCurrentSelection(), libsumo::Polygon::exists(), GNEPoly::generateChildID(), libsumo::Polygon::getIDList(), libsumo::Polygon::getPolygon(), GUIShapeContainer::getPolygonIDs(), libsumo::Polygon::getTree(), PCLoaderDlrNavteq::loadPolyFile(), GNEViewParent::onCmdLocate(), GNEAdditionalHandler::parseAndBuildPoly(), retrieveShapes(), and NWWriter_OpenDrive::writeRoadObjects().
|
virtual |
Returns an own popup-menu.
[in] | app | The application needed to build the popup-menu |
[in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 192 of file GNENet.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildPopupHeader(), and GUIGlObject::buildPositionCopyEntry().
std::vector< GNEAttributeCarrier * > GNENet::getSelectedAttributeCarriers | ( | bool | ignoreCurrentSupermode | ) |
get all selected attribute carriers (or only relative to current supermode
Definition at line 2123 of file GNENet.cpp.
References GNEViewNetHelper::EditModes::currentSupermode, GNEViewNet::getEditModes(), GUISelectedStorage::getSelected(), GNEAttributeCarrier::getTagProperty(), GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, gSelected, GNEAttributeCarrier::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDemandElement(), myViewNet, and retrieveAttributeCarrier().
Referenced by GNESelectorFrame::handleIDs(), GNEInspectorFrame::inspectSingleElement(), and GNEDeleteFrame::show().
NBTrafficLightLogicCont & GNENet::getTLLogicCont | ( | ) |
returns the tllcont of the underlying netbuilder
Definition at line 2147 of file GNENet.cpp.
References NBNetBuilder::getTLLogicCont(), and myNetBuilder.
Referenced by GNEJunction::addTrafficLight(), computeJunction(), GNETLSEditorFrame::onCmdDefSwitch(), GNETLSEditorFrame::parseTLSPrograms(), GNEJunction::removeTrafficLight(), replaceIncomingEdge(), saveTLSPrograms(), and GNEJunction::setAttribute().
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 180 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNECalibrator::drawCalibratorSymbol(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNEJunction::drawTLSIcon(), GNELane::drawVSSSymbol(), GNEViewNet::getAttributeCarriersInBoundary(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_GLObjChooser::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), GNEPerson::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNEPerson::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), and GNENetElement::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 GUIBaseVehicle, GUIMEVehicle, GUIVehicle, GUIPerson, and GUIContainer.
Definition at line 155 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
GNEViewNet * GNENet::getViewNet | ( | ) | const |
get view net
Definition at line 2117 of file GNENet.cpp.
References myViewNet.
Referenced by GNEPoly::changeFirstGeometryPoint(), GNEPoly::closePolygon(), GNEPoly::commitShapeChange(), GNEEdge::commitShapeChange(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEPoly::deleteGeometryPoint(), GNEEdge::deleteGeometryPoint(), GNEShape::draw(), GNEEdge::drawGeometryPoints(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEEdge::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GNEJunction::drawJunctionChilds(), GNELane::drawMarkings(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNEJunction::drawTLSIcon(), GNEShape::drawUsingSelectColor(), GNENetElement::drawUsingSelectColor(), GNELane::drawVSSSymbol(), GNEEdge::editEndpoint(), GNEJunction::getColorValue(), GNEPerson::getHierarchyName(), GNEVehicle::getHierarchyName(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEPoly::getVertexIndex(), GNEEdge::getVertexIndex(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GNEPOI::isAttributeEnabled(), GNEPoly::isAttributeEnabled(), GNEPOI::moveGeometry(), GNEJunction::moveGeometry(), GNEEdge::moveShapeEnd(), GNEEdge::moveShapeStart(), GNEPoly::moveVertexShape(), GNEEdge::moveVertexShape(), GNEApplicationWindow::onCmdOpenAdditionals(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNELane::onDefault(), GNEPoly::openPolygon(), GNEChange_Crossing::redo(), GNEChange_DemandElement::redo(), GNEShape::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GNELane::setLaneColor(), GNEPoly::simplifyShape(), GNEChange_Crossing::undo(), GNEChange_DemandElement::undo(), GNEShape::unselectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), and GNELane::updateGeometry().
SUMORTree & GNENet::getVisualisationSpeedUp | ( | ) |
Returns the RTree used for visualisation speed-up.
Definition at line 301 of file GNENet.cpp.
References myGrid.
Referenced by GNETLSEditorFrame::buildIinternalLanes().
const SUMORTree & GNENet::getVisualisationSpeedUp | ( | ) | const |
Returns the RTree used for visualisation speed-up.
Definition at line 307 of file GNENet.cpp.
References myGrid.
const Boundary & GNENet::getZBoundary | ( | ) | const |
Returns the Z boundary (stored in the x() coordinate) values of 0 do not affect the boundary.
Definition at line 295 of file GNENet.cpp.
References myZBoundary.
void GNENet::initGNEConnections | ( | ) |
initialize GNEConnections
Definition at line 3081 of file GNENet.cpp.
References GNENet::AttributeCarriers::edges, and myAttributeCarriers.
Referenced by GNEViewNet::onCmdToogleShowConnections().
|
private |
Init Junctions and edges.
Definition at line 2853 of file GNENet.cpp.
References Boundary::add(), GNENet::AttributeCarriers::edges, NBEdgeCont::getAllNames(), NBNodeCont::getAllNames(), NBNetBuilder::getEdgeCont(), Boundary::getHeight(), NBNetBuilder::getNodeCont(), Boundary::getWidth(), myAttributeCarriers, myGrid, myNetBuilder, registerEdge(), registerJunction(), NBNodeCont::retrieve(), NBEdgeCont::retrieve(), and NBNodesEdgesSorter::sortNodesEdges().
Referenced by computeAndUpdate().
|
protected |
Insert a additional element int GNENet container.
processError | if route was already inserted |
Definition at line 2709 of file GNENet.cpp.
References SUMORTree::addAdditionalGLObject(), additionalExist(), GNENet::AttributeCarriers::additionals, GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAdditional::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDrawable(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), myAttributeCarriers, myGrid, myUpdateGeometryEnabled, requireSaveAdditionals(), GNEAdditional::selectAttributeCarrier(), and GNEAdditional::updateGeometry().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEChange_Additional::redo(), and GNEChange_Additional::undo().
|
protected |
Insert a demand element element int GNENet container.
processError | if route was already inserted |
Definition at line 2777 of file GNENet.cpp.
References SUMORTree::addAdditionalGLObject(), demandElementExist(), GNENet::AttributeCarriers::demandElements, GNEDemandElement::getBegin(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEDemandElement::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isDrawable(), GNEAttributeCarrier::TagProperties::isPerson(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), GNEAttributeCarrier::TagProperties::isVehicle(), myAttributeCarriers, myGrid, myUpdateGeometryEnabled, requireSaveDemandElements(), GNEDemandElement::selectAttributeCarrier(), GNEDemandElement::updateGeometry(), and GNENet::AttributeCarriers::vehicleDepartures.
Referenced by GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonTripBusStop(), GNERouteHandler::buildPersonTripFromTo(), GNERouteHandler::buildRideBusStop(), GNERouteHandler::buildRideFromTo(), GNERouteHandler::buildStop(), GNERouteHandler::buildTrip(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNERouteHandler::buildWalkBusStop(), GNERouteHandler::buildWalkEdges(), GNERouteHandler::buildWalkFromTo(), GNERouteHandler::buildWalkRoute(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNEChange_DemandElement::redo(), and GNEChange_DemandElement::undo().
|
private |
inserts a single edge into the net and into the underlying netbuild-container
Definition at line 2896 of file GNENet.cpp.
References NBNode::addIncomingEdge(), NBNode::addOutgoingEdge(), NBNetBuilder::getEdgeCont(), NBEdge::getFromNode(), GNEEdge::getNBEdge(), NBEdge::getToNode(), NBEdgeCont::insert(), myNetBuilder, and registerEdge().
Referenced by GNEChange_Edge::redo(), and GNEChange_Edge::undo().
|
private |
inserts a single junction into the net and into the underlying netbuild-container
Definition at line 2889 of file GNENet.cpp.
References GNEJunction::getNBNode(), NBNetBuilder::getNodeCont(), NBNodeCont::insert(), myNetBuilder, and registerJunction().
Referenced by GNEChange_Junction::redo(), and GNEChange_Junction::undo().
|
private |
insert shape
Definition at line 3000 of file GNENet.cpp.
References NamedObjectCont< T >::add(), SUMORTree::addAdditionalGLObject(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEShape::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), myGrid, ShapeContainer::myPOIs, ShapeContainer::myPolygons, myViewNet, requireSaveAdditionals(), GNEShape::selectAttributeCarrier(), SUMO_TAG_POLY, GNEViewNet::update(), and GNEShape::updateGeometry().
Referenced by addPOI(), addPolygon(), GNEChange_Shape::redo(), and GNEChange_Shape::undo().
bool GNENet::isAdditionalsSaved | ( | ) | const |
check if additionals are saved
Definition at line 2300 of file GNENet.cpp.
References myAdditionalsSaved.
Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveAdditionals().
bool GNENet::isDemandElementsSaved | ( | ) | const |
check if demand elements are saved
Definition at line 2455 of file GNENet.cpp.
References myDemandElementsSaved.
Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveDemandElements().
bool GNENet::isNetSaved | ( | ) | const |
return if net has to be saved
Definition at line 994 of file GNENet.cpp.
References myNetSaved.
Referenced by GNEApplicationWindow::continueWithUnsavedChanges(), and GNEApplicationWindow::onCmdOpenSUMOGUI().
bool GNENet::isUpdateGeometryEnabled | ( | ) | const |
check if update geometry after inserting or removing has to be updated
Definition at line 2688 of file GNENet.cpp.
References myUpdateGeometryEnabled.
void GNENet::joinRoutes | ( | GNEUndoList * | undoList | ) |
join routes
Definition at line 1833 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, GNEChange_DemandElement, myAttributeCarriers, myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEAttributeCarrier::parseIDs(), SUMO_ATTR_ROUTE, SUMO_TAG_ROUTE, and GNEViewNet::update().
Referenced by GNEApplicationWindow::onCmdProcessButton().
bool GNENet::joinSelectedJunctions | ( | GNEUndoList * | undoList | ) |
join selected junctions
Definition at line 1598 of file GNENet.cpp.
References NBNodeCont::analyzeCluster(), checkJunctionPosition(), createJunction(), deleteCrossing(), deleteEdge(), deleteJunction(), GNENet::AttributeCarriers::edges, getApp(), GNEEdge::getGNEJunctionDestiny(), GNEAttributeCarrier::getID(), GNECrossing::getNBCrossing(), GNEJunction::getNBNode(), NBNetBuilder::getNodeCont(), GNE_ATTR_SELECTED, NBNode::isTLControlled(), GNENet::AttributeCarriers::junctions, myAttributeCarriers, myNetBuilder, NODETYPE_UNKNOWN, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), NBNodeCont::registerJoinedCluster(), retrieveJunctions(), GNEJunction::setAttribute(), Position::setx(), Position::sety(), SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_TLTYPE, SUMO_ATTR_TO, SUMO_ATTR_TYPE, SUMO_TAG_JUNCTION, toString(), WRITE_DEBUG, Position::x(), and Position::y().
Referenced by GNEApplicationWindow::onCmdProcessButton().
void GNENet::mergeJunctions | ( | GNEJunction * | moved, |
GNEJunction * | target, | ||
GNEUndoList * | undoList | ||
) |
merge the given junctions edges between the given junctions will be deleted
[in] | moved | The junction that will be eliminated |
[in] | target | The junction that will be enlarged |
[in] | undoList | The undo list with which to register changes |
Definition at line 935 of file GNENet.cpp.
References deleteEdge(), deleteJunction(), GNENet::AttributeCarriers::edges, GNEJunction::getAttribute(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNEAttributeCarrier::getID(), NBNode::getIncomingEdges(), GNEJunction::getNBNode(), NBNode::getOutgoingEdges(), myAttributeCarriers, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEJunction::setAttribute(), SUMO_ATTR_FROM, SUMO_ATTR_POSITION, SUMO_ATTR_TO, SUMO_TAG_JUNCTION, and toString().
Referenced by GNEViewNet::mergeJunctions().
|
virtualinherited |
Assigns a new position to the named PoI.
[in] | id | The id of the PoI to move |
[in] | pos | The PoI's new position |
Reimplemented in GUIShapeContainer.
Definition at line 169 of file ShapeContainer.cpp.
References NamedObjectCont< T >::get(), and ShapeContainer::myPOIs.
Referenced by libsumo::POI::setPosition().
bool GNENet::netHasGNECrossings | ( | ) | const |
check if net has GNECrossings
Definition at line 1575 of file GNENet.cpp.
References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.
Referenced by GNEChange_Crossing::redo(), and GNEChange_Crossing::undo().
|
inlinevirtualinherited |
notify object about left click
Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.
Definition at line 165 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::onLeftBtnPress().
|
virtualinherited |
Regular update event for updating polygon dynamics.
[in] | t | The time at which the update is called |
[in] | pd | The dynamics to be updated |
Reimplemented in GUIShapeContainer.
Definition at line 217 of file ShapeContainer.cpp.
References PolygonDynamics::getPolygonID(), ShapeContainer::myPolygonUpdateCommands, ShapeContainer::removePolygon(), and PolygonDynamics::update().
Referenced by libsumo::Polygon::addDynamics(), and GUIShapeContainer::polygonDynamicsUpdate().
registers an edge with GNENet containers
Definition at line 2932 of file GNENet.cpp.
References Boundary::add(), SUMORTree::addAdditionalGLObject(), GNEJunction::addIncomingGNEEdge(), GNEJunction::addOutgoingGNEEdge(), GNENet::AttributeCarriers::edges, GNEEdge::getCenteringBoundary(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GUIGlObject::getMicrosimID(), GNEReferenceCounter::incRef(), GNENetElement::isAttributeCarrierSelected(), myAttributeCarriers, myGrid, GNENetElement::selectAttributeCarrier(), GNEEdge::setResponsible(), and update().
Referenced by initJunctionsAndEdges(), and insertEdge().
|
virtualinherited |
register highlight of the specified type if the given id
Definition at line 229 of file ShapeContainer.cpp.
References ShapeContainer::clearHighlight(), ShapeContainer::myHighlightedObjects, ShapeContainer::myHighlightPolygons, and ShapeContainer::removePolygon().
Referenced by libsumo::Polygon::addHighlightPolygon().
|
private |
registers a junction with GNENet containers
Definition at line 2907 of file GNENet.cpp.
References Boundary::add(), SUMORTree::addAdditionalGLObject(), GNEJunction::getCenteringBoundary(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), NBNode::getPosition(), GNEReferenceCounter::incRef(), GNENetElement::isAttributeCarrierSelected(), GNENet::AttributeCarriers::junctions, myAttributeCarriers, myGrid, myZBoundary, GNENetElement::selectAttributeCarrier(), GNEJunction::setResponsible(), update(), GNEJunction::updateGeometry(), Position::z(), and Z_INITIALIZED.
Referenced by initJunctionsAndEdges(), and insertJunction().
|
inlinevirtualinherited |
remove additional user-griggered visualisations
Reimplemented in GUIPerson, and GUIBaseVehicle.
Definition at line 162 of file GUIGlObject.h.
|
inlinevirtualinherited |
notify object about popup menu removal
Reimplemented in GUIBaseVehicle.
Definition at line 111 of file GUIGlObject.h.
Referenced by GUIGLObjectPopupMenu::~GUIGLObjectPopupMenu().
void GNENet::removeExplicitTurnaround | ( | std::string | id | ) |
remove edge id from the list of explicit turnarounds
Definition at line 2177 of file GNENet.cpp.
References myExplicitTurnarounds.
Referenced by GNEEdge::removeConnection().
void GNENet::removeGLObjectFromGrid | ( | GUIGlObject * | o | ) |
add GL Object into net
Definition at line 1328 of file GNENet.cpp.
References myGrid, and SUMORTree::removeAdditionalGLObject().
Referenced by GNEEdge::addLane(), GNEPoly::deleteGeometryPoint(), GNETAZ::deleteGeometryPoint(), GNEAdditional::endGeometryMoving(), GNEPoly::endGeometryMoving(), GNEEdge::endGeometryMoving(), GNEJunction::endGeometryMoving(), GNEJunction::invalidateShape(), GNEEdge::removeLane(), GNEDetectorE3::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingSpace::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNERerouter::setAttribute(), GNETAZ::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNELane::setAttribute(), GNEEdge::setNumLanes(), GNEParkingArea::updateGeometry(), and GNEChange_Shape::~GNEChange_Shape().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 293 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
virtualinherited |
Removes a PoI from the container.
[in] | id | The id of the PoI |
Reimplemented in GUIShapeContainer.
Definition at line 163 of file ShapeContainer.cpp.
References ShapeContainer::myPOIs, and NamedObjectCont< T >::remove().
Referenced by libsumo::POI::remove(), GNEChange_Attribute::~GNEChange_Attribute(), and GNEChange_EnableAttribute::~GNEChange_EnableAttribute().
|
virtualinherited |
Removes a polygon from the container.
[in] | id | The id of the polygon |
Reimplemented in GUIShapeContainer.
Definition at line 153 of file ShapeContainer.cpp.
References ShapeContainer::myPolygons, NamedObjectCont< T >::remove(), and ShapeContainer::removePolygonDynamics().
Referenced by ShapeContainer::polygonDynamicsUpdate(), ShapeContainer::registerHighlight(), libsumo::Polygon::remove(), GUIShapeContainer::removePolygon(), ShapeContainer::removeTrackers(), GNEChange_Attribute::~GNEChange_Attribute(), and GNEChange_EnableAttribute::~GNEChange_EnableAttribute().
|
virtualinherited |
Remove dynamics (animation / tracking) for the given polygon.
polyID | ID of the polygon for which dynamics shall be removed |
Definition at line 113 of file ShapeContainer.cpp.
References ShapeContainer::cleanupPolygonDynamics(), ShapeContainer::clearHighlights(), NamedObjectCont< T >::get(), ShapeContainer::myPolygonDynamics, ShapeContainer::myPolygons, and ShapeContainer::myTrackingPolygons.
Referenced by ShapeContainer::addPolygonDynamics(), and ShapeContainer::removePolygon().
void GNENet::removePolygonForEditShapes | ( | GNEPoly * | polygon | ) |
remove Polygon for edit shapes
Definition at line 2583 of file GNENet.cpp.
References GNEInspectorFrame::getAttributesEditor(), GNEViewParent::getInspectorFrame(), GNEViewNet::getViewParent(), myGrid, myViewNet, SUMORTree::removeAdditionalGLObject(), GNEFrameAttributesModuls::AttributesEditor::removeEditedAC(), and GNEViewNet::update().
bool GNENet::removeRestrictedLane | ( | SUMOVehicleClass | vclass, |
GNEEdge * | edge, | ||
GNEUndoList * | undoList | ||
) |
remove restricted lane
[in] | vclass | vehicle class to restrict |
[in] | edge | the edge in which remove sidewalk |
[in] | undoList | The undolist in which to mark changes |
Definition at line 756 of file GNENet.cpp.
References deleteLane(), and GNEEdge::getLanes().
Referenced by GNEViewNet::removeRestrictedLane().
|
private |
remove created shape (but NOT delete)
Definition at line 3032 of file GNENet.cpp.
References GNEInspectorFrame::getAttributesEditor(), GNEAttributeCarrier::getID(), GNEViewParent::getInspectorFrame(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEViewNet::getViewParent(), GNEShape::isAttributeCarrierSelected(), GNEAttributeCarrier::TagProperties::isPlacedInRTree(), myGrid, ShapeContainer::myPOIs, ShapeContainer::myPolygons, myViewNet, NamedObjectCont< T >::remove(), SUMORTree::removeAdditionalGLObject(), GNEFrameAttributesModuls::AttributesEditor::removeEditedAC(), requireSaveAdditionals(), SUMO_TAG_POLY, GNEShape::unselectAttributeCarrier(), and GNEViewNet::update().
Referenced by GNEChange_Shape::redo(), and GNEChange_Shape::undo().
void GNENet::removeSolitaryJunctions | ( | GNEUndoList * | undoList | ) |
removes junctions that have no edges
Definition at line 1788 of file GNENet.cpp.
References deleteJunction(), NBNode::getEdges(), GNEJunction::getNBNode(), GNENet::AttributeCarriers::junctions, myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_JUNCTION, and toString().
Referenced by GNEApplicationWindow::onCmdProcessButton().
|
virtualinherited |
Remove all tracking polygons for the given object.
Definition at line 286 of file ShapeContainer.cpp.
References ShapeContainer::myTrackingPolygons, and ShapeContainer::removePolygon().
Referenced by MSDynamicShapeUpdater::vehicleStateChanged().
void GNENet::renameEdge | ( | GNEEdge * | edge, |
const std::string & | newID | ||
) |
updates the map and reserves new id
Definition at line 2094 of file GNENet.cpp.
References GNENet::AttributeCarriers::edges, NBNetBuilder::getEdgeCont(), NBEdge::getID(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), myAttributeCarriers, myNetBuilder, NBEdgeCont::rename(), and GNEEdge::setMicrosimID().
Referenced by GNEEdge::setAttribute().
void GNENet::renameJunction | ( | GNEJunction * | junction, |
const std::string & | newID | ||
) |
updates the map and reserves new id
Definition at line 2159 of file GNENet.cpp.
References NBNode::buildCrossings(), GNEAttributeCarrier::getID(), Named::getID(), GNEJunction::getNBNode(), NBNetBuilder::getNodeCont(), GNENet::AttributeCarriers::junctions, myAttributeCarriers, myNetBuilder, NBNodeCont::rename(), and GUIGlObject::setMicrosimID().
Referenced by GNEJunction::setAttribute().
void GNENet::replaceIncomingEdge | ( | GNEEdge * | which, |
GNEEdge * | by, | ||
GNEUndoList * | undoList | ||
) |
replaces edge
[in] | which | The edge to be replaced |
[in] | by | The replacement edge |
[in] | undoList | The undolist in which to mark changes |
Definition at line 493 of file GNENet.cpp.
References GNEEdge::getAttribute(), GNEHierarchicalChildElements::getChildAdditionals(), GNEHierarchicalChildElements::getChildDemandElements(), NBEdge::getConnections(), GNEJunction::getGNECrossings(), GNEEdge::getGNEJunctionDestiny(), GNEAttributeCarrier::getID(), NBEdge::getLaneID(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), GNEHierarchicalParentElements::getParentAdditionals(), getTLLogicCont(), GNEChange_Connection, GNEChange_Edge, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), replaceInListAttribute(), SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_LANE, SUMO_ATTR_TO, SUMO_TAG_EDGE, and toString().
Referenced by replaceJunctionByGeometry().
|
staticprivate |
Definition at line 3252 of file GNENet.cpp.
References GNEAttributeCarrier::getAttribute(), GNEAttributeCarrier::TagProperties::getAttributeProperties(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::AttributeProperties::isList(), GNEAttributeCarrier::setAttribute(), and toString().
Referenced by replaceIncomingEdge().
void GNENet::replaceJunctionByGeometry | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
replace the selected junction by geometry node(s) and merge the edges
Definition at line 1940 of file GNENet.cpp.
References PositionVector::append(), NBNode::checkIsRemovable(), clearJunctionConnections(), deleteJunction(), GNENet::AttributeCarriers::edges, GNEEdge::getAttribute(), NBEdge::getConnections(), NBNode::getEdgesToJoin(), NBEdge::getGeometry(), NBEdge::getInnerGeometry(), GNEEdge::getNBEdge(), GNEJunction::getNBNode(), NBNode::getPosition(), NBEdge::getToNode(), GNE_ATTR_SHAPE_END, GNEChange_Connection, NBEdge::hasDefaultGeometryEndpointAtNode(), myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), PositionVector::push_back_noDoublePos(), replaceIncomingEdge(), NBEdge::resetNodeBorder(), GNEEdge::setAttribute(), SUMO_ATTR_ENDOFFSET, SUMO_ATTR_SHAPE, and toString().
Referenced by GNEViewNet::onCmdReplaceJunction().
void GNENet::requireRecompute | ( | ) |
inform the net about the need for recomputation
Definition at line 1569 of file GNENet.cpp.
References myNeedRecompute.
Referenced by changeEdgeEndpoints(), createEdge(), deleteConnection(), deleteCrossing(), deleteEdge(), deleteLane(), duplicateLane(), GNEJunction::invalidateShape(), and GNEViewNet::onCmdToogleShowConnections().
void GNENet::requireSaveAdditionals | ( | bool | value | ) |
inform that additionals has to be saved
Definition at line 2236 of file GNENet.cpp.
References GNEApplicationWindow::disableSaveAdditionalsMenu(), GNEApplicationWindow::enableSaveAdditionalsMenu(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myAdditionalsSaved, myDemandElementsSaved, myNetSaved, myViewNet, and WRITE_DEBUG.
Referenced by deleteAdditional(), insertAdditional(), insertShape(), GNEChange_Additional::redo(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), removeShape(), GNEChange_Additional::undo(), GNEChange_Attribute::undo(), GNEChange_EnableAttribute::undo(), and updateAdditionalID().
void GNENet::requireSaveDemandElements | ( | bool | value | ) |
inform that demand elements has to be saved
Definition at line 2392 of file GNENet.cpp.
References GNEApplicationWindow::disableSaveDemandElementsMenu(), GNEApplicationWindow::enableSaveDemandElementsMenu(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myAdditionalsSaved, myDemandElementsSaved, myNetSaved, myViewNet, and WRITE_DEBUG.
Referenced by deleteDemandElement(), insertDemandElement(), GNEChange_Attribute::redo(), GNEChange_Children::redo(), GNEChange_DemandElement::redo(), GNEChange_EnableAttribute::redo(), GNEChange_Attribute::undo(), GNEChange_Children::undo(), GNEChange_DemandElement::undo(), GNEChange_EnableAttribute::undo(), and updateDemandElementID().
void GNENet::requireSaveNet | ( | bool | value | ) |
inform that net has to be saved
Definition at line 982 of file GNENet.cpp.
References myAdditionalsSaved, myDemandElementsSaved, myNetSaved, and WRITE_DEBUG.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), GNEChange_Attribute::redo(), GNEChange_Connection::redo(), GNEChange_Crossing::redo(), GNEChange_Edge::redo(), GNEChange_EnableAttribute::redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_TLS::redo(), GNEChange_Attribute::undo(), GNEChange_Connection::undo(), GNEChange_Crossing::undo(), GNEChange_Edge::undo(), GNEChange_EnableAttribute::undo(), GNEChange_Junction::undo(), GNEChange_Lane::undo(), and GNEChange_TLS::undo().
void GNENet::requireSaveTLSPrograms | ( | ) |
Definition at line 2646 of file GNENet.cpp.
References GNEApplicationWindow::enableSaveTLSProgramsMenu(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myTLSProgramsSaved, myViewNet, and WRITE_DEBUG.
|
private |
reserve edge ID (To avoid duplicates)
Definition at line 3069 of file GNENet.cpp.
References IDSupplier::avoid(), and myEdgeIDSupplier.
Referenced by createEdge().
|
private |
reserve junction ID (To avoid duplicates)
Definition at line 3075 of file GNENet.cpp.
References IDSupplier::avoid(), and myJunctionIDSupplier.
void GNENet::resetJunctionConnections | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
reset junction's connections
Definition at line 2083 of file GNENet.cpp.
References clearJunctionConnections(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNEJunction::setLogicValid().
Referenced by GNEViewNet::onCmdResetConnections().
|
virtualinherited |
Assigns a shape to the named polygon.
[in] | id | The id of the polygon to reshape |
[in] | shape | The polygon's new shape |
Reimplemented in GUIShapeContainer.
Definition at line 178 of file ShapeContainer.cpp.
References NamedObjectCont< T >::get(), ShapeContainer::myPolygons, and SUMOPolygon::setShape().
Referenced by libsumo::Polygon::setShape().
bool GNENet::restrictLane | ( | SUMOVehicleClass | vclass, |
GNELane * | lane, | ||
GNEUndoList * | undoList | ||
) |
transform lane to restricted lane
[in] | vclass | vehicle class to restrict |
[in] | lane | The lane to be transformed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 690 of file GNENet.cpp.
References OptionsCont::getFloat(), GNELane::getIndex(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), OptionsCont::getOptions(), GNELane::getParentEdge(), NBEdge::getPermissions(), getVehicleClassNames(), GNELane::isRestricted(), GNELane::setAttribute(), SUMO_ATTR_ALLOW, SUMO_ATTR_WIDTH, SVC_BICYCLE, SVC_PEDESTRIAN, and toString().
Referenced by addRestrictedLane(), and GNEViewNet::restrictLane().
GNEAdditional * GNENet::retrieveAdditional | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named additional.
[in] | type | tag with the type of additional |
[in] | id | The id of the additional to return. |
[in] | failHard | Whether attempts to retrieve a nonexisting additional should result in an exception |
Definition at line 2183 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, and myAttributeCarriers.
Referenced by GNERouteHandler::addPersonTrip(), GNERouteHandler::addRide(), GNERouteHandler::addStop(), GNERouteHandler::addWalk(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditional::changeAdditionalID(), GNEViewNet::deleteSelectedAdditionals(), GNEAdditional::generateChildID(), GNEAdditionalFrame::generateID(), GNECalibratorFlow::isValid(), GNEDetectorEntryExit::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEStop::isValid(), GNEWalk::isValid(), GNEAdditional::isValidAdditionalID(), GNEAdditional::isValidDetectorID(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildParkingSpace(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterInterval(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep(), GNEHierarchicalParentElements::replaceParentAdditional(), GNEAdditionalHandler::HierarchyInsertedAdditionals::retrieveParentAdditional(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().
std::vector< GNEAdditional * > GNENet::retrieveAdditionals | ( | bool | onlySelected = false | ) | const |
return all additionals
[in] | onlySelected | Whether to return only selected additionals |
Definition at line 2195 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, and myAttributeCarriers.
Referenced by GNEViewNet::deleteSelectedAdditionals(), GNEViewParent::onCmdLocate(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
GNEAttributeCarrier * GNENet::retrieveAttributeCarrier | ( | const GUIGlID | id, |
bool | failHard = true |
||
) |
get a single attribute carrier based on a GLID
[in] | ids | the GL IDs for which to retrive the AC |
[in] | failHard | Whether attempts to retrieve a nonexisting AttributeCarrier should result in an exception |
InvalidArgument | if GL ID doesn't have a associated Attribute Carrier |
Definition at line 1334 of file GNENet.cpp.
References GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::unblockObject().
Referenced by GNEViewNet::getAttributeCarriersInBoundary(), and getSelectedAttributeCarriers().
std::vector< GNEAttributeCarrier * > GNENet::retrieveAttributeCarriers | ( | SumoXMLTag | type = SUMO_TAG_NOTHING | ) |
get the attribute carriers based on Type
[in] | type | The GUI-type of the AC. SUMO_TAG_NOTHING returns all elements (Warning: bottleneck) |
Definition at line 1357 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, GNENet::AttributeCarriers::demandElements, GNENet::AttributeCarriers::edges, GNEAttributeCarrier::getTagProperties(), GNENet::AttributeCarriers::junctions, myAttributeCarriers, ShapeContainer::myPOIs, ShapeContainer::myPolygons, SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_NOTHING, SUMO_TAG_POI, SUMO_TAG_POILANE, and SUMO_TAG_POLY.
Referenced by GNESelectorFrame::getMatches().
GNEConnection * GNENet::retrieveConnection | ( | const std::string & | id, |
bool | failHard = true |
||
) | const |
get Connection by id
[in] | id | The id of the desired Connection |
[in] | failHard | Whether attempts to retrieve a nonexisting Connection should result in an exception |
UnknownElement |
Definition at line 1128 of file GNENet.cpp.
References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.
Referenced by GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().
std::vector< GNEConnection * > GNENet::retrieveConnections | ( | bool | onlySelected = false | ) | const |
return all connections
[in] | onlySelected | Whether to return only selected connections |
Definition at line 1148 of file GNENet.cpp.
References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.
Referenced by GNEDeleteFrame::removeSelectedAttributeCarriers().
GNECrossing * GNENet::retrieveCrossing | ( | const std::string & | id, |
bool | failHard = true |
||
) | const |
get Crossing by id
[in] | id | The id of the desired Crossing |
[in] | failHard | Whether attempts to retrieve a nonexisting Crossing should result in an exception |
UnknownElement |
Definition at line 1164 of file GNENet.cpp.
References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.
Referenced by GNEViewNet::deleteSelectedCrossings(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().
std::vector< GNECrossing * > GNENet::retrieveCrossings | ( | bool | onlySelected = false | ) | const |
return all crossings
[in] | onlySelected | Whether to return only selected crossings |
Definition at line 1184 of file GNENet.cpp.
References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.
Referenced by GNEDeleteFrame::removeSelectedAttributeCarriers().
GNEDemandElement * GNENet::retrieveDemandElement | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named demand element.
[in] | type | tag with the type of demand element |
[in] | id | The id of the demand element to return. |
[in] | failHard | Whether attempts to retrieve a nonexisting demand element should result in an exception |
Definition at line 2316 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, and myAttributeCarriers.
Referenced by GNERouteHandler::addWalk(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildTrip(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNEDemandElement::changeDemandElementID(), GNERouteHandler::closePerson(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNEViewNet::deleteSelectedDemandElements(), GNEDemandElement::generateChildID(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNERouteHandler::isPersonIdDuplicated(), GNECalibratorFlow::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), GNEVehicleType::isValid(), GNEWalk::isValid(), GNEDemandElement::isValidDemandElementID(), GNERouteHandler::isVehicleIdDuplicated(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEHierarchicalParentElements::replaceParentDemandElement(), GNECalibratorFlow::setAttribute(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().
std::vector< GNEDemandElement * > GNENet::retrieveDemandElements | ( | bool | onlySelected = false | ) | const |
return all demand elements
[in] | onlySelected | Whether to return only selected demand elements |
Definition at line 2328 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, and myAttributeCarriers.
Referenced by GNEViewNet::deleteSelectedDemandElements(), GNEVehicle::getPopUpMenu(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
GNEEdge * GNENet::retrieveEdge | ( | const std::string & | id, |
bool | failHard = true |
||
) |
get edge by id
[in] | id | The id of the desired edge |
[in] | failHard | Whether attempts to retrieve a nonexisting edge should result in an exception |
UnknownElement |
Definition at line 1069 of file GNENet.cpp.
References GNENet::AttributeCarriers::edges, and myAttributeCarriers.
Referenced by GNERouteHandler::addPersonTrip(), GNEViewNet::addRestrictedLane(), GNERouteHandler::addRide(), GNETAZFrame::TAZCurrent::addTAZChild(), GNERouteHandler::addWalk(), GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), createEdge(), GNEAdditionalHandler::getLanePos(), GNEEdge::getOppositeEdge(), GNEAdditional::getPopUpMenu(), GNEConnectorFrame::initTargets(), GNECalibrator::isValid(), GNEClosingReroute::isValid(), GNEDestProbReroute::isValid(), GNERouteProbe::isValid(), GNEVaporizer::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEVehicle::isValid(), GNEWalk::isValid(), GNEEdge::isValid(), GNEJunction::markAsModified(), GNEJunction::moveJunctionGeometry(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEInspectorFrame::TemplateEditor::onCmdSetTemplate(), GNEAttributeCarrier::parse(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEJunction::removeConnectionsTo(), GNEViewNet::removeRestrictedLane(), GNEViewNet::restrictLane(), GNEEdge::retrieveGNEConnection(), retrieveLane(), GNEClosingReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNEVehicle::setAttribute(), GNEWalk::setAttribute(), GNERouteHandler::RouteParameter::setEdges(), GNEJunction::setLogicValid(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), and splitJunction().
GNEEdge * GNENet::retrieveEdge | ( | GNEJunction * | from, |
GNEJunction * | to, | ||
bool | failHard = true |
||
) |
get edge by from and to GNEJunction
[in] | id | The id of the desired edge |
[in] | failHard | Whether attempts to retrieve a nonexisting edge should result in an exception |
UnknownElement |
Definition at line 1084 of file GNENet.cpp.
References GNENet::AttributeCarriers::edges, GNEAttributeCarrier::getID(), and myAttributeCarriers.
std::vector< GNEEdge * > GNENet::retrieveEdges | ( | bool | onlySelected = false | ) |
return all edges
[in] | onlySelected | Whether to return only selected edges |
Definition at line 1200 of file GNENet.cpp.
References GNENet::AttributeCarriers::edges, and myAttributeCarriers.
Referenced by GNEViewNet::addRestrictedLane(), GNEViewNet::deleteSelectedConnections(), GNEViewNet::deleteSelectedEdges(), GNELane::getPopUpMenu(), GNETLSEditorFrame::handleMultiChange(), GNEViewNet::onCmdAddReversedEdge(), GNEViewParent::onCmdLocate(), GNEViewNet::onCmdResetLength(), GNEViewNet::onCmdReverseEdge(), GNEViewNet::onCmdSmoothEdges(), GNEViewNet::onCmdSmoothEdgesElevation(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onCmdStraightenEdgesElevation(), GNEViewNet::removeRestrictedLane(), GNEDeleteFrame::removeSelectedAttributeCarriers(), and GNETAZFrame::TAZCurrent::setTAZ().
GNEJunction * GNENet::retrieveJunction | ( | const std::string & | id, |
bool | failHard = true |
||
) |
get junction by id
[in] | id | The id of the desired junction |
[in] | failHard | Whether attempts to retrieve a nonexisting junction should result in an exception |
UnknownElement |
Definition at line 1050 of file GNENet.cpp.
References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.
Referenced by changeEdgeEndpoints(), GNEConnection::changeTLIndex(), GNETLSEditorFrame::cleanup(), GNETLSEditorFrame::editJunction(), GNEJunction::generateChildID(), GNEJunction::invalidateTLS(), GNEEdge::isValid(), GNEJunction::isValid(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::parseTLSPrograms(), GNEJunction::removeTLSConnections(), GNEJunction::replaceIncomingConnections(), GNEEdge::setAttribute(), GNEJunction::setAttribute(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren().
std::vector< GNEJunction * > GNENet::retrieveJunctions | ( | bool | onlySelected = false | ) |
return all junctions
[in] | onlySelected | Whether to return only selected junctions |
Definition at line 1261 of file GNENet.cpp.
References GNENet::AttributeCarriers::junctions, and myAttributeCarriers.
Referenced by GNEViewNet::buildColorRainbow(), GNEViewNet::deleteSelectedCrossings(), GNEViewNet::deleteSelectedJunctions(), GNEJunction::getPopUpMenu(), joinSelectedJunctions(), GNEViewNet::onCmdClearConnections(), GNEViewParent::onCmdLocate(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetJunctionShape(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
GNELane * GNENet::retrieveLane | ( | const std::string & | id, |
bool | failHard = true , |
||
bool | checkVolatileChange = false |
||
) |
get lane by id
[in] | id | The id of the desired lane |
[in] | failHard | Whether attempts to retrieve a nonexisting lane should result in an exception |
[in] | checkVolatileChange | Used by additionals after recomputing with volatile options. |
UnknownElement |
Definition at line 1228 of file GNENet.cpp.
References SUMOXMLDefinitions::getEdgeIDFromLane(), GNELane::getIndex(), GNEEdge::getLanes(), myEdgesAndNumberOfLanes, retrieveEdge(), SUMO_TAG_EDGE, SUMO_TAG_LANE, and toString().
Referenced by addPOI(), GNEPolygonFrame::addPOILane(), GNERouteHandler::addStop(), GNERouteHandler::buildStop(), GNEAdditional::getPopUpMenu(), GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEClosingLaneReroute::isValid(), GNEContainerStop::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorEntryExit::isValid(), GNEParkingArea::isValid(), GNEPOI::isValid(), GNEStop::isValid(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEClosingLaneReroute::setAttribute(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), and GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents().
std::vector< GNELane * > GNENet::retrieveLanes | ( | bool | onlySelected = false | ) |
return all lanes
[in] | onlySelected | Whether to return only selected lanes |
Definition at line 1213 of file GNENet.cpp.
References GNENet::AttributeCarriers::edges, and myAttributeCarriers.
Referenced by GNEViewNet::addRestrictedLane(), GNEViewNet::buildColorRainbow(), GNEViewNet::deleteSelectedLanes(), GNELane::getPopUpMenu(), GNETLSEditorFrame::handleMultiChange(), GNEViewNet::onCmdDuplicateLane(), GNEViewNet::onCmdResetLaneCustomShape(), GNEViewNet::removeRestrictedLane(), GNEDeleteFrame::removeSelectedAttributeCarriers(), and GNEViewNet::restrictLane().
GNEPOI * GNENet::retrievePOI | ( | const std::string & | id, |
bool | failHard = true |
||
) | const |
get POI by id
[in] | id | The id of the desired POI |
[in] | failHard | Whether attempts to retrieve a nonexisting POI should result in an exception |
UnknownElement |
Definition at line 1115 of file GNENet.cpp.
References NamedObjectCont< T >::get(), and ShapeContainer::myPOIs.
Referenced by GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPOI::generateChildID(), GNEPOI::isValid(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), and GNEChange_Shape::~GNEChange_Shape().
GNEPoly * GNENet::retrievePolygon | ( | const std::string & | id, |
bool | failHard = true |
||
) | const |
get Polygon by id
[in] | id | The id of the desired polygon |
[in] | failHard | Whether attempts to retrieve a nonexisting polygon should result in an exception |
UnknownElement |
Definition at line 1102 of file GNENet.cpp.
References NamedObjectCont< T >::get(), and ShapeContainer::myPolygons.
Referenced by GNEPolygonFrame::addPolygon(), GNEPoly::generateChildID(), GNEPoly::isValid(), and GNEChange_Shape::~GNEChange_Shape().
std::vector< GNEShape * > GNENet::retrieveShapes | ( | bool | onlySelected = false | ) |
return all shapes
[in] | onlySelected | Whether to return only selected junctions |
Definition at line 1302 of file GNENet.cpp.
References ShapeContainer::getPOIs(), ShapeContainer::getPolygons(), and GNEShape::isAttributeCarrierSelected().
std::vector< GNEShape * > GNENet::retrieveShapes | ( | SumoXMLTag | shapeTag, |
bool | onlySelected = false |
||
) |
return shape by type shapes
[in] | shapeTag | Type of shape. |
[in] | onlySelected | Whether to return only selected junctions |
Definition at line 1274 of file GNENet.cpp.
References ShapeContainer::getPOIs(), ShapeContainer::getPolygons(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEShape::isAttributeCarrierSelected(), and SUMO_TAG_POLY.
Referenced by GNEViewNet::deleteSelectedShapes(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::reverseEdge | ( | GNEEdge * | edge, |
GNEUndoList * | undoList | ||
) |
reverse edge
[in] | edge | The edge to be reversed |
Definition at line 887 of file GNENet.cpp.
References createEdge(), deleteEdge(), GNEEdge::getAttribute(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNEAttributeCarrier::getID(), NBEdge::getInnerGeometry(), GNEEdge::getNBEdge(), GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, GNEUndoList::p_begin(), GNEUndoList::p_end(), PositionVector::reverse(), GNEEdge::setAttribute(), SUMO_ATTR_SHAPE, SUMO_TAG_EDGE, and toString().
Referenced by GNEViewNet::onCmdReverseEdge().
void GNENet::save | ( | OptionsCont & | oc | ) |
save the network
[in] | oc | The OptionsCont which knows how and where to save |
Definition at line 1000 of file GNENet.cpp.
References computeAndUpdate(), myNetBuilder, myNetSaved, and NWFrame::writeNetwork().
Referenced by GNEApplicationWindow::onCmdSaveNetwork().
void GNENet::saveAdditionals | ( | const std::string & | filename | ) |
save additional elements of the network
[in] | filename | name of the file in wich save additionals |
Definition at line 2255 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, myAdditionalsSaved, myAttributeCarriers, myViewNet, saveAdditionalsConfirmed(), SUMO_ATTR_LANE, SUMO_ATTR_LANES, GNEViewNet::update(), and WRITE_DEBUG.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), and GNEApplicationWindow::onCmdSaveAdditionals().
|
private |
save additionals after confirming invalid objects
Definition at line 2487 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, OutputDevice::close(), OutputDevice::getDevice(), GNEAttributeCarrier::getTagProperties(), GNEAttributeCarrier::TagProperties::isDetector(), GNEAttributeCarrier::TagProperties::isStoppingPlace(), myAttributeCarriers, ShapeContainer::myPOIs, ShapeContainer::myPolygons, SUMO_TAG_ROUTE, SUMO_TAG_ROUTEPROBE, SUMO_TAG_VTYPE, and OutputDevice::writeXMLHeader().
Referenced by saveAdditionals().
void GNENet::saveDemandElements | ( | const std::string & | filename | ) |
save demand element elements of the network
[in] | filename | name of the file in wich save demand elements |
Definition at line 2411 of file GNENet.cpp.
References computeDemandElements(), GNENet::AttributeCarriers::demandElements, GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myAttributeCarriers, myDemandElementsSaved, myViewNet, saveDemandElementsConfirmed(), GNEViewNet::update(), and WRITE_DEBUG.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), and GNEApplicationWindow::onCmdSaveDemandElements().
|
private |
save demand elements after confirming invalid objects
Definition at line 2544 of file GNENet.cpp.
References OutputDevice::close(), GNENet::AttributeCarriers::demandElements, OutputDevice::getDevice(), myAttributeCarriers, SUMO_TAG_PTYPE, SUMO_TAG_ROUTE, SUMO_TAG_VTYPE, GNENet::AttributeCarriers::vehicleDepartures, and OutputDevice::writeXMLHeader().
Referenced by saveDemandElements().
void GNENet::saveJoined | ( | OptionsCont & | oc | ) |
save log of joined junctions (and nothing else)
[in] | oc | The OptionsCont which knows how and where to save |
Definition at line 1018 of file GNENet.cpp.
References computeAndUpdate(), NBNetBuilder::getNodeCont(), myNetBuilder, and NWWriter_XML::writeJoinedJunctions().
Referenced by GNEApplicationWindow::onCmdSaveJoined().
void GNENet::savePlain | ( | OptionsCont & | oc | ) |
save plain xml representation of the network (and nothing else)
[in] | oc | The OptionsCont which knows how and where to save |
Definition at line 1010 of file GNENet.cpp.
References computeAndUpdate(), myNetBuilder, and NWWriter_XML::writeNetwork().
Referenced by GNEApplicationWindow::onCmdSaveAsPlainXML().
void GNENet::saveTLSPrograms | ( | const std::string & | filename | ) |
save TLS Programs elements of the network
[in] | filename | name of the file in wich save TLS Programs |
Definition at line 2656 of file GNENet.cpp.
References OutputDevice::close(), OutputDevice::getDevice(), getTLLogicCont(), myTLSProgramsSaved, OutputDevice::openTag(), WRITE_DEBUG, and NWWriter_SUMO::writeTrafficLights().
Referenced by GNEApplicationWindow::onCmdSaveTLSPrograms().
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 173 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNEAdditional::changeAdditionalID(), GNEDemandElement::changeDemandElementID(), renameJunction(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNELane::setIndex(), GNEEdge::setMicrosimID(), and GNEConnection::updateID().
void GNENet::setViewNet | ( | GNEViewNet * | viewNet | ) |
Set the viewNet to be notified of network changes.
Definition at line 1026 of file GNENet.cpp.
References GNEDemandElement::createRouteCalculatorInstance(), DEFAULT_BIKETYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_VTYPE_ID, GNENet::AttributeCarriers::demandElements, GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEReferenceCounter::incRef(), myAttributeCarriers, myViewNet, SUMO_TAG_PTYPE, SUMO_TAG_VTYPE, SVC_BICYCLE, SVC_PASSENGER, and SVC_PEDESTRIAN.
GNEJunction * GNENet::splitEdge | ( | GNEEdge * | edge, |
const Position & | pos, | ||
GNEUndoList * | undoList, | ||
GNEJunction * | newJunction = 0 |
||
) |
split edge at position by inserting a new junction
[in] | edge | The edge to be split |
[in] | pos | The position on which to insert the new junction |
Definition at line 770 of file GNENet.cpp.
References createEdge(), createJunction(), NBNode::Crossing::edges, GNEEdge::getAttribute(), GNEHierarchicalChildElements::getChildAdditionals(), GNEHierarchicalChildElements::getChildDemandElements(), NBEdge::getGeometry(), GNEJunction::getGNECrossings(), GNEEdge::getGNEJunctionDestiny(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GUIGlObject::getMicrosimID(), GNEEdge::getNBEdge(), GNE_ATTR_SHAPE_END, GNEChange_Connection, PositionVector::nearest_offset_to_point2D(), GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEJunction::replaceIncomingConnections(), GNEEdge::setAttribute(), PositionVector::splitAt(), SUMO_ATTR_SHAPE, SUMO_ATTR_TO, SUMO_TAG_EDGE, toString(), and GNEEdge::wasSplit().
Referenced by GNEViewNet::onCmdSplitEdge(), and splitEdgesBidi().
void GNENet::splitEdgesBidi | ( | GNEEdge * | edge, |
GNEEdge * | oppositeEdge, | ||
const Position & | pos, | ||
GNEUndoList * | undoList | ||
) |
split all edges at position by inserting one new junction
[in] | edge | The edge to be split |
[in] | oppositeEdge | The oppositeEdge to be split |
[in] | pos | The position on which to insert the new junction |
Definition at line 875 of file GNENet.cpp.
References GNEUndoList::p_begin(), GNEUndoList::p_end(), splitEdge(), SUMO_TAG_EDGE, and toString().
Referenced by GNEViewNet::onCmdSplitEdgeBidi().
void GNENet::splitJunction | ( | GNEJunction * | junction, |
bool | reconnect, | ||
GNEUndoList * | undoList | ||
) |
replace the selected junction by a list of junctions for each unique edge endpoint
Definition at line 1987 of file GNENet.cpp.
References createEdge(), createJunction(), deleteJunction(), duplicateLane(), NBNode::getDirection(), NBNode::getEndPoints(), GNEJunction::getGNEIncomingEdges(), GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNEJunction::getGNEOutgoingEdges(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GNEJunction::getNBNode(), GNEJunction::isValid(), LINKDIR_STRAIGHT, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), retrieveEdge(), GNEEdge::setAttribute(), GNEJunction::setLogicValid(), SUMO_ATTR_ALLOW, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_NUMLANES, SUMO_ATTR_TO, and WRITE_WARNING.
Referenced by GNEViewNet::onCmdSplitJunction(), and GNEViewNet::onCmdSplitJunctionReconnect().
|
private |
notify myViewNet
Definition at line 3061 of file GNENet.cpp.
References myViewNet, and GNEViewNet::update().
Referenced by changeEdgeEndpoints(), computeNetwork(), registerEdge(), and registerJunction().
void GNENet::updateAdditionalID | ( | const std::string & | oldID, |
GNEAdditional * | additional | ||
) |
update additional ID in container
Definition at line 2222 of file GNENet.cpp.
References GNENet::AttributeCarriers::additionals, GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), myAttributeCarriers, and requireSaveAdditionals().
Referenced by GNEAdditional::changeAdditionalID().
void GNENet::updateDemandElementBegin | ( | const std::string & | oldBegin, |
GNEDemandElement * | demandElement | ||
) |
update demand element begin in container
Definition at line 2378 of file GNENet.cpp.
References GNEDemandElement::getBegin(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::TagProperties::isVehicle(), myAttributeCarriers, and GNENet::AttributeCarriers::vehicleDepartures.
Referenced by GNEPerson::setAttribute(), and GNEVehicle::setAttribute().
void GNENet::updateDemandElementID | ( | const std::string & | oldID, |
GNEDemandElement * | demandElement | ||
) |
update demand element ID in container
Definition at line 2355 of file GNENet.cpp.
References GNENet::AttributeCarriers::demandElements, GNEDemandElement::getBegin(), GNEAttributeCarrier::getID(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEAttributeCarrier::TagProperties::isVehicle(), myAttributeCarriers, requireSaveDemandElements(), and GNENet::AttributeCarriers::vehicleDepartures.
Referenced by GNEDemandElement::changeDemandElementID().
|
friend |
|
friend |
Definition at line 88 of file GNENet.h.
Referenced by deleteAdditional().
|
friend |
Definition at line 85 of file GNENet.h.
Referenced by deleteConnection(), replaceIncomingEdge(), replaceJunctionByGeometry(), and splitEdge().
|
friend |
Definition at line 89 of file GNENet.h.
Referenced by cleanInvalidDemandElements(), cleanUnusedRoutes(), deleteDemandElement(), and joinRoutes().
|
friend |
Definition at line 83 of file GNENet.h.
Referenced by createEdge(), deleteEdge(), and replaceIncomingEdge().
|
friend |
Definition at line 82 of file GNENet.h.
Referenced by createJunction(), and deleteJunction().
|
friend |
Definition at line 84 of file GNENet.h.
Referenced by deleteLane(), and duplicateLane().
|
friend |
Definition at line 86 of file GNENet.h.
Referenced by addPOI(), addPolygon(), deleteLane(), and deleteShape().
|
friend |
|
staticprivateinherited |
LinkStates (Currently unused)
vector for TypeNames Initializer
Definition at line 277 of file GUIGlObject.h.
|
staticinherited |
Definition at line 69 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOViewParent::onUpdSpeedFactor(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processGet(), and GUIViewTraffic::stopTrack().
|
protected |
Flag to check if additionals has to be saved.
Definition at line 758 of file GNENet.h.
Referenced by isAdditionalsSaved(), requireSaveAdditionals(), requireSaveDemandElements(), requireSaveNet(), and saveAdditionals().
|
private |
flag used to indicate if shaped created can be undo
Definition at line 863 of file GNENet.h.
Referenced by addPOI(), and addPolygon().
|
protected |
AttributeCarriers of net.
Definition at line 740 of file GNENet.h.
Referenced by additionalExist(), checkJunctionPosition(), cleanInvalidCrossings(), cleanInvalidDemandElements(), cleanUnusedRoutes(), computeAndUpdate(), computeDemandElements(), computeNetwork(), createEdge(), createJunction(), deleteAdditional(), deleteDemandElement(), deleteJunction(), deleteSingleEdge(), deleteSingleJunction(), demandElementExist(), generateAdditionalID(), generateDemandElementID(), getAttributeCarriers(), getNumberOfAdditionals(), getNumberOfDemandElements(), initGNEConnections(), initJunctionsAndEdges(), insertAdditional(), insertDemandElement(), joinRoutes(), joinSelectedJunctions(), mergeJunctions(), netHasGNECrossings(), registerEdge(), registerJunction(), removeSolitaryJunctions(), renameEdge(), renameJunction(), replaceJunctionByGeometry(), retrieveAdditional(), retrieveAdditionals(), retrieveAttributeCarriers(), retrieveConnection(), retrieveConnections(), retrieveCrossing(), retrieveCrossings(), retrieveDemandElement(), retrieveDemandElements(), retrieveEdge(), retrieveEdges(), retrieveJunction(), retrieveJunctions(), retrieveLanes(), saveAdditionals(), saveAdditionalsConfirmed(), saveDemandElements(), saveDemandElementsConfirmed(), setViewNet(), updateAdditionalID(), updateDemandElementBegin(), updateDemandElementID(), and ~GNENet().
|
protected |
Flag to check if demand elements has to be saved.
Definition at line 764 of file GNENet.h.
Referenced by isDemandElementsSaved(), requireSaveAdditionals(), requireSaveDemandElements(), requireSaveNet(), and saveDemandElements().
|
protected |
Definition at line 744 of file GNENet.h.
Referenced by createEdge(), and reserveEdgeID().
|
private |
map with the Edges and their number of lanes
Definition at line 860 of file GNENet.h.
Referenced by computeNetwork(), and retrieveLane().
|
protected |
list of edge ids for which turn-arounds must be added explicitly
Definition at line 749 of file GNENet.h.
Referenced by addExplicitTurnaround(), computeAndUpdate(), and removeExplicitTurnaround().
|
privateinherited |
full name of GL Object
Definition at line 260 of file GUIGlObject.h.
Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The numerical id of the object.
Definition at line 251 of file GUIGlObject.h.
Referenced by GUIGlObject::getGlID(), and GUIGlObject::GUIGlObject().
|
privateinherited |
The type of the object.
Definition at line 254 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().
|
protected |
the rtree which contains all GUIGlObjects (so named for historical reasons)
Definition at line 731 of file GNENet.h.
Referenced by addGLObjectIntoGrid(), addPolygonForEditShapes(), computeAndUpdate(), deleteAdditional(), deleteDemandElement(), deleteSingleEdge(), deleteSingleJunction(), getBoundary(), getVisualisationSpeedUp(), initJunctionsAndEdges(), insertAdditional(), insertDemandElement(), insertShape(), registerEdge(), registerJunction(), removeGLObjectFromGrid(), removePolygonForEditShapes(), and removeShape().
|
protectedinherited |
inverse map to myHighlightPolygons saves the highlighted object for each polygon
Definition at line 207 of file ShapeContainer.h.
Referenced by ShapeContainer::clearHighlight(), and ShapeContainer::registerHighlight().
|
protectedinherited |
maps objects to a map of highlight types to highlighting polygons
Definition at line 205 of file ShapeContainer.h.
Referenced by ShapeContainer::clearHighlight(), ShapeContainer::clearHighlights(), and ShapeContainer::registerHighlight().
|
protected |
Definition at line 745 of file GNENet.h.
Referenced by createJunction(), and reserveJunctionID().
|
privateinherited |
ID of GL object.
Definition at line 257 of file GUIGlObject.h.
Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().
|
protected |
whether the net needs recomputation
Definition at line 752 of file GNENet.h.
Referenced by computeAndUpdate(), computeNetwork(), and requireRecompute().
|
protected |
The internal netbuilder.
Definition at line 737 of file GNENet.h.
Referenced by computeAndUpdate(), deleteSingleEdge(), deleteSingleJunction(), getEdgeCont(), getNetBuilder(), getTLLogicCont(), initJunctionsAndEdges(), insertEdge(), insertJunction(), joinSelectedJunctions(), renameEdge(), renameJunction(), save(), saveJoined(), savePlain(), and ~GNENet().
|
protected |
Flag to check if net has to be saved.
Definition at line 755 of file GNENet.h.
Referenced by isNetSaved(), requireSaveAdditionals(), requireSaveDemandElements(), requireSaveNet(), and save().
|
privateinherited |
Parameter table windows which refer to this object.
Definition at line 263 of file GUIGlObject.h.
Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().
|
protectedinherited |
stored POIs
Definition at line 215 of file ShapeContainer.h.
Referenced by ShapeContainer::add(), addPOI(), GUIShapeContainer::addPOI(), changeShapeID(), computeAndUpdate(), generateShapeID(), getNumberOfShapes(), ShapeContainer::getPOIs(), insertShape(), ShapeContainer::movePOI(), GUIShapeContainer::movePOI(), ShapeContainer::removePOI(), GUIShapeContainer::removePOI(), removeShape(), retrieveAttributeCarriers(), retrievePOI(), PCPolyContainer::save(), saveAdditionalsConfirmed(), PCPolyContainer::saveDlrTDP(), GNEChange_Shape::~GNEChange_Shape(), ~GNENet(), and PCPolyContainer::~PCPolyContainer().
|
protectedinherited |
stored PolygonDynamics
Definition at line 202 of file ShapeContainer.h.
Referenced by ShapeContainer::addPolygonDynamics(), ShapeContainer::removePolygonDynamics(), and ShapeContainer::~ShapeContainer().
|
protectedinherited |
stored Polygons
Definition at line 199 of file ShapeContainer.h.
Referenced by ShapeContainer::add(), addPolygon(), GUIShapeContainer::addPolygon(), ShapeContainer::addPolygonDynamics(), changeShapeID(), computeAndUpdate(), generateShapeID(), getNumberOfShapes(), ShapeContainer::getPolygons(), insertShape(), ShapeContainer::removePolygon(), GUIShapeContainer::removePolygon(), ShapeContainer::removePolygonDynamics(), removeShape(), ShapeContainer::reshapePolygon(), GUIShapeContainer::reshapePolygon(), retrieveAttributeCarriers(), retrievePolygon(), PCPolyContainer::save(), saveAdditionalsConfirmed(), PCPolyContainer::saveDlrTDP(), GNEChange_Shape::~GNEChange_Shape(), ~GNENet(), and PCPolyContainer::~PCPolyContainer().
|
privateinherited |
Command pointers for scheduled polygon update. Maps PolyID->Command.
Definition at line 219 of file ShapeContainer.h.
Referenced by ShapeContainer::addPolygonUpdateCommand(), ShapeContainer::cleanupPolygonDynamics(), ShapeContainer::polygonDynamicsUpdate(), and ShapeContainer::~ShapeContainer().
|
protected |
Flag to check if shapes has to be saved.
Definition at line 761 of file GNENet.h.
Referenced by requireSaveTLSPrograms(), and saveTLSPrograms().
|
protectedinherited |
Information about tracked objects.
Definition at line 212 of file ShapeContainer.h.
Referenced by ShapeContainer::addPolygonDynamics(), ShapeContainer::removePolygonDynamics(), and ShapeContainer::removeTrackers().
|
protected |
Flag to enable or disable update geometry of elements after inserting or removing element in net.
Definition at line 767 of file GNENet.h.
Referenced by computeAndUpdate(), disableUpdateGeometry(), enableUpdateGeometry(), insertAdditional(), insertDemandElement(), and isUpdateGeometryEnabled().
|
protected |
The viewNet to be notofied of about changes.
Definition at line 734 of file GNENet.h.
Referenced by addPOI(), addPolygon(), addPolygonForEditShapes(), cleanInvalidDemandElements(), cleanUnusedRoutes(), computeAndUpdate(), computeNetwork(), deleteAdditional(), deleteDemandElement(), deleteSingleEdge(), deleteSingleJunction(), getApp(), getSelectedAttributeCarriers(), getViewNet(), insertShape(), joinRoutes(), removePolygonForEditShapes(), removeShape(), requireSaveAdditionals(), requireSaveDemandElements(), requireSaveTLSPrograms(), saveAdditionals(), saveDemandElements(), setViewNet(), and update().
|
private |
the z boundary (stored in the x-coordinate), values of 0 are ignored
Definition at line 854 of file GNENet.h.
Referenced by getZBoundary(), and registerJunction().
|
staticinherited |
associates object types with strings
Definition at line 68 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().
|
staticprivate |
marker for whether the z-boundary is initialized
Definition at line 857 of file GNENet.h.
Referenced by registerJunction().