Eclipse SUMO - Simulation of Urban MObility
GNERerouterIntervalDialog.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-2019 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 // Dialog for edit rerouter intervals
16 /****************************************************************************/
17 #ifndef GNERerouterIntervalDialog_h
18 #define GNERerouterIntervalDialog_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 
24 #include <config.h>
25 
26 
33 
34 #include "GNEAdditionalDialog.h"
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
47 
55  FXDECLARE(GNERerouterIntervalDialog)
56 
57 public:
59  GNERerouterIntervalDialog(GNEAdditional* rerouterInterval, bool updatingElement);
60 
63 
67  long onCmdAccept(FXObject*, FXSelector, void*);
68 
70  long onCmdCancel(FXObject*, FXSelector, void*);
71 
73  long onCmdReset(FXObject*, FXSelector, void*);
74 
76  long onCmdAddClosingLaneReroute(FXObject*, FXSelector, void*);
77 
79  long onCmdAddClosingReroute(FXObject*, FXSelector, void*);
80 
82  long onCmdAddDestProbReroute(FXObject*, FXSelector, void*);
83 
85  long onCmdAddRouteProbReroute(FXObject*, FXSelector, void*);
86 
88  long onCmdAddParkingAreaReroute(FXObject*, FXSelector, void*);
89 
91  long onCmdClickedClosingLaneReroute(FXObject*, FXSelector, void*);
92 
94  long onCmdClickedClosingReroute(FXObject*, FXSelector, void*);
95 
97  long onCmdClickedDestProbReroute(FXObject*, FXSelector, void*);
98 
100  long onCmdClickedRouteProbReroute(FXObject*, FXSelector, void*);
101 
103  long onCmdClickedParkingAreaReroute(FXObject*, FXSelector, void*);
104 
106  long onCmdEditClosingLaneReroute(FXObject*, FXSelector, void*);
107 
109  long onCmdEditClosingReroute(FXObject*, FXSelector, void*);
110 
112  long onCmdEditDestProbReroute(FXObject*, FXSelector, void*);
113 
115  long onCmdEditRouteProbReroute(FXObject*, FXSelector, void*);
116 
118  long onCmdEditParkingAreaReroute(FXObject*, FXSelector, void*);
119 
121  long onCmdChangeBeginEnd(FXObject*, FXSelector, void*);
122 
124 
125 protected:
128 
130  FXTextField* myBeginTextField;
131 
133  FXTextField* myEndTextField;
134 
136  FXLabel* myCheckLabel;
137 
140 
143 
146 
149 
152 
155 
158 
161 
164 
167 
169  std::vector<GNEAdditional*> myClosingReroutesEdited;
170 
172  std::vector<GNEAdditional*> myClosingLaneReroutesEdited;
173 
175  std::vector<GNEAdditional*> myDestProbReroutesEdited;
176 
178  std::vector<GNEAdditional*> myRouteProbReroutesEdited;
179 
181  std::vector<GNEAdditional*> myParkingAreaRerouteEdited;
182 
185 
188 
191 
194 
197 
200 
201 private:
204 
207 
210 
213 
216 
219 
222 };
223 
224 #endif
GNERerouterIntervalDialog::GNERerouterIntervalDialog
GNERerouterIntervalDialog()
FOX needs this.
Definition: GNERerouterIntervalDialog.h:127
GNERerouterIntervalDialog::onCmdEditRouteProbReroute
long onCmdEditRouteProbReroute(FXObject *, FXSelector, void *)
/edit route prob reroute
Definition: GNERerouterIntervalDialog.cpp:556
GNEAdditional
An Element which don't belongs to GNENet but has influency in the simulation.
Definition: GNEAdditional.h:47
GNEParkingAreaReroute.h
GNERerouterInterval
Definition: GNERerouterInterval.h:46
GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute
long onCmdClickedClosingLaneReroute(FXObject *, FXSelector, void *)
remove closing lane reroute
Definition: GNERerouterIntervalDialog.cpp:368
GNERerouterIntervalDialog::onCmdEditParkingAreaReroute
long onCmdEditParkingAreaReroute(FXObject *, FXSelector, void *)
/edit parkingAreaReroute
Definition: GNERerouterIntervalDialog.cpp:582
GNEAdditionalDialog
Dialog to edit sequences, parameters, etc.. of Additionals.
Definition: GNEAdditionalDialog.h:45
GNERerouterIntervalDialog::onCmdAddDestProbReroute
long onCmdAddDestProbReroute(FXObject *, FXSelector, void *)
add dest prob reroute
Definition: GNERerouterIntervalDialog.cpp:332
GNERerouterIntervalDialog::myRouteProbRerouteTable
FXTable * myRouteProbRerouteTable
list with route probability reroute
Definition: GNERerouterIntervalDialog.h:163
GNERerouterIntervalDialog::myClosingLaneReroutesValid
bool myClosingLaneReroutesValid
flag to check if closing lane reroutes are valid
Definition: GNERerouterIntervalDialog.h:187
GNERerouterIntervalDialog::onCmdAccept
long onCmdAccept(FXObject *, FXSelector, void *)
Definition: GNERerouterIntervalDialog.cpp:210
GNERerouterIntervalDialog::updateRouteProbReroutesTable
void updateRouteProbReroutesTable()
update data of probabilitry reroutes table
Definition: GNERerouterIntervalDialog.cpp:768
GNEClosingLaneReroute.h
GNERerouterIntervalDialog::myParkingAreaRerouteTable
FXTable * myParkingAreaRerouteTable
list with parkingAreaReroutes
Definition: GNERerouterIntervalDialog.h:166
GNERerouterIntervalDialog::myDestProbRerouteTable
FXTable * myDestProbRerouteTable
list with destiny probability reroutes
Definition: GNERerouterIntervalDialog.h:160
GNERerouterIntervalDialog::operator=
GNERerouterIntervalDialog & operator=(const GNERerouterIntervalDialog &)=delete
Invalidated assignment operator.
GNERerouterIntervalDialog::myClosingLaneRerouteTable
FXTable * myClosingLaneRerouteTable
list with closing lane reroutes
Definition: GNERerouterIntervalDialog.h:154
GNERerouterInterval.h
GNERerouterIntervalDialog::myBeginTextField
FXTextField * myBeginTextField
begin time text field
Definition: GNERerouterIntervalDialog.h:130
GNERerouterIntervalDialog::myClosingLaneReroutesEdited
std::vector< GNEAdditional * > myClosingLaneReroutesEdited
closing Lane Reroutes edited
Definition: GNERerouterIntervalDialog.h:172
GNERerouterIntervalDialog::updateClosingReroutesTable
void updateClosingReroutesTable()
update data of closing reroute table
Definition: GNERerouterIntervalDialog.cpp:679
GNERerouterIntervalDialog::onCmdClickedClosingReroute
long onCmdClickedClosingReroute(FXObject *, FXSelector, void *)
remove closing reroute
Definition: GNERerouterIntervalDialog.cpp:384
GNERerouterIntervalDialog::onCmdChangeBeginEnd
long onCmdChangeBeginEnd(FXObject *, FXSelector, void *)
called when begin or endis changed
Definition: GNERerouterIntervalDialog.cpp:612
GNERerouterIntervalDialog::onCmdClickedDestProbReroute
long onCmdClickedDestProbReroute(FXObject *, FXSelector, void *)
remove dest prob reroute
Definition: GNERerouterIntervalDialog.cpp:400
GNERerouterIntervalDialog::~GNERerouterIntervalDialog
~GNERerouterIntervalDialog()
destructor
Definition: GNERerouterIntervalDialog.cpp:206
GNERerouterIntervalDialog::onCmdReset
long onCmdReset(FXObject *, FXSelector, void *)
event after press reset button
Definition: GNERerouterIntervalDialog.cpp:295
GNEAdditionalDialog.h
GNERerouterIntervalDialog::myClosingRerouteTable
FXTable * myClosingRerouteTable
list with closing reroutes
Definition: GNERerouterIntervalDialog.h:157
GNERerouterIntervalDialog::updateDestProbReroutesTable
void updateDestProbReroutesTable()
update data of destiny probabilitry reroute table
Definition: GNERerouterIntervalDialog.cpp:726
GNERerouterIntervalDialog::onCmdCancel
long onCmdCancel(FXObject *, FXSelector, void *)
event after press cancel button
Definition: GNERerouterIntervalDialog.cpp:285
GNERerouterIntervalDialog::onCmdAddClosingReroute
long onCmdAddClosingReroute(FXObject *, FXSelector, void *)
add closing reroute
Definition: GNERerouterIntervalDialog.cpp:320
GNERerouterIntervalDialog::myCheckLabel
FXLabel * myCheckLabel
begin/end time check label
Definition: GNERerouterIntervalDialog.h:136
GNERerouterIntervalDialog::myAddRouteProbReroute
FXButton * myAddRouteProbReroute
button for add new route probability reroutes
Definition: GNERerouterIntervalDialog.h:148
GNERerouterIntervalDialog::myBeginEndValid
bool myBeginEndValid
flag to check if begin an end are valid
Definition: GNERerouterIntervalDialog.h:184
GNERerouterIntervalDialog::myClosingReroutesEdited
std::vector< GNEAdditional * > myClosingReroutesEdited
closing Reroutes edited
Definition: GNERerouterIntervalDialog.h:169
GNERerouterIntervalDialog::myRouteProbReroutesEdited
std::vector< GNEAdditional * > myRouteProbReroutesEdited
Route Prob Reroutes edited.
Definition: GNERerouterIntervalDialog.h:178
GNERerouterIntervalDialog::onCmdEditClosingReroute
long onCmdEditClosingReroute(FXObject *, FXSelector, void *)
/edit closing reroute
Definition: GNERerouterIntervalDialog.cpp:490
GNERerouterIntervalDialog::onCmdAddClosingLaneReroute
long onCmdAddClosingLaneReroute(FXObject *, FXSelector, void *)
add closing lane reroute
Definition: GNERerouterIntervalDialog.cpp:308
GNERerouterIntervalDialog::onCmdAddParkingAreaReroute
long onCmdAddParkingAreaReroute(FXObject *, FXSelector, void *)
add parkingAreaReroute
Definition: GNERerouterIntervalDialog.cpp:356
GNEClosingReroute.h
GNERerouterIntervalDialog::myDestProbReroutesEdited
std::vector< GNEAdditional * > myDestProbReroutesEdited
Dest Prob Reroutes edited.
Definition: GNERerouterIntervalDialog.h:175
GNERerouterIntervalDialog::myAddClosingReroutes
FXButton * myAddClosingReroutes
button for add new closing reroutes
Definition: GNERerouterIntervalDialog.h:142
GNERerouterIntervalDialog::onCmdAddRouteProbReroute
long onCmdAddRouteProbReroute(FXObject *, FXSelector, void *)
add route prob reroute
Definition: GNERerouterIntervalDialog.cpp:344
GNEDestProbReroute.h
GNERerouterIntervalDialog::myRouteProbReroutesValid
bool myRouteProbReroutesValid
flag to check if route prob reroutes are valid
Definition: GNERerouterIntervalDialog.h:199
GNERerouterIntervalDialog::myParkingAreaReroutesValid
bool myParkingAreaReroutesValid
flag to check if parkingAreaReroutes are valid
Definition: GNERerouterIntervalDialog.h:196
GNERerouterIntervalDialog::myAddDestProbReroutes
FXButton * myAddDestProbReroutes
button for add new destiny probability reroutes
Definition: GNERerouterIntervalDialog.h:145
config.h
GNERerouterIntervalDialog::myClosingReroutesValid
bool myClosingReroutesValid
flag to check if closing reroutes are valid
Definition: GNERerouterIntervalDialog.h:190
GNERerouterIntervalDialog::myAddParkingAreaReroute
FXButton * myAddParkingAreaReroute
button for add new parkingAreaReroute
Definition: GNERerouterIntervalDialog.h:151
GNERerouterIntervalDialog::myParkingAreaRerouteEdited
std::vector< GNEAdditional * > myParkingAreaRerouteEdited
Parking Area reroute edited.
Definition: GNERerouterIntervalDialog.h:181
GNERouteProbReroute.h
GNERerouterIntervalDialog::onCmdClickedRouteProbReroute
long onCmdClickedRouteProbReroute(FXObject *, FXSelector, void *)
remove route prob reroute
Definition: GNERerouterIntervalDialog.cpp:416
GNERerouterIntervalDialog::updateClosingLaneReroutesTable
void updateClosingLaneReroutesTable()
update data of closing lane reroute table
Definition: GNERerouterIntervalDialog.cpp:632
GNERerouterIntervalDialog::onCmdEditDestProbReroute
long onCmdEditDestProbReroute(FXObject *, FXSelector, void *)
/edit dest prob reroute
Definition: GNERerouterIntervalDialog.cpp:530
GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute
long onCmdClickedParkingAreaReroute(FXObject *, FXSelector, void *)
remove parkingAreaReroute
Definition: GNERerouterIntervalDialog.cpp:432
GNERerouterIntervalDialog::myAddClosingLaneReroutes
FXButton * myAddClosingLaneReroutes
button for add new closing lane reroutes
Definition: GNERerouterIntervalDialog.h:139
GNERerouterIntervalDialog::myDestProbReroutesValid
bool myDestProbReroutesValid
flag to check if Destiny probability reroutes are valid
Definition: GNERerouterIntervalDialog.h:193
GNERerouterIntervalDialog::updateParkingAreaReroutesTable
void updateParkingAreaReroutesTable()
update data of parkingAreaReroute table
Definition: GNERerouterIntervalDialog.cpp:810
GNERerouterIntervalDialog
Dialog for edit rerouter intervals.
Definition: GNERerouterIntervalDialog.h:53
GNERerouterIntervalDialog::onCmdEditClosingLaneReroute
long onCmdEditClosingLaneReroute(FXObject *, FXSelector, void *)
/edit closing lane reroute
Definition: GNERerouterIntervalDialog.cpp:450
GNERerouterIntervalDialog::myEndTextField
FXTextField * myEndTextField
end time text field
Definition: GNERerouterIntervalDialog.h:133