VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
locationPickerMapDialog.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <widgets/dllExport.h>
13 #include <QtGui/QDialog>
14 
15 class DtString;
16 
17 class QLabel;
18 class QTextEdit;
19 
20 namespace MAKVrExchange
21 {
22 
26  { Q_OBJECT;
27  public:
28 
30  DtLocationPickerMapDialog( QWidget* parent = 0 );
31 
33  virtual ~DtLocationPickerMapDialog();
34 
37  virtual void initialize();
38 
40  virtual void setLocation( double lat, double lon, double radius );
41 
43  virtual void location( double& lat, double& lon, double& radius );
44 
45  protected:
46 
48  virtual void setupGui();
49 
51  virtual void connectToSignals();
52 
54  virtual void initializeMap( const DtString& mapFile );
55 
58  virtual bool eventFilter( QObject* obj, QEvent* event );
59 
61  virtual void refreshMap();
62 
63  protected:
64 
65  // Static storage for the earth's radius (used for curvature calculations).
66  static const double theEarthRadius;
67 
70 
74 
76 
79 
80  double myZoomDelta;
84 
86 
89 
90  int myMouseX;
91  int myMouseY;
94 
96 
99 
100  double myWorldX;
101  double myWorldY;
102  double myRadius;
104 
106 
107  QLabel* myMapLabel;
108  QPixmap* myMapPixmap;
110 
111  QPushButton* myOkButton;
112  QPushButton* myCancelButton;
113 
114  };
115 
116 }

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)