Eclipse SUMO - Simulation of Urban MObility
GNEChange_Junction.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-2019 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 /****************************************************************************/
14 // A network change in which a single junction is created or deleted
15 /****************************************************************************/
16 #ifndef GNEChange_Junction_h
17 #define GNEChange_Junction_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <fx.h>
27 #include "GNEChange.h"
28 
29 // ===========================================================================
30 // class declarations
31 // ===========================================================================
32 class GNENet;
33 class GNEJunction;
34 
35 // ===========================================================================
36 // class definitions
37 // ===========================================================================
42 class GNEChange_Junction : public GNEChange {
43  FXDECLARE_ABSTRACT(GNEChange_Junction)
44 
45 public:
50  GNEChange_Junction(GNEJunction* junction, bool forward);
51 
54 
58  FXString undoName() const;
59 
61  FXString redoName() const;
62 
64  void undo();
65 
67  void redo();
69 
70 
71 private:
76 };
77 
78 #endif
79 /****************************************************************************/
fxexdefs.h
GNENet
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:77
GNEChange_Junction::~GNEChange_Junction
~GNEChange_Junction()
Destructor.
Definition: GNEChange_Junction.cpp:46
GNEChange.h
GNEChange_Junction::undo
void undo()
undo action
Definition: GNEChange_Junction.cpp:58
GNEChange_Junction
Definition: GNEChange_Junction.h:42
GNEChange_Junction::myJunction
GNEJunction * myJunction
full information regarding the junction that is to be created/deleted
Definition: GNEChange_Junction.h:75
GNEChange_Junction::redoName
FXString redoName() const
get Redo name
Definition: GNEChange_Junction.cpp:104
GNEChange_Junction::GNEChange_Junction
GNEChange_Junction(GNEJunction *junction, bool forward)
Constructor for creating/deleting a junction.
Definition: GNEChange_Junction.cpp:38
config.h
GNEChange_Junction::undoName
FXString undoName() const
return undoName
Definition: GNEChange_Junction.cpp:94
GNEJunction
Definition: GNEJunction.h:47
GNEChange
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:42
GNEChange_Junction::redo
void redo()
redo action
Definition: GNEChange_Junction.cpp:76