-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
53 lines (43 loc) · 1.16 KB
/
mainwindow.h
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
49
50
51
52
53
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QLabel>
#include "mapscene.h"
#include "gisdatamanager.h"
#include "mapview.h"
#include "geodatamodel.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
Ui::MainWindow *ui;
MapView* m_MapView; //view
MapScene *m_scene; //场景
GeoDataModel *m_GISDataModel; //gis数据管理
private:
void drawAllData();
private:
void do_mouseMovePoint(QPoint point);
void do_mouseDragPoint(QPoint point);
void do_mouseWheelMove(float angle);
private:
QLabel *labCurCS; //当前坐标系
QLabel *labViewCord; //当前view坐标
QLabel *labSceneCord; //当前scene坐标
QLabel *labScale; //当前缩放比
QLabel *labCSCord; //当前地理坐标
QLabel *labItemCord; //当前要素坐标
QLabel *labItemInfo; //当前要素信息
// QWidget interface
protected:
void mousePressEvent(QMouseEvent *event);
private slots:
void on_actionOpenFile_triggered();
};
#endif // MAINWINDOW_H