VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGotoWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrvCoreQt/vrvCoreQt.h>
15 
17 #include <vrvUtil/DtUnicode.h>
18 
19 // VR-Link includes
20 #include <matrix/vlVector.h>
21 #include <matrix/geodeticCoord.h>
22 
23 // Qt includes
24 #include <QtWidgets/QWidget>
25 #include <QtGui/QPixmap>
26 
27 class QVBoxLayout;
28 class QLineEdit;
29 class QButtonGroup;
30 class QRadioButton;
31 class QPushButton;
32 class QLabel;
33 class QGroupBox;
34 class QString;
35 class QComboBox;
36 
37 namespace makVrv
38 {
39  class DtLocationEntryWidget;
40  class DtDmsEntryWidget;
41  class DtDdmEntryWidget;
42  class DtDecEntryWidget;
43  class DtMgrsEntryWidget;
44  class DtGeocentricEntryWidget;
45  class DtProjectedDatabaseEntryWidget;
46  class DtGarsEntryWidget;
47  class DtUtmEntryWidget;
48  class QAbstractButton;
49 
61  : public QWidget
62  , public DtGotoWidgetInterface
63  {
64  Q_OBJECT
65 
66  public:
67 
69  DtGotoWidget(makVrv::DtDe& de, QWidget* parent);
70 
72  DtGotoWidget(const DtGotoWidget& orig) = delete;
73 
74  // \brief default constructor
75  DtGotoWidget() = delete;
76 
78  DtGotoWidget& operator = (const DtGotoWidget& orig) = delete;
79 
81  virtual ~DtGotoWidget();
82 
84  virtual void initialize();
85 
87 
90  virtual void setIsCoordinateSystemGeocentric(bool isGeocentric);
91 
93  virtual void setInputCoordinateSystem(makArchives::DtDisplayUnitsSettingsRecord::CoordSys sysType);
94 
96  virtual void addInputCoordinateSystem(const DtUnicode& sysName, makArchives::DtDisplayUnitsSettingsRecord::CoordSys sysType);
97 
99  virtual void setGotoType(GotoType addressOrLocation);
100 
104  virtual void setLocationFound(double lat, double lon);
105 
110  virtual void setAddressError(const DtUnicode& errorStr);
112 
113  protected:
114 
116  virtual void setupUi();
117 
119  virtual void connectSignals();
120 
121  public slots:
122 
124  virtual void onInputCoordSysChanged(int index);
125 
127  virtual void onGotoAddressChecked();
128 
130  virtual void onGotoLocationChecked();
131 
133  virtual void onHasValidValue(bool valid);
134 
136  virtual void onGoButtonClicked();
137 
139  virtual void onAddressChanged();
140 
141  protected:
142 
144  virtual QLayout* createGotoWidgets();
145 
147  virtual QLayout* createGoButton();
148 
150  virtual void updateLocationEntry(makArchives::DtDisplayUnitsSettingsRecord::CoordSys sysType);
151 
153  virtual void updateGotoType(GotoType addressOrLocation);
154 
155  protected:
156 
158  {
159  int itemIndex = -1;
162  };
163 
164  protected:
166 
168 
169  QButtonGroup* mySelectorButtonsGroup;
172 
176 
178 
187 
191 
194 
196 
197  QVBoxLayout* myMainLayout;
198 
200  };
201 }
makArchives::DtDisplayUnitsSettingsRecord::CoordSys itemCoordSys
Definition: DtGotoWidget.h:161
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
QButtonGroup * mySelectorButtonsGroup
Definition: DtGotoWidget.h:169
DtDecEntryWidget * myGotoDecWidget
Definition: DtGotoWidget.h:181
QLabel * myCoordSysLabel
Definition: DtGotoWidget.h:173
QLabel * myAddressWarningLabel
Definition: DtGotoWidget.h:188
makArchives::DtDisplayUnitsSettingsRecord::CoordSys myCurrentInputCoordSys
Definition: DtGotoWidget.h:192
QLabel * myGotoAddressLabel
Definition: DtGotoWidget.h:174
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
DtLocationEntryWidget * myCurrentLocationEntryWidget
Definition: DtGotoWidget.h:193
QRadioButton * myGotoAddressRadioButton
Definition: DtGotoWidget.h:170
Contains DLL export macros.
CoordSys
Enumeration of the different coordinate system types.
Definition: DtDisplayUnitsSettingsRecord.h:30
DtGeocentricEntryWidget declaration. Widget for managing input of a geocentric location. It provides 3 edit boxes, for X, Y, and Z (in meters). When all three are filled in with current values (there is a limit of +/- 100,000,000.0 meters per coordinate) the widget will convert the result to a decimal latitude and longitude, in radians. It will raise its hasValidValue signal as true. When needed, the current value can be retrieved through the getValue method.
Definition: DtGeocentricEntryWidget.h:36
QLineEdit * myAddress
Definition: DtGotoWidget.h:190
DtUtmEntryWidget declaration. Widget for managing input of UTM location. It provides 3 edit boxes...
Definition: DtUtmEntryWidget.h:35
QRadioButton * myGotoLocationRadioButton
Definition: DtGotoWidget.h:171
DtGeocentricEntryWidget * myGotoGeocentricWidget
Definition: DtGotoWidget.h:183
DtMgrsEntryWidget * myGotoMgrsWidget
Definition: DtGotoWidget.h:182
DtDe & myDe
Definition: DtGotoWidget.h:165
DtMgrsEntryWidget declaration. Widget for managing input of an MGRS location. It provides 4 edit boxe...
Definition: DtMgrsEntryWidget.h:32
DtGarsEntryWidget * myGotoGarsWidget
Definition: DtGotoWidget.h:185
DtDmsEntryWidget declaration. Widget for managing input of an lat/lon Degrees/Minutes/Seconds locatio...
Definition: DtDmsEntryWidget.h:35
QVBoxLayout * myMainLayout
Definition: DtGotoWidget.h:197
DtDdmEntryWidget * myGotoDdmWidget
Definition: DtGotoWidget.h:180
DtDecEntryWidget declaration. Widget for managing input of an lat/lon Decimal Degrees location...
Definition: DtDecEntryWidget.h:34
DtLocationEntryWidget declaration. Abstact base class for widgets that manage location input to the G...
Definition: DtLocationEntryWidget.h:26
DtUnicode itemText
Definition: DtGotoWidget.h:160
QLabel * myGotoLocationLabel
Definition: DtGotoWidget.h:175
DtUtmEntryWidget * myGotoUtmWidget
Definition: DtGotoWidget.h:186
DtCachedComboBoxItemInfo myDatabaseCoordinateSystemItemInfo
Definition: DtGotoWidget.h:199
DtDmsEntryWidget * myGotoDmsWidget
Definition: DtGotoWidget.h:179
Base class to provide boost signal/slot management.
GotoType
Enumeration for the way the location to go to is currently being input.
Definition: DtGotoWidgetInterface.h:24
QComboBox * myCoordSysComboBox
Definition: DtGotoWidget.h:177
DtProjectedDatabaseEntryWidget * myGotoDatabaseWidget
Definition: DtGotoWidget.h:184
Abstract interface for DtGotoWidget. This defines the interface that will be used by the DtGotoLogic ...
Definition: DtGotoWidgetInterface.h:36
DtProjectedDatabaseEntryWidget declaration. Widget for managing input of a location on a cartesian (n...
Definition: DtProjectedDatabaseEntryWidget.h:41
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtGarsEntryWidget declaration. Widget for managing input of a GARS location. It provides 3 edit boxes...
Definition: DtGarsEntryWidget.h:36
DtDdmEntryWidget declaration. Widget for managing input of an lat/lon Degrees/ Decimal Minutes locati...
Definition: DtDdmEntryWidget.h:35
GotoType myCurrentGotoType
Definition: DtGotoWidget.h:167
DtGotoWidget declaration. The DtGotoWidget and DtGotoLogic work together to provide a user interface ...
Definition: DtGotoWidget.h:60
QPushButton * myGoButton
Definition: DtGotoWidget.h:195
QPixmap myAddressWarningIcon
Definition: DtGotoWidget.h:189

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)