Eclipse 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-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 // A network change in which a single Shape is created or deleted
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
23 #include "GNEChange.h"
24 
25 // ===========================================================================
26 // class definitions
27 // ===========================================================================
32 class GNEChange_Shape : public GNEChange {
33  FXDECLARE_ABSTRACT(GNEChange_Shape)
34 
35 public:
40  GNEChange_Shape(GNEShape* shape, bool forward);
41 
44 
48  std::string undoName() const;
49 
51  std::string redoName() const;
52 
54  void undo();
55 
57  void redo();
59 
60 private:
63 };
GNEChange_Shape::undo
void undo()
undo action
Definition: GNEChange_Shape.cpp:60
GNEChange.h
GNEChange_Shape::redoName
std::string redoName() const
get Redo name
Definition: GNEChange_Shape.cpp:126
GNEChange_Shape::redo
void redo()
redo action
Definition: GNEChange_Shape.cpp:88
GNEShape
Definition: GNEShape.h:33
GNEChange_Shape::undoName
std::string undoName() const
return undoName
Definition: GNEChange_Shape.cpp:116
GNEChange_Shape::~GNEChange_Shape
~GNEChange_Shape()
Destructor.
Definition: GNEChange_Shape.cpp:42
config.h
GNEChange_Shape::GNEChange_Shape
GNEChange_Shape(GNEShape *shape, bool forward)
Constructor.
Definition: GNEChange_Shape.cpp:35
GNEChange_Shape::myShape
GNEShape * myShape
pointer to shape
Definition: GNEChange_Shape.h:62
GNEChange
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:64
GNEChange_Shape
Definition: GNEChange_Shape.h:32