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 <fx.h>
27 #include <netbuild/NBEdge.h>
28 #include "GNEChange.h"
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class GNEAdditional;
34 class GNEViewNet;
35 class GNEDetectorEntry;
36 class GNEDetectorExit;
37 class GNEDetectorE3;
38 class GNELane;
39 class GNEEdge;
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
49  FXDECLARE_ABSTRACT(GNEChange_Additional)
50 
51 public:
56  GNEChange_Additional(GNEAdditional* additional, bool forward);
57 
60 
64  FXString undoName() const;
65 
67  FXString redoName() const;
68 
70  void undo();
71 
73  void redo();
75 
76 private:
81 
84 
87 
90 
93 
95  std::vector<GNEEdge*> myEdgeChilds;
96 
98  std::vector<GNELane*> myLaneChilds;
99 };
100 
101 #endif
102 /****************************************************************************/
GNEEdge * myEdgeParent
pointer to edge (used by additionals with edge parent)
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:42
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 * > 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
An Element which don&#39;t belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:53
std::vector< GNELane * > myLaneChilds
list of Edge childs (used by VSS)
GNELane * myLaneParent
pointer to lane (used by additionals with lane parent)