8#ifndef MARBLE_VECTORTILEMODEL_H
9#define MARBLE_VECTORTILEMODEL_H
16#include "GeoDataLatLonBox.h"
25class GeoDataTreeModel;
26class GeoSceneVectorTileDataset;
35 TileRunner(TileLoader *loader,
const GeoSceneVectorTileDataset *texture,
const TileId &
id);
39 void documentLoaded(
const TileId &
id, GeoDataDocument *document);
42 TileLoader *
const m_loader;
43 const GeoSceneVectorTileDataset *
const m_tileDataset;
47class VectorTileModel :
public QObject
52 explicit VectorTileModel(TileLoader *loader,
const GeoSceneVectorTileDataset *layer, GeoDataTreeModel *treeModel,
QThreadPool *threadPool);
54 void setViewport(
const GeoDataLatLonBox &bbox);
58 const GeoSceneVectorTileDataset *layer()
const;
60 void removeTile(GeoDataDocument *document);
62 int tileZoomLevel()
const;
64 int cachedDocuments()
const;
69 void updateTile(
const TileId &
id, GeoDataDocument *document);
74 void tileCompleted(
const TileId &tileId);
75 void tileAdded(GeoDataDocument *document);
76 void tileRemoved(GeoDataDocument *document);
79 void cleanupTile(GeoDataObject *feature);
82 void removeTilesOutOfView(
const GeoDataLatLonBox &boundingBox);
83 void queryTiles(
int tileZoomLevel,
const QRect &rect);
86 struct CacheDocument {
88 CacheDocument(GeoDataDocument *doc, VectorTileModel *vectorTileModel,
const GeoDataLatLonBox &boundingBox);
93 GeoDataLatLonBox latLonBox()
const
99 Q_DISABLE_COPY(CacheDocument)
101 GeoDataDocument *
const m_document;
102 VectorTileModel *
const m_vectorTileModel;
103 GeoDataLatLonBox m_boundingBox;
106 TileLoader *
const m_loader;
107 const GeoSceneVectorTileDataset *
const m_layer;
108 GeoDataTreeModel *
const m_treeModel;
115 bool m_deleteDocumentsLater;
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:54 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.