Eclipse SUMO - Simulation of Urban MObility
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 
31 class GNEViewNet;
32 
33 // ===========================================================================
34 // class definitions
35 // ===========================================================================
36 
44 class GNEGeometryPointDialog : protected FXTopWindow {
46  FXDECLARE_ABSTRACT(GNEGeometryPointDialog)
47 
48 public:
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 
71 protected:
74 
77 
79  FXTextField* myTextFieldXY = nullptr;
80 
82  FXTextField* myTextFieldLonLat = nullptr;
83 
85  Position* myPos = nullptr;
86 
89 
91  const bool myGeo;
92 
93 private:
95  FXButton* myAcceptButton = nullptr;
96 
98  FXButton* myCancelButton = nullptr;
99 
101  FXButton* myResetButton = nullptr;
102 
105 
108 };
Dialog to edit geometry points.
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 * myAcceptButton
accept button
FXButton * myResetButton
cancel button
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
GNEGeometryPointDialog & operator=(const GNEGeometryPointDialog &)=delete
Invalidated assignment operator.
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