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/QLoggingCategory>
6#include <QtCore/QObject>
7#include <QtPositioning/QGeoCoordinate>
8#include <QtQmlIntegration/QtQmlIntegration>
9
10Q_DECLARE_LOGGING_CATEGORY(Viewer3DMapProviderLog)
11
12class Viewer3DMapProvider : public QObject
13{
14 Q_OBJECT
15 QML_ELEMENT
16 QML_UNCREATABLE("Base class")
17
18public:
19 explicit Viewer3DMapProvider(QObject *parent = nullptr) : QObject(parent) {}
20
21 virtual bool mapLoaded() const = 0;
22 virtual QGeoCoordinate gpsRef() const = 0;
23 virtual std::pair<QGeoCoordinate, QGeoCoordinate> mapBoundingBox() const = 0;
24
25signals:
26 void gpsRefChanged(QGeoCoordinate newGpsRef, bool isRefSet);
27 void mapChanged();
28};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
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)