SUMO - Simulation of Urban MObility
GNEChange_Shape.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 Shape is created or deleted
16 /****************************************************************************/
17 #ifndef GNEChange_Shape_h
18 #define GNEChange_Shape_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <fx.h>
28 #include "GNEChange.h"
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class GNENet;
34 class GNEShape;
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
43 class GNEChange_Shape : public GNEChange {
44  FXDECLARE_ABSTRACT(GNEChange_Shape)
45 
46 public:
51  GNEChange_Shape(GNEShape* shape, bool forward);
52 
55 
59  FXString undoName() const;
60 
62  FXString redoName() const;
63 
65  void undo();
66 
68  void redo();
70 
71 private:
74 };
75 
76 #endif
77 /****************************************************************************/
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:43
void redo()
redo action
GNEChange_Shape(GNEShape *shape, bool forward)
Constructor.
FXString redoName() const
get Redo name
GNEShape * myShape
pointer to shape
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:77
FXString undoName() const
return undoName
~GNEChange_Shape()
Destructor.
void undo()
undo action