-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqgsmaptoolsensorinfo.h
69 lines (52 loc) · 2.41 KB
/
qgsmaptoolsensorinfo.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/***************************************************************************
qgsmaptoolsensorinfo.h - description
--------------------------------------
begin : June 2013
copyright : (C) 2013 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSMAPTOOLSENSORINFO_H
#define QGSMAPTOOLSENSORINFO_H
#ifndef M_PI
#define M_PI 3.1415926535897931159979634685
#endif
#include "qgsmaptool.h"
class QgsRubberBand;
class QgsSensorInfoDialog;
class QgsVectorLayer;
class QDateTime;
class QgsMapToolSensorInfo: public QgsMapTool
{
Q_OBJECT
public:
QgsMapToolSensorInfo( QgsMapCanvas* canvas );
~QgsMapToolSensorInfo();
void canvasMoveEvent( QgsMapMouseEvent* e ) override;
void canvasPressEvent( QgsMapMouseEvent* e ) override;
void canvasReleaseEvent( QgsMapMouseEvent* e ) override;
private:
/**Returns sensor layers in the project*/
QList< QgsMapLayer* > sensorLayers();
/**Does GetDataAvailability request for station id*/
int getDataAvailability( const QString& serviceUrl, const QString& station_id,
QStringList& observedPropertyList, QList< QDateTime >& begin,
QList< QDateTime >& end, QStringList& filteredPropertyList, QList< QDateTime >& filteredBeginList,
QList< QDateTime >& filteredEndList );
bool mDataAvailabilityRequestFinished;
QgsSensorInfoDialog* mSensorInfoDialog;
QgsRubberBand* mRubberBand;
bool mDragging;
QRect mSelectRect;
private slots:
void dataAvailabilityRequestFinished();
void showSensorInfoDialog();
};
#endif // QGSMAPTOOLSENSORINFO_H