14 QML_NAMED_ELEMENT(QGCViewer3DManager)
16 Q_MOC_INCLUDE(
"Viewer3DMapProvider.h")
33 QGeoCoordinate
gpsRef()
const {
return _gpsRef; }
38 static bool coordinateWithinRegion(
const QGeoCoordinate &coordinate,
const QGeoCoordinate &bbMin,
const QGeoCoordinate &bbMax);
48 enum class GpsRefSource {
54 void _onGpsRefChanged(
const QGeoCoordinate &newGpsRef,
bool isRefSet);
55 void _onActiveVehicleChanged(
Vehicle *vehicle);
56 void _onActiveVehicleCoordinateChanged(
const QGeoCoordinate &newCoordinate);
57 void _onEnabledChanged(
const QVariant &value);
58 void _updateVehicleOutsideMapRegion();
61 Vehicle *_activeVehicle =
nullptr;
63 QGeoCoordinate _gpsRef;
64 GpsRefSource _gpsRefSource = GpsRefSource::None;
66 bool _vehicleOutsideMapRegion =
false;
static bool coordinateWithinRegion(const QGeoCoordinate &coordinate, const QGeoCoordinate &bbMin, const QGeoCoordinate &bbMax)
Returns true if the coordinate lies within the lat/lon bounding box. Invalid inputs return false.