Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEFixNetworkElements.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 network 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 GNEFixNetworkElements : public GNEFixElementsDialog<GNENetworkElement*> {
36
37public:
41 FXDECLARE(FixEdgeOptions)
42
43 public:
45 FixEdgeOptions(GNEFixNetworkElements* fixNetworkElementsParent);
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(FixEdgeOptions)
64
65
66 FXRadioButton* myRemoveInvalidEdges = nullptr;
67
69 FXRadioButton* mySaveInvalidEdges = nullptr;
70
72 FXRadioButton* mySelectInvalidEdges = nullptr;
73
74 private:
77
79 FixEdgeOptions& operator=(const FixEdgeOptions&) = delete;
80 };
81
85 FXDECLARE(FixCrossingOptions)
86
87 public:
89 FixCrossingOptions(GNEFixNetworkElements* fixNetworkElementsParent);
90
92 void selectInternalTestSolution(const std::string& solution);
93
95 bool applyFixOption();
96
99
101 long onCmdSelectOption(FXObject* obj, FXSelector, void*);
102
104
105 protected:
107 FOX_CONSTRUCTOR(FixCrossingOptions)
108
109
110 FXRadioButton* myRemoveInvalidCrossings = nullptr;
111
113 FXRadioButton* mySaveInvalidCrossings = nullptr;
114
116 FXRadioButton* mySelectInvalidCrossings = nullptr;
117
118 private:
121
123 FixCrossingOptions& operator=(const FixCrossingOptions&) = delete;
124 };
125
128 const std::vector<GNENetworkElement*>& elements);
129
132
135
137 long onCmdSelectOption(FXObject* obj, FXSelector, void*);
138
140
141protected:
144
147
148private:
151
153 GNEFixNetworkElements& operator=(const GNEFixNetworkElements&) = delete;
154};
The main window of Netedit.
groupbox for all radio buttons related with fix crossing options
groupbox for all radio buttons related with fix edges options
FXRadioButton * mySelectInvalidEdges
Option "Select invalid edges and cancel".
void selectInternalTestSolution(const std::string &solution)
select internal test solution
FXRadioButton * myRemoveInvalidEdges
FOX needs this.
bool applyFixOption()
apply selected fix option
long onCmdSelectOption(FXObject *obj, FXSelector, void *)
called when user select a option
FXRadioButton * mySaveInvalidEdges
Option "Save invalid edges".
FixEdgeOptions * myFixEdgeOptions
fix edge options
FixCrossingOptions * myFixCrossingOptions
fix crossing options
Definition json.hpp:4471
every row value