6#ifndef MARBLE_MARBLETEXTURELAYER_H
7#define MARBLE_MARBLETEXTURELAYER_H
11#include "MarbleGlobal.h"
23class GeoSceneAbstractTileProjection;
24class GeoSceneTextureTileDataset;
25class HttpDownloadManager;
31class MARBLE_EXPORT TextureLayer :
public TileLayer
36 TextureLayer(HttpDownloadManager *downloadManager, PluginManager *pluginManager,
const SunLocator *sunLocator,
QAbstractItemModel *groundOverlayModel);
38 ~TextureLayer()
override;
40 void addSeaDocument(
const GeoDataDocument *seaDocument);
42 void addLandDocument(
const GeoDataDocument *landDocument);
44 int layerCount()
const override;
52 QString addTextureLayer(GeoSceneTextureTileDataset *texture);
59 void removeTextureLayer(
const QString &key);
61 bool showSunShading()
const;
62 bool showCityLights()
const;
68 int tileZoomLevel()
const;
70 QSize tileSize()
const override;
72 const GeoSceneAbstractTileProjection *tileProjection()
const override;
74 int tileColumnCount(
int level)
const override;
75 int tileRowCount(
int level)
const override;
77 quint64 volatileCacheLimit()
const;
79 int preferredRadiusCeil(
int radius)
const;
80 int preferredRadiusFloor(
int radius)
const;
82 RenderState renderState()
const override;
84 QString runtimeTrace()
const override;
86 bool render(GeoPainter *painter, ViewportParams *viewport,
const QString &renderPos =
QLatin1String(
"NONE"), GeoSceneLayer *layer =
nullptr)
override;
89 void setShowRelief(
bool show);
91 void setShowSunShading(
bool show);
93 void setShowCityLights(
bool show);
95 void setShowTileId(
bool show);
103 void setNeedsUpdate();
106 const GeoSceneGroup *textureLayerSettings,
110 void setVolatileCacheLimit(quint64 kilobytes);
116 void downloadStackedTile(
const TileId &stackedTileId);
119 void tileLevelChanged(
int);
120 void repaintNeeded();
123 Q_PRIVATE_SLOT(d,
void requestDelayedRepaint())
124 Q_PRIVATE_SLOT(d,
void updateTextureLayers())
125 Q_PRIVATE_SLOT(d,
void updateTile(const TileId &tileId, const
QImage &tileImage))
126 Q_PRIVATE_SLOT(d,
void addGroundOverlays(const
QModelIndex &parent,
int first,
int last))
127 Q_PRIVATE_SLOT(d,
void removeGroundOverlays(const
QModelIndex &parent,
int first,
int last))
128 Q_PRIVATE_SLOT(d,
void resetGroundOverlaysCache())
Q_INVOKABLE void setProjection(uint proj)
const QList< QKeySequence > & reload()
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 Sat Dec 21 2024 17:04:14 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.