Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEFixDemandElementsDialog.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 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// Dialog used to fix demand elements during saving
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24
25// ===========================================================================
26// class declarations
27// ===========================================================================
28
30
31// ===========================================================================
32// class definitions
33// ===========================================================================
34
35class GNEFixDemandElementsDialog : public GNEFixElementsDialog<GNEDemandElement*> {
36
37public:
41 FXDECLARE(FixRouteOptions)
42
43 public:
45 FixRouteOptions(GNEFixDemandElementsDialog* fixDemandElementsParent);
46
48 void selectInternalTestSolution(const std::string& solution);
49
51 bool applyFixOption();
52
55
57 long onCmdSelectOption(FXObject* obj, FXSelector, void*);
58
60
61 protected:
63 FOX_CONSTRUCTOR(FixRouteOptions)
64
65
66 FXRadioButton* myRemoveInvalidRoutes;
67
69 FXRadioButton* mySaveInvalidRoutes;
70
72 FXRadioButton* mySelectRouteInvalids;
73
76
77 private:
80
82 FixRouteOptions& operator=(const FixRouteOptions&) = delete;
83 };
84
88 FXDECLARE(FixVehicleOptions)
89
90 public:
92 FixVehicleOptions(GNEFixDemandElementsDialog* fixDemandElementsParent);
93
95 void selectInternalTestSolution(const std::string& solution);
96
98 bool applyFixOption();
99
102
104 long onCmdSelectOption(FXObject* obj, FXSelector, void*);
105
107
108 protected:
110 FOX_CONSTRUCTOR(FixVehicleOptions)
111
112
113 FXRadioButton* myRemoveInvalidVehicles;
114
116 FXRadioButton* mySaveInvalidVehicles;
117
119 FXRadioButton* mySelectInvalidVehicles;
120
122 FXCheckButton* myRemoveStopsOutOfVehicle;
123
124 private:
127
129 FixVehicleOptions& operator=(const FixVehicleOptions&) = delete;
130 };
131
135 FXDECLARE(FixStopPositionOptions)
136
137 public:
139 FixStopPositionOptions(GNEFixDemandElementsDialog* fixDemandElementsParent);
140
142 void selectInternalTestSolution(const std::string& solution);
143
145 bool applyFixOption();
146
149
151 long onCmdSelectOption(FXObject* obj, FXSelector, void*);
152
154
155 protected:
157 FOX_CONSTRUCTOR(FixStopPositionOptions)
158
159
160 FXRadioButton* myActivateFriendlyPosition;
161
163 FXRadioButton* myFixPositions;
164
166 FXRadioButton* mySaveInvalid;
167
169 FXRadioButton* mySelectInvalidStops;
170
171 private:
174
177 };
178
182 FXDECLARE(FixPlanOptions)
183
184 public:
186 FixPlanOptions(GNEFixDemandElementsDialog* fixDemandElementsParent);
187
189 void selectInternalTestSolution(const std::string& solution);
190
192 bool applyFixOption();
193
196
198 long onCmdSelectOption(FXObject* obj, FXSelector, void*);
199
201
202 protected:
204 FOX_CONSTRUCTOR(FixPlanOptions)
205
206
207 FXRadioButton* myRemoveInvalidPlan;
208
210 FXRadioButton* mySaveInvalid;
211
213 FXRadioButton* mySelectInvalidPlans;
214
215 private:
218
220 FixPlanOptions& operator=(const FixPlanOptions&) = delete;
221 };
222
225 const std::vector<GNEDemandElement*>& elements);
226
229
230protected:
233
236
239
242
243private:
246
249};
The main window of Netedit.
groupbox for all radio buttons related with fix person plan options
groupbox for all radio buttons related with fix route options
FXCheckButton * myRemoveStopsOutOfRoute
Option "Remove stops out of route".
FXRadioButton * mySelectRouteInvalids
Option "Select invalid routes and cancel".
FXRadioButton * mySaveInvalidRoutes
Option "Save invalid routes".
long onCmdSelectOption(FXObject *obj, FXSelector, void *)
called when user select a option
void selectInternalTestSolution(const std::string &solution)
select internal test solution
groupbox for all radio buttons related with fix stop options
groupbox for all radio buttons related with fix vehicle options
FixPlanOptions * myFixPlanOptions
fix person plan options
FixRouteOptions * myFixRouteOptions
fix route options
FixStopPositionOptions * myFixStopPositionOptions
fix stop options
FixVehicleOptions * myFixVehicleOptions
fix vehicle options
Definition json.hpp:4471
every row value