VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLocationEntryWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <QtWidgets/QWidget>
15 
16 namespace makVrv
17 {
18  class DtDe;
19 
23  // and false indicating invalid input. The widget will convert the location entered to lat / lon (radians). lat/lon results
26  class DT_DLL_VRVCOREQT DtLocationEntryWidget : public QWidget
27  {
28  Q_OBJECT
29 
30  public:
32  DtLocationEntryWidget(DtDe& de, QWidget* parent=0);
33 
35  virtual ~DtLocationEntryWidget();
36 
38  DtLocationEntryWidget(const DtLocationEntryWidget& orig) = delete;
39 
41  DtLocationEntryWidget& operator = (const DtLocationEntryWidget& orig) = delete;
42 
43 
45  virtual void initialize();
46 
48  virtual void getValue(double& lat, double& lon) const;
49 
52  virtual bool valueValid() const;
53 
54  signals:
55 
57  void hasValidValue(bool valid);
58 
59  protected:
60 
62  virtual void setupUi() = 0;
63 
65  virtual void connectSignals() = 0;
66 
68  virtual void onPositionEdited() = 0;
69 
70  protected:
72  bool myEnabled;
73 
74  double myLat;
75  double myLon;
77  };
78 }
double myLat
Definition: DtLocationEntryWidget.h:74
bool myEnabled
Definition: DtLocationEntryWidget.h:72
DtDe & myDe
Definition: DtLocationEntryWidget.h:71
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
bool myHasValidValue
Definition: DtLocationEntryWidget.h:76
DtLocationEntryWidget declaration. Abstact base class for widgets that manage location input to the G...
Definition: DtLocationEntryWidget.h:26
double myLon
Definition: DtLocationEntryWidget.h:75
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

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)