Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEGeometryPointDialog.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-2024 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// A dialog for set Geometry Points
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
24#include <vector>
26
27// ===========================================================================
28// class declarations
29// ===========================================================================
30
31class GNEViewNet;
32
33// ===========================================================================
34// class definitions
35// ===========================================================================
36
44class GNEGeometryPointDialog : protected FXTopWindow {
46 FXDECLARE_ABSTRACT(GNEGeometryPointDialog)
47
48public:
51
54
58 long onCmdChangeGeometryPoint(FXObject* sender, FXSelector sel, void* ptr);
59
61 long onCmdAccept(FXObject* sender, FXSelector sel, void* ptr);
62
64 long onCmdCancel(FXObject* sender, FXSelector sel, void* ptr);
65
67 long onCmdReset(FXObject*, FXSelector, void*);
68
70
71protected:
74
77
79 FXTextField* myTextFieldXY = nullptr;
80
82 FXTextField* myTextFieldLonLat = nullptr;
83
85 Position* myPos = nullptr;
86
89
91 const bool myGeo;
92
93private:
95 FXButton* myKeepOldButton = nullptr;
96
98 FXButton* myCancelButton = nullptr;
99
101 FXButton* myResetButton = nullptr;
102
105
108};
Dialog to edit geometry points.
FXButton * myKeepOldButton
accept button
long onCmdAccept(FXObject *sender, FXSelector sel, void *ptr)
event after press accept button
const bool myGeo
flag for geo
FXTextField * myTextFieldXY
text field for X, Y
long onCmdCancel(FXObject *sender, FXSelector sel, void *ptr)
event after press cancel button
long onCmdChangeGeometryPoint(FXObject *sender, FXSelector sel, void *ptr)
FXButton * myCancelButton
cancel button
FXButton * myResetButton
cancel button
GNEGeometryPointDialog & operator=(const GNEGeometryPointDialog &)=delete
Invalidated assignment operator.
FXTextField * myTextFieldLonLat
text field for lon, Lat
long onCmdReset(FXObject *, FXSelector, void *)
event after press cancel button
GNEGeometryPointDialog(const GNEGeometryPointDialog &)=delete
Invalidated copy constructor.
GNEViewNet * myViewNet
viewNet
Position * myPos
position to be edited
const Position myOriginalPos
original position (used for reset)
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37