openpilot v0.9.6 release
date: 2024-02-21T23:02:42 master commit: 0b4d08fab8e35a264bc7383e878538f8083c33e5
This commit is contained in:
54
third_party/maplibre-native-qt/include/qgeomap.hpp
vendored
Normal file
54
third_party/maplibre-native-qt/include/qgeomap.hpp
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
// Copyright (C) 2023 MapLibre contributors
|
||||
// Copyright (C) 2017 The Qt Company Ltd.
|
||||
// Copyright (C) 2017 Mapbox, Inc.
|
||||
|
||||
// SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "export_location.hpp"
|
||||
|
||||
#include <QMapLibre/Map>
|
||||
#include <QMapLibre/StyleParameter>
|
||||
|
||||
#include <QtLocation/private/qgeomap_p.h>
|
||||
|
||||
namespace QMapLibre {
|
||||
|
||||
class QGeoMapMapLibrePrivate;
|
||||
|
||||
class Q_MAPLIBRE_LOCATION_EXPORT QGeoMapMapLibre : public QGeoMap {
|
||||
Q_OBJECT
|
||||
Q_DECLARE_PRIVATE(QGeoMapMapLibre)
|
||||
|
||||
public:
|
||||
explicit QGeoMapMapLibre(QGeoMappingManagerEngine *engine, QObject *parent = nullptr);
|
||||
~QGeoMapMapLibre() override;
|
||||
|
||||
[[nodiscard]] Capabilities capabilities() const override;
|
||||
|
||||
void setSettings(const Settings &settings);
|
||||
void setMapItemsBefore(const QString &mapItemsBefore);
|
||||
|
||||
void addStyleParameter(StyleParameter *parameter);
|
||||
void removeStyleParameter(StyleParameter *parameter);
|
||||
void clearStyleParameters();
|
||||
|
||||
private Q_SLOTS:
|
||||
// QMapLibre
|
||||
void onMapChanged(Map::MapChange);
|
||||
|
||||
// QDeclarativeGeoMapItemBase
|
||||
void onMapItemPropertyChanged();
|
||||
void onMapItemSubPropertyChanged();
|
||||
void onMapItemUnsupportedPropertyChanged();
|
||||
void onMapItemGeometryChanged();
|
||||
|
||||
// StyleParameter
|
||||
void onStyleParameterUpdated(StyleParameter *parameter);
|
||||
|
||||
private:
|
||||
QSGNode *updateSceneGraph(QSGNode *oldNode, QQuickWindow *window) override;
|
||||
};
|
||||
|
||||
} // namespace QMapLibre
|
||||
Reference in New Issue
Block a user