VR-Exchange 2.6 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
widgets
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 <QDialog>
14
15
class
DtString
;
16
17
class
QLabel;
18
class
QTextEdit;
19
20
namespace
MAKVrExchange
21
{
22
25
class
DT_DLL_WIDGETS
DtLocationPickerMapDialog
:
public
QDialog
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
71
int
myMapDisplayHeight
;
72
int
myWorldCornerX
;
73
int
myWorldCornerY
;
74
76
79
80
double
myZoomDelta
;
81
double
myMinZoomLevel
;
82
double
myMaxZoomLevel
;
83
double
myCurrentZoomLevel
;
84
86
89
90
int
myMouseX
;
91
int
myMouseY
;
92
bool
myMapPanningFlag
;
93
bool
myRadiusSizingFlag
;
94
96
99
100
double
myWorldX
;
101
double
myWorldY
;
102
double
myRadius
;
103
double
myLocalRadius
;
104
106
107
QLabel*
myMapLabel
;
108
QPixmap*
myMapPixmap
;
109
QPixmap*
myVisibleMapArea
;
110
111
QPushButton*
myOkButton
;
112
QPushButton*
myCancelButton
;
113
114
};
115
116
}
Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (
www.mak.com
)