QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
Viewer3DMapProvider.h
Go to the documentation of this file.
1#pragma once
2
3#include <utility>
4
5#include <QtCore/QObject>
6#include <QtPositioning/QGeoCoordinate>
7#include <QtQmlIntegration/QtQmlIntegration>
8
9class Viewer3DMapProvider : public QObject
10{
11 Q_OBJECT
12 QML_ELEMENT
13 QML_UNCREATABLE("Base class")
14
15 Q_PROPERTY(bool mapLoaded READ mapLoaded NOTIFY mapChanged)
16
17public:
18 explicit Viewer3DMapProvider(QObject *parent = nullptr) : QObject(parent) {}
19
20 virtual bool mapLoaded() const = 0;
21 virtual QGeoCoordinate gpsRef() const = 0;
22
26 virtual std::pair<QGeoCoordinate, QGeoCoordinate> mapBoundingBox() const = 0;
27
28signals:
29 void gpsRefChanged(QGeoCoordinate newGpsRef, bool isRefSet);
30 void mapChanged();
31};
Viewer3DMapProvider(QObject *parent=nullptr)
virtual std::pair< QGeoCoordinate, QGeoCoordinate > mapBoundingBox() const =0
virtual bool mapLoaded() const =0
virtual QGeoCoordinate gpsRef() const =0
void gpsRefChanged(QGeoCoordinate newGpsRef, bool isRefSet)