Eclipse SUMO - Simulation of Urban MObility
GNENet.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2022 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
18 // The lop level container for GNE-network-components such as GNEEdge and
19 // GNEJunction. Contains an internal instances of NBNetBuilder GNE components
20 // wrap netbuild-components of this underlying NBNetBuilder and supply
21 // visualisation and editing capabilities (adapted from GUINet)
22 //
23 // WorkrouteFlow (rough draft)
24 // wrap NB-components
25 // do netedit stuff
26 // call NBNetBuilder::buildLoaded to save results
27 //
28 /****************************************************************************/
29 #pragma once
30 #include <config.h>
31 
32 #include "GNENetHelper.h"
33 #include "GNEPathManager.h"
34 
35 // ===========================================================================
36 // class definitions
37 // ===========================================================================
42 class GNENet : public GUIGlObject {
43 
44 public:
49  GNENet(NBNetBuilder* netBuilder);
50 
52  ~GNENet();
53 
56 
59 
62 
70 
79 
81  double getExaggeration(const GUIVisualizationSettings& s) const;
82 
89 
91  void expandBoundary(const Boundary& newBoundary);
92 
94  const Boundary& getZBoundary() const;
95 
97  void addZValueInBoundary(const double z);
98 
103  void drawGL(const GUIVisualizationSettings& s) const;
104 
106 
108  const Boundary& getBoundary() const;
109 
114  SUMORTree& getGrid();
115 
117  const std::map<std::string, int>& getEdgesAndNumberOfLanes() const;
118 
124  GNEJunction* createJunction(const Position& pos, GNEUndoList* undoList);
125 
138  GNEEdge* createEdge(GNEJunction* src, GNEJunction* dest, GNEEdge* edgeTemplate, GNEUndoList* undoList,
139  const std::string& suggestedName = "", bool wasSplit = false, bool allowDuplicateGeom = false,
140  bool recomputeConnections = true);
141 
146  void deleteJunction(GNEJunction* junction, GNEUndoList* undoList);
147 
152  void deleteEdge(GNEEdge* edge, GNEUndoList* undoList, bool recomputeConnections);
153 
159  void replaceIncomingEdge(GNEEdge* which, GNEEdge* by, GNEUndoList* undoList);
160 
165  void deleteLane(GNELane* lane, GNEUndoList* undoList, bool recomputeConnections);
166 
171  void deleteConnection(GNEConnection* connection, GNEUndoList* undoList);
172 
177  void deleteCrossing(GNECrossing* crossing, GNEUndoList* undoList);
178 
183  void deleteAdditional(GNEAdditional* additional, GNEUndoList* undoList);
184 
189  void deleteShape(GNEShape* shape, GNEUndoList* undoList);
190 
195  void deleteTAZElement(GNETAZElement* TAZElement, GNEUndoList* undoList);
196 
201  void deleteDemandElement(GNEDemandElement* demandElement, GNEUndoList* undoList);
202 
207  void deleteDataSet(GNEDataSet* dataSet, GNEUndoList* undoList);
208 
213  void deleteDataInterval(GNEDataInterval* dataInterval, GNEUndoList* undoList);
214 
219  void deleteGenericData(GNEGenericData* genericData, GNEUndoList* undoList);
220 
225  void duplicateLane(GNELane* lane, GNEUndoList* undoList, bool recomputeConnections);
226 
232  bool restrictLane(SUMOVehicleClass vclass, GNELane* lane, GNEUndoList* undoList);
233 
240  bool addRestrictedLane(SUMOVehicleClass vclass, GNEEdge* edge, int index, GNEUndoList* undoList);
241 
247  bool addGreenVergeLane(GNEEdge* edge, int index, GNEUndoList* undoList);
248 
254  bool removeRestrictedLane(SUMOVehicleClass vclass, GNEEdge* edge, GNEUndoList* undoList);
255 
261  GNEJunction* splitEdge(GNEEdge* edge, const Position& pos, GNEUndoList* undoList, GNEJunction* newJunction = 0);
262 
268  void splitEdgesBidi(GNEEdge* edge, GNEEdge* oppositeEdge, const Position& pos, GNEUndoList* undoList);
269 
273  void reverseEdge(GNEEdge* edge, GNEUndoList* undoList);
274 
279  GNEEdge* addReversedEdge(GNEEdge* edge, GNEUndoList* undoList);
280 
287  void mergeJunctions(GNEJunction* moved, GNEJunction* target, GNEUndoList* undoList);
288 
290  void selectRoundabout(GNEJunction* junction, GNEUndoList* undoList);
291 
293  void createRoundabout(GNEJunction* junction, GNEUndoList* undoList);
294 
296  void requireSaveNet(bool value);
297 
299  bool isNetSaved() const;
300 
304  void save(OptionsCont& oc);
305 
309  void savePlain(OptionsCont& oc);
310 
314  void saveJoined(OptionsCont& oc);
315 
317  void setViewNet(GNEViewNet* viewNet);
318 
321 
324 
326  void changeEdgeEndpoints(GNEEdge* edge, const std::string& newSourceID, const std::string& newDestID);
327 
329  GNEViewNet* getViewNet() const;
330 
333 
336 
338  void initGNEConnections();
339 
341  void computeAndUpdate(OptionsCont& oc, bool volatileOptions);
342 
351  void computeNetwork(GNEApplicationWindow* window, bool force = false, bool volatileOptions = false, std::string additionalPath = "", std::string demandPath = "", std::string dataPath = "");
352 
357 
362 
369  bool joinSelectedJunctions(GNEUndoList* undoList);
370 
372  bool cleanInvalidCrossings(GNEUndoList* undoList);
373 
375  void removeSolitaryJunctions(GNEUndoList* undoList);
376 
378  void cleanUnusedRoutes(GNEUndoList* undoList);
379 
381  void joinRoutes(GNEUndoList* undoList);
382 
384  void adjustPersonPlans(GNEUndoList* undoList);
385 
387  void cleanInvalidDemandElements(GNEUndoList* undoList);
388 
390  void replaceJunctionByGeometry(GNEJunction* junction, GNEUndoList* undoList);
391 
393  void splitJunction(GNEJunction* junction, bool reconnect, GNEUndoList* undoList);
394 
396  void clearJunctionConnections(GNEJunction* junction, GNEUndoList* undoList);
397 
399  void resetJunctionConnections(GNEJunction* junction, GNEUndoList* undoList);
400 
402  void clearAdditionalElements(GNEUndoList* undoList);
403 
405  void clearDemandElements(GNEUndoList* undoList);
406 
408  void clearDataElements(GNEUndoList* undoList);
409 
413  void computeJunction(GNEJunction* junction);
414 
416  void requireRecompute();
417 
419  bool isNetRecomputed() const;
420 
422  FXApp* getApp();
423 
425  NBNetBuilder* getNetBuilder() const;
426 
428  void addExplicitTurnaround(std::string id);
429 
431  void removeExplicitTurnaround(std::string id);
432 
434  void requireSaveAdditionals(bool value);
435 
439  void saveAdditionals(const std::string& filename);
440 
442  bool isAdditionalsSaved() const;
443 
445  void requireSaveDemandElements(bool value);
446 
450  void saveDemandElements(const std::string& filename);
451 
453  bool isDemandElementsSaved() const;
454 
456  void requireSaveDataElements(bool value);
457 
461  void saveDataElements(const std::string& filename);
462 
464  bool isDataElementsSaved() const;
465 
467  double getDataSetIntervalMinimumBegin() const;
468 
470  double getDataSetIntervalMaximumEnd() const;
471 
473  void requireSaveTLSPrograms();
474 
478  void saveTLSPrograms(const std::string& filename);
479 
481  int getNumberOfTLSPrograms() const;
482 
486  void saveEdgeTypes(const std::string& filename);
487 
491  void enableUpdateGeometry();
492 
494  void disableUpdateGeometry();
495 
497  bool isUpdateGeometryEnabled() const;
498 
500 
504  void enableUpdateData();
505 
507  void disableUpdateData();
508 
510  bool isUpdateDataEnabled() const;
511 
513 
514 protected:
517 
520 
523 
526 
529 
531  // @{
532  unsigned int myJunctionIDCounter;
533  unsigned int myEdgeIDCounter;
534  // @}
535 
537  std::set<std::string> myExplicitTurnarounds;
538 
541 
544 
547 
550 
553 
556 
559 
562 
563 private:
565  void initJunctionsAndEdges();
566 
568  bool checkJunctionPosition(const Position& pos);
569 
571  void saveAdditionalsConfirmed(const std::string& filename);
572 
574  void saveDemandElementsConfirmed(const std::string& filename);
575 
577  void saveDataElementsConfirmed(const std::string& filename);
578 
579  static void replaceInListAttribute(GNEAttributeCarrier* ac, SumoXMLAttr key, const std::string& which, const std::string& by, GNEUndoList* undoList);
580 
583 
585  static const double Z_INITIALIZED;
586 
588  std::map<std::string, int> myEdgesAndNumberOfLanes;
589 
591  GNENet(const GNENet&) = delete;
592 
594  GNENet& operator=(const GNENet&) = delete;
595 };
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A class that stores a 2D geometrical boundary.
Definition: Boundary.h:39
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:48
The main window of the Netedit.
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
Definition: GNECrossing.h:42
An Element which don't belongs to GNENet but has influency in the simulation.
An Element which don't belongs to GNENet but has influency in the simulation.
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:53
An Element which don't belongs to GNENet but has influency in the simulation.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:46
struct used for saving all attribute carriers of net, in different formats
Definition: GNENetHelper.h:73
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:42
void clearAdditionalElements(GNEUndoList *undoList)
clear additionals
Definition: GNENet.cpp:1906
void removeSolitaryJunctions(GNEUndoList *undoList)
removes junctions that have no edges
Definition: GNENet.cpp:1554
void deleteEdge(GNEEdge *edge, GNEUndoList *undoList, bool recomputeConnections)
removes edge
Definition: GNENet.cpp:368
bool joinSelectedJunctions(GNEUndoList *undoList)
join selected junctions
Definition: GNENet.cpp:1365
double getDataSetIntervalMaximumEnd() const
get maximum interval
Definition: GNENet.cpp:2172
void save(OptionsCont &oc)
save the network
Definition: GNENet.cpp:1156
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
Definition: GNENet.cpp:187
void saveDemandElements(const std::string &filename)
save demand element elements of the network
Definition: GNENet.cpp:2071
void deleteLane(GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
removes lane
Definition: GNENet.cpp:502
static const double Z_INITIALIZED
marker for whether the z-boundary is initialized
Definition: GNENet.h:585
void deleteCrossing(GNECrossing *crossing, GNEUndoList *undoList)
remove crossing
Definition: GNENet.cpp:561
SUMORTree & getGrid()
Returns the RTree used for visualisation speed-up.
Definition: GNENet.cpp:144
GNEViewNet * myViewNet
The net to be notofied of about changes.
Definition: GNENet.h:519
void deleteAdditional(GNEAdditional *additional, GNEUndoList *undoList)
remove additional
Definition: GNENet.cpp:579
bool myDataElementsSaved
Flag to check if data elements has to be saved.
Definition: GNENet.h:555
void disableUpdateGeometry()
disable update geometry of elements after inserting or removing an element in net
Definition: GNENet.cpp:2455
void saveTLSPrograms(const std::string &filename)
save TLS Programs elements of the network
Definition: GNENet.cpp:2400
NBNetBuilder * getNetBuilder() const
get net builder
Definition: GNENet.cpp:1359
void addGLObjectIntoGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition: GNENet.cpp:1210
void reverseEdge(GNEEdge *edge, GNEUndoList *undoList)
reverse edge
Definition: GNENet.cpp:970
GNEEdge * addReversedEdge(GNEEdge *edge, GNEUndoList *undoList)
add reversed edge
Definition: GNENet.cpp:983
void removeGLObjectFromGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition: GNENet.cpp:1222
void deleteTAZElement(GNETAZElement *TAZElement, GNEUndoList *undoList)
remove TAZElement
Definition: GNENet.cpp:609
NBTrafficLightLogicCont & getTLLogicCont()
returns the tllcont of the underlying netbuilder
Definition: GNENet.cpp:1970
bool restrictLane(SUMOVehicleClass vclass, GNELane *lane, GNEUndoList *undoList)
transform lane to restricted lane
Definition: GNENet.cpp:728
bool isNetSaved() const
return if net has to be saved
Definition: GNENet.cpp:1150
bool myNetSaved
Flag to check if net has to be saved.
Definition: GNENet.h:543
bool myTLSProgramsSaved
Flag to check if shapes has to be saved.
Definition: GNENet.h:549
void enableUpdateData()
Definition: GNENet.cpp:2467
void requireSaveNet(bool value)
inform that net has to be saved
Definition: GNENet.cpp:1144
GNEJunction * splitEdge(GNEEdge *edge, const Position &pos, GNEUndoList *undoList, GNEJunction *newJunction=0)
split edge at position by inserting a new junction
Definition: GNENet.cpp:830
void setViewNet(GNEViewNet *viewNet)
Set the net to be notified of network changes.
Definition: GNENet.cpp:1195
bool myNeedRecompute
whether the net needs recomputation
Definition: GNENet.h:540
void saveAdditionalsConfirmed(const std::string &filename)
save additionals after confirming invalid objects
Definition: GNENet.cpp:2189
void deleteDemandElement(GNEDemandElement *demandElement, GNEUndoList *undoList)
remove demand element
Definition: GNENet.cpp:630
void duplicateLane(GNELane *lane, GNEUndoList *undoList, bool recomputeConnections)
duplicates lane
Definition: GNENet.cpp:712
const Boundary & getZBoundary() const
Returns the Z boundary (stored in the x() coordinate) values of 0 do not affect the boundary.
Definition: GNENet.cpp:199
const Boundary & getBoundary() const
returns the bounder of the network
Definition: GNENet.cpp:137
void saveEdgeTypes(const std::string &filename)
save edgeTypes elements of the network
Definition: GNENet.cpp:2421
GNENet(const GNENet &)=delete
Invalidated copy constructor.
void computeAndUpdate(OptionsCont &oc, bool volatileOptions)
recompute the network and update lane geometries
Definition: GNENet.cpp:2547
SUMORTree myGrid
the rtree which contains all GUIGlObjects (so named for historical reasons)
Definition: GNENet.h:516
void clearDataElements(GNEUndoList *undoList)
clear data elements
Definition: GNENet.cpp:1944
void savePlain(OptionsCont &oc)
save plain xml representation of the network (and nothing else)
Definition: GNENet.cpp:1179
GNENet & operator=(const GNENet &)=delete
Invalidated assignment operator.
void deleteDataInterval(GNEDataInterval *dataInterval, GNEUndoList *undoList)
remove data interval
Definition: GNENet.cpp:669
void deleteConnection(GNEConnection *connection, GNEUndoList *undoList)
remove connection
Definition: GNENet.cpp:546
void clearDemandElements(GNEUndoList *undoList)
clear demand elements
Definition: GNENet.cpp:1931
void adjustPersonPlans(GNEUndoList *undoList)
adjust person plans
Definition: GNENet.cpp:1661
void requireSaveAdditionals(bool value)
inform that additionals has to be saved
Definition: GNENet.cpp:1994
void cleanInvalidDemandElements(GNEUndoList *undoList)
clean invalid demand elements
Definition: GNENet.cpp:1706
bool myUpdateDataEnabled
Flag to enable or disable update data elements after inserting or removing element in net.
Definition: GNENet.h:561
void cleanUnusedRoutes(GNEUndoList *undoList)
clean unused routes
Definition: GNENet.cpp:1571
NBNetBuilder * myNetBuilder
The internal netbuilder.
Definition: GNENet.h:522
void removeExplicitTurnaround(std::string id)
remove edge id from the list of explicit turnarounds
Definition: GNENet.cpp:1988
void computeJunction(GNEJunction *junction)
trigger recomputation of junction shape and logic param[in] window The window to inform about delay
Definition: GNENet.cpp:1323
void resetJunctionConnections(GNEJunction *junction, GNEUndoList *undoList)
reset junction's connections
Definition: GNENet.cpp:1895
void replaceIncomingEdge(GNEEdge *which, GNEEdge *by, GNEUndoList *undoList)
replaces edge
Definition: GNENet.cpp:436
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
Definition: GNENet.cpp:175
void deleteGenericData(GNEGenericData *genericData, GNEUndoList *undoList)
remove generic data
Definition: GNENet.cpp:682
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
Definition: GNENet.cpp:125
void computeNetwork(GNEApplicationWindow *window, bool force=false, bool volatileOptions=false, std::string additionalPath="", std::string demandPath="", std::string dataPath="")
trigger full netbuild computation param[in] window The window to inform about delay param[in] force W...
Definition: GNENet.cpp:1234
void changeEdgeEndpoints(GNEEdge *edge, const std::string &newSourceID, const std::string &newDestID)
modifies endpoins of the given edge
Definition: GNENet.cpp:1955
bool myUpdateGeometryEnabled
Flag to enable or disable update geometry of elements after inserting or removing element in net.
Definition: GNENet.h:558
bool isAdditionalsSaved() const
check if additionals are saved
Definition: GNENet.cpp:2052
void initJunctionsAndEdges()
Init Junctions and edges.
Definition: GNENet.cpp:2493
void splitEdgesBidi(GNEEdge *edge, GNEEdge *oppositeEdge, const Position &pos, GNEUndoList *undoList)
split all edges at position by inserting one new junction
Definition: GNENet.cpp:947
void requireSaveTLSPrograms()
inform that TLS Programs has to be saved
Definition: GNENet.cpp:2390
unsigned int myEdgeIDCounter
Definition: GNENet.h:533
void expandBoundary(const Boundary &newBoundary)
expand boundary
Definition: GNENet.cpp:193
void deleteShape(GNEShape *shape, GNEUndoList *undoList)
remove shape
Definition: GNENet.cpp:600
void disableUpdateData()
disable update data elements after inserting or removing an element in net
Definition: GNENet.cpp:2478
bool removeRestrictedLane(SUMOVehicleClass vclass, GNEEdge *edge, GNEUndoList *undoList)
remove restricted lane
Definition: GNENet.cpp:816
~GNENet()
Destructor.
Definition: GNENet.cpp:113
void mergeJunctions(GNEJunction *moved, GNEJunction *target, GNEUndoList *undoList)
merge the given junctions edges between the given junctions will be deleted
Definition: GNENet.cpp:1018
GNEEdge * createEdge(GNEJunction *src, GNEJunction *dest, GNEEdge *edgeTemplate, 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)
Definition: GNENet.cpp:230
std::set< std::string > myExplicitTurnarounds
list of edge ids for which turn-arounds must be added explicitly
Definition: GNENet.h:537
const std::map< std::string, int > & getEdgesAndNumberOfLanes() const
et edges and number of lanes
Definition: GNENet.cpp:149
bool myAdditionalsSaved
Flag to check if additionals has to be saved.
Definition: GNENet.h:546
void addZValueInBoundary(const double z)
add Z in net boundary
Definition: GNENet.cpp:205
bool isUpdateGeometryEnabled() const
check if update geometry after inserting or removing has to be updated
Definition: GNENet.cpp:2461
bool addRestrictedLane(SUMOVehicleClass vclass, GNEEdge *edge, int index, GNEUndoList *undoList)
add restricted lane to edge
Definition: GNENet.cpp:763
bool checkJunctionPosition(const Position &pos)
return true if there are already a Junction in the given position, false in other case
Definition: GNENet.cpp:1132
bool addGreenVergeLane(GNEEdge *edge, int index, GNEUndoList *undoList)
add restricted lane to edge
Definition: GNENet.cpp:799
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Definition: GNENet.cpp:165
bool isNetRecomputed() const
check if net require recomputing
Definition: GNENet.cpp:1347
bool isUpdateDataEnabled() const
check if update data after inserting or removing has to be updated
Definition: GNENet.cpp:2484
void deleteDataSet(GNEDataSet *dataSet, GNEUndoList *undoList)
remove data set
Definition: GNENet.cpp:656
static void replaceInListAttribute(GNEAttributeCarrier *ac, SumoXMLAttr key, const std::string &which, const std::string &by, GNEUndoList *undoList)
Definition: GNENet.cpp:2652
bool cleanInvalidCrossings(GNEUndoList *undoList)
clear invalid crossings
Definition: GNENet.cpp:1502
void splitJunction(GNEJunction *junction, bool reconnect, GNEUndoList *undoList)
replace the selected junction by a list of junctions for each unique edge endpoint
Definition: GNENet.cpp:1799
void selectRoundabout(GNEJunction *junction, GNEUndoList *undoList)
select all roundabout edges and junctions for the current roundabout
Definition: GNENet.cpp:1051
void joinRoutes(GNEUndoList *undoList)
join routes
Definition: GNENet.cpp:1597
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
Definition: GNENet.cpp:155
void replaceJunctionByGeometry(GNEJunction *junction, GNEUndoList *undoList)
replace the selected junction by geometry node(s) and merge the edges
Definition: GNENet.cpp:1745
void requireSaveDemandElements(bool value)
inform that demand elements has to be saved
Definition: GNENet.cpp:2058
GNEPathManager * myPathManager
Path manager.
Definition: GNENet.h:528
GNEPathManager * getPathManager()
get path manager
Definition: GNENet.cpp:131
void createRoundabout(GNEJunction *junction, GNEUndoList *undoList)
transform the given junction into a roundabout
Definition: GNENet.cpp:1070
void requireSaveDataElements(bool value)
inform that data sets has to be saved
Definition: GNENet.cpp:2123
void requireRecompute()
inform the net about the need for recomputation
Definition: GNENet.cpp:1341
GNEJunction * createJunction(const Position &pos, GNEUndoList *undoList)
creates a new junction
Definition: GNENet.cpp:214
void saveJoined(OptionsCont &oc)
save log of joined junctions (and nothing else)
Definition: GNENet.cpp:1187
unsigned int myJunctionIDCounter
Definition: GNENet.h:532
std::map< std::string, int > myEdgesAndNumberOfLanes
map with the Edges and their number of lanes
Definition: GNENet.h:588
double getExaggeration(const GUIVisualizationSettings &s) const
return exaggeration asociated with this GLObject
Definition: GNENet.cpp:181
void addExplicitTurnaround(std::string id)
add edge id to the list of explicit turnarounds
Definition: GNENet.cpp:1982
void saveDataElements(const std::string &filename)
save data set elements of the network
Definition: GNENet.cpp:2136
void initGNEConnections()
initialize GNEConnections
Definition: GNENet.cpp:2534
void saveAdditionals(const std::string &filename)
save additional elements of the network
Definition: GNENet.cpp:2007
void deleteJunction(GNEJunction *junction, GNEUndoList *undoList)
removes junction and all incident edges
Definition: GNENet.cpp:327
NBEdgeCont & getEdgeCont()
returns the NBEdgeCont of the underlying netbuilder
Definition: GNENet.cpp:1976
GNENetHelper::AttributeCarriers * myAttributeCarriers
AttributeCarriers of net.
Definition: GNENet.h:525
void computeDataElements(GNEApplicationWindow *window)
compute data elements param[in] window The window to inform about delay
Definition: GNENet.cpp:1310
FXApp * getApp()
get pointer to the main App
Definition: GNENet.cpp:1353
bool isDataElementsSaved() const
check if data sets are saved
Definition: GNENet.cpp:2149
void saveDataElementsConfirmed(const std::string &filename)
save data elements after confirming invalid objects
Definition: GNENet.cpp:2377
bool myDemandElementsSaved
Flag to check if demand elements has to be saved.
Definition: GNENet.h:552
int getNumberOfTLSPrograms() const
get number of TLS Programs
Definition: GNENet.cpp:2415
GNEViewNet * getViewNet() const
get view net
Definition: GNENet.cpp:1964
void saveDemandElementsConfirmed(const std::string &filename)
save demand elements after confirming invalid objects
Definition: GNENet.cpp:2324
GNENet(NBNetBuilder *netBuilder)
Constructor.
Definition: GNENet.cpp:83
void enableUpdateGeometry()
Definition: GNENet.cpp:2449
void clearJunctionConnections(GNEJunction *junction, GNEUndoList *undoList)
clear junction's connections
Definition: GNENet.cpp:1883
Boundary myZBoundary
the z boundary (stored in the x-coordinate), values of 0 are ignored
Definition: GNENet.h:582
double getDataSetIntervalMinimumBegin() const
get minimum interval
Definition: GNENet.cpp:2155
void computeDemandElements(GNEApplicationWindow *window)
compute demand elements param[in] window The window to inform about delay
Definition: GNENet.cpp:1290
bool isDemandElementsSaved() const
check if demand elements are saved
Definition: GNENet.cpp:2117
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNETAZElement.h:45
The popup menu of a globject.
A window containing a gl-object's parameter.
Stores the information about how to visualize structures.
Storage for edges, including some functionality operating on multiple edges.
Definition: NBEdgeCont.h:59
Instance responsible for building networks.
Definition: NBNetBuilder.h:107
A container for traffic light definitions and built programs.
A storage for options typed value containers)
Definition: OptionsCont.h:89
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:37
A RT-tree for efficient storing of SUMO's GL-objects.
Definition: SUMORTree.h:66