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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // A network change in which a single edge is created or deleted
18 /****************************************************************************/
19 #ifndef GNEChange_Edge_h
20 #define GNEChange_Edge_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <fx.h>
34 #include <vector>
35 #include <map>
36 #include "GNEChange.h"
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class GNENet;
42 class GNEEdge;
43 class GNELane;
44 class GNEAdditional;
45 class GNERerouter;
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
54 class GNEChange_Edge : public GNEChange {
55  // @brief FOX Declaration
56  FXDECLARE_ABSTRACT(GNEChange_Edge)
57 
58 public:
63  GNEChange_Edge(GNEEdge* edge, bool forward);
64 
67 
71  FXString undoName() const;
72 
74  FXString redoName() const;
75 
77  void undo();
78 
80  void redo();
82 
83 
84 private:
89 };
90 
91 #endif
92 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:48
void undo()
undo action
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:91
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:53
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:56
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:59
GNEEdge * myEdge
full information regarding the edge that is to be created/deleted
~GNEChange_Edge()
Destructor.