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
15public:
16 explicit Viewer3DMapProvider(QObject *parent = nullptr) : QObject(parent) {}
17
18 virtual bool mapLoaded() const = 0;
19 virtual QGeoCoordinate gpsRef() const = 0;
20 virtual std::pair<QGeoCoordinate, QGeoCoordinate> mapBoundingBox() const = 0;
21
22signals:
23 void gpsRefChanged(QGeoCoordinate newGpsRef, bool isRefSet);
24 void mapChanged();
25};
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)