Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netedit/dialogs/elements/GNERerouterIntervalDialog.h
169684 views
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
/****************************************************************************/
14
/// @file GNERerouterIntervalDialog.h
15
/// @author Pablo Alvarez Lopez
16
/// @date Feb 2017
17
///
18
// Dialog for edit rerouter intervals
19
/****************************************************************************/
20
#pragma once
21
#include <config.h>
22
23
#include <netedit/changes/GNEChange_Additional.h>
24
#include <netedit/dialogs/elements/lists/GNETemplateElementList.h>
25
#include <netedit/elements/additional/GNEAdditional.h>
26
27
#include "GNETemplateElementDialog.h"
28
29
// ===========================================================================
30
// class definitions
31
// ===========================================================================
32
33
class GNERerouterIntervalDialog : public GNETemplateElementDialog<GNEAdditional> {
34
35
public:
36
/// @brief constructor
37
GNERerouterIntervalDialog(GNEAdditional* rerouterInterval);
38
39
/// @brief destructor
40
~GNERerouterIntervalDialog();
41
42
/// @brief run internal test
43
void runInternalTest(const InternalTestStep::DialogArgument* dialogArgument);
44
45
/// @name FOX-callbacks
46
/// @{
47
48
/// @brief event after press accept button
49
long onCmdAccept(FXObject*, FXSelector, void*);
50
51
/// @brief event after press reset button
52
long onCmdReset(FXObject*, FXSelector, void*);
53
54
/// @}
55
56
protected:
57
/// @brief closing reroutes list
58
class ClosingReroutesList : public GNETemplateElementList<GNEAdditional, GNEAdditional, GNEChange_Additional> {
59
60
public:
61
/// @brief constructor
62
ClosingReroutesList(GNERerouterIntervalDialog* rerouterIntervalDialog, FXVerticalFrame* contentFrame);
63
64
/// @brief add new element
65
long addNewElement();
66
67
/// @brief open element dialog
68
long openElementDialog(const size_t rowIndex);
69
70
private:
71
/// @brief Invalidated copy constructor
72
ClosingReroutesList(const ClosingReroutesList&) = delete;
73
74
/// @brief Invalidated assignment operator
75
ClosingReroutesList& operator=(const ClosingReroutesList&) = delete;
76
};
77
78
/// @brief closing lane reroutes list
79
class ClosingLaneReroutesList : public GNETemplateElementList<GNEAdditional, GNEAdditional, GNEChange_Additional> {
80
81
public:
82
/// @brief constructor
83
ClosingLaneReroutesList(GNERerouterIntervalDialog* rerouterIntervalDialog, FXVerticalFrame* contentFrame);
84
85
/// @brief add new element
86
long addNewElement();
87
88
/// @brief open element dialog
89
long openElementDialog(const size_t rowIndex);
90
91
private:
92
/// @brief Invalidated copy constructor
93
ClosingLaneReroutesList(const ClosingLaneReroutesList&) = delete;
94
95
/// @brief Invalidated assignment operator
96
ClosingLaneReroutesList& operator=(const ClosingLaneReroutesList&) = delete;
97
};
98
99
/// @brief dest prob reroutes list
100
class DestProbReroutesList : public GNETemplateElementList<GNEAdditional, GNEAdditional, GNEChange_Additional> {
101
102
public:
103
/// @brief constructor
104
DestProbReroutesList(GNERerouterIntervalDialog* rerouterIntervalDialog, FXVerticalFrame* contentFrame);
105
106
/// @brief add new element
107
long addNewElement();
108
109
/// @brief open element dialog
110
long openElementDialog(const size_t rowIndex);
111
112
private:
113
/// @brief Invalidated copy constructor
114
DestProbReroutesList(const DestProbReroutesList&) = delete;
115
116
/// @brief Invalidated assignment operator
117
DestProbReroutesList& operator=(const DestProbReroutesList&) = delete;
118
};
119
120
/// @brief route prob reroutes list
121
class RouteProbReroutesList : public GNETemplateElementList<GNEAdditional, GNEAdditional, GNEChange_Additional> {
122
123
public:
124
/// @brief constructor
125
RouteProbReroutesList(GNERerouterIntervalDialog* rerouterIntervalDialog, FXVerticalFrame* contentFrame);
126
127
/// @brief add new element
128
long addNewElement();
129
130
/// @brief open element dialog
131
long openElementDialog(const size_t rowIndex);
132
133
private:
134
/// @brief Invalidated copy constructor
135
RouteProbReroutesList(const RouteProbReroutesList&) = delete;
136
137
/// @brief Invalidated assignment operator
138
RouteProbReroutesList& operator=(const RouteProbReroutesList&) = delete;
139
};
140
141
/// @brief parking area reroutes list
142
class ParkingAreaReroutesList : public GNETemplateElementList<GNEAdditional, GNEAdditional, GNEChange_Additional> {
143
144
public:
145
/// @brief constructor
146
ParkingAreaReroutesList(GNERerouterIntervalDialog* rerouterIntervalDialog, FXVerticalFrame* contentFrame);
147
148
/// @brief add new element
149
long addNewElement();
150
151
/// @brief open element dialog
152
long openElementDialog(const size_t rowIndex);
153
154
private:
155
/// @brief Invalidated copy constructor
156
ParkingAreaReroutesList(const ParkingAreaReroutesList&) = delete;
157
158
/// @brief Invalidated assignment operator
159
ParkingAreaReroutesList& operator=(const ParkingAreaReroutesList&) = delete;
160
};
161
162
/// @brief list with closing reroutes
163
ClosingReroutesList* myClosingReroutes;
164
165
/// @brief list with closing lane reroutes
166
ClosingLaneReroutesList* myClosingLaneReroutes;
167
168
/// @brief list with destination probability reroutes
169
DestProbReroutesList* myDestProbReroutes;
170
171
/// @brief list with route probability reroute
172
RouteProbReroutesList* myRouteProbReroutes;
173
174
/// @brief list with parkingAreaReroutes
175
ParkingAreaReroutesList* myParkingAreaReroutes;
176
177
private:
178
/// @brief Invalidated copy constructor.
179
GNERerouterIntervalDialog(const GNERerouterIntervalDialog&) = delete;
180
181
/// @brief Invalidated assignment operator.
182
GNERerouterIntervalDialog& operator=(const GNERerouterIntervalDialog&) = delete;
183
};
184
185