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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // A network change in which a additional element is created or deleted
18 /****************************************************************************/
19 #ifndef GNEChange_Additional_h
20 #define GNEChange_Additional_h
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #ifdef _MSC_VER
26 #include <windows_config.h>
27 #else
28 #include <config.h>
29 #endif
30 
31 #include <fx.h>
33 #include <netbuild/NBEdge.h>
34 #include "GNEChange.h"
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class GNEAdditional;
40 class GNEViewNet;
41 class GNEDetectorEntry;
42 class GNEDetectorExit;
43 class GNEDetectorE3;
44 class GNELane;
45 class GNEEdge;
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
55  FXDECLARE_ABSTRACT(GNEChange_Additional)
56 
57 public:
62  GNEChange_Additional(GNEAdditional* additional, bool forward);
63 
66 
70  FXString undoName() const;
71 
73  FXString redoName() const;
74 
76  void undo();
77 
79  void redo();
81 
82 private:
87 
90 
93 
96 
98  std::vector<GNEEdge*> myEdgeChilds;
99 
101  std::vector<GNELane*> myLaneChilds;
102 };
103 
104 #endif
105 /****************************************************************************/
GNEEdge * myEdgeParent
pointer to edge (used by additionals with edge parent)
GNEAdditional * myAdditionalParent
pointer to additional (used by additional with parents, for example Entry/exits)
the function-object for an editing operation (abstract base)
Definition: GNEChange.h:48
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:53
~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:56
An Element which don&#39;t belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:59
std::vector< GNELane * > myLaneChilds
list of Edge childs (used by VSS)
GNELane * myLaneParent
pointer to lane (used by additionals with lane parent)