SUMO - Simulation of Urban MObility
GNEChange_Edge.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-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // A network change in which a single edge is created or deleted
16 /****************************************************************************/
17 #ifndef GNEChange_Edge_h
18 #define GNEChange_Edge_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <fx.h>
28 #include <vector>
29 #include <map>
30 #include "GNEChange.h"
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 class GNENet;
36 class GNEEdge;
37 class GNELane;
38 class GNEAdditional;
39 class GNERerouter;
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
48 class GNEChange_Edge : public GNEChange {
49  // @brief FOX Declaration
50  FXDECLARE_ABSTRACT(GNEChange_Edge)
51 
52 public:
57  GNEChange_Edge(GNEEdge* edge, bool forward);
58 
61 
65  FXString undoName() const;
66 
68  FXString redoName() const;
69 
71  void undo();
72 
74  void redo();
76 
77 
78 private:
83 };
84 
85 #endif
86 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:43
void undo()
undo action
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:77
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:47
FXString undoName() const
return undoName
GNEChange_Edge(GNEEdge *edge, bool forward)
Constructor for creating/deleting an edge.
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:50
FXString redoName() const
get Redo name
void redo()
redo action
An Element which don&#39;t belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:48
GNEEdge * myEdge
full information regarding the edge that is to be created/deleted
~GNEChange_Edge()
Destructor.