SUMO - Simulation of Urban MObility
GNEChange_Additional.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 additional element is created or deleted
16 /****************************************************************************/
17 #ifndef GNEChange_Additional_h
18 #define GNEChange_Additional_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include "GNEChange.h"
26 
27 // ===========================================================================
28 // class declarations
29 // ===========================================================================
30 class GNEAdditional;
31 class GNEViewNet;
32 class GNEDetectorEntry;
33 class GNEDetectorExit;
34 class GNEDetectorE3;
35 class GNELane;
36 class GNEEdge;
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
46  FXDECLARE_ABSTRACT(GNEChange_Additional)
47 
48 public:
53  GNEChange_Additional(GNEAdditional* additional, bool forward);
54 
57 
61  FXString undoName() const;
62 
64  FXString redoName() const;
65 
67  void undo();
68 
70  void redo();
72 
73 private:
78 
80  std::vector<GNELane*> myLaneParents;
81 
83  std::vector<GNEEdge*> myEdgeParents;
84 
87 
90 
92  std::vector<GNEEdge*> myEdgeChilds;
93 
95  std::vector<GNELane*> myLaneChilds;
96 };
97 
98 #endif
99 /****************************************************************************/
GNEAdditional * mySecondAdditionalParent
pointer to second additional parent (used by additional with parents, for example Entry/exits) ...
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:43
GNEAdditional * myFirstAdditionalParent
pointer to first additional parent (used by additional with parents, for example Entry/exits) ...
FXString redoName() const
get Redo name
std::vector< GNEEdge * > myEdgeParents
pointer to edge parents (used by additionals with edge parents)
std::vector< GNEEdge * > myEdgeChilds
list of Edge childs (used by Rerouters)
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:47
~GNEChange_Additional()
Destructor.
FXString undoName() const
return undoName
GNEAdditional * myAdditional
full information regarding the additional element that is to be created/deleted
GNEChange_Additional(GNEAdditional *additional, bool forward)
Constructor for creating/deleting an additional element.
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:50
std::vector< GNELane * > myLaneParents
pointer to lane parents (used by additionals with lane parent)
An Element which don&#39;t belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:48
std::vector< GNELane * > myLaneChilds
list of Edge childs (used by VSS)