-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathqtMapCoordinatesWidget.h
More file actions
48 lines (36 loc) · 1.25 KB
/
qtMapCoordinatesWidget.h
File metadata and controls
48 lines (36 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*=========================================================================
Program: Visualization Toolkit
Module: vtkMap
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME qtMapCoordinatesWdiget - Numerical display of geo coords & zoom level
// .SECTION Description
//
#ifndef __qtMapCoordinatesWidget_h
#define __qtMapCoordinatesWidget_h
#include <QWidget>
class vtkMap;
// Forward Qt class declarations
class Ui_qtMapCoordinatesWidget;
class qtMapCoordinatesWidget : public QWidget
{
Q_OBJECT
public:
qtMapCoordinatesWidget(QWidget* parent = 0);
~qtMapCoordinatesWidget() override;
void setCoordinates(double center[2], int zoom);
void getCoordinates(double center[2], int& zoom) const;
public slots:
void refresh();
protected:
/// Map instance
vtkMap* Map;
/// Designer form
Ui_qtMapCoordinatesWidget* UI;
};
#endif // __qtMapCoordinatesWidget_h