Marble
6 #ifndef MARBLE_MARBLETEXTURELAYER_H
7 #define MARBLE_MARBLETEXTURELAYER_H
11 #include "MarbleGlobal.h"
21 class GeoDataDocument;
23 class GeoSceneAbstractTileProjection;
24 class GeoSceneTextureTileDataset;
25 class HttpDownloadManager;
31 class MARBLE_EXPORT TextureLayer :
public TileLayer
36 TextureLayer( HttpDownloadManager *downloadManager,
37 PluginManager* pluginManager,
38 const SunLocator *sunLocator,
41 ~TextureLayer()
override;
43 void addSeaDocument(
const GeoDataDocument *seaDocument );
45 void addLandDocument(
const GeoDataDocument *landDocument );
47 int layerCount()
const;
55 QString addTextureLayer(GeoSceneTextureTileDataset *texture);
62 void removeTextureLayer(
const QString &key);
64 bool showSunShading()
const;
65 bool showCityLights()
const;
71 int tileZoomLevel()
const;
73 QSize tileSize()
const;
75 const GeoSceneAbstractTileProjection *tileProjection()
const;
77 int tileColumnCount(
int level )
const;
78 int tileRowCount(
int level )
const;
80 quint64 volatileCacheLimit()
const;
82 int preferredRadiusCeil(
int radius )
const;
83 int preferredRadiusFloor(
int radius )
const;
85 RenderState renderState()
const override;
87 QString runtimeTrace()
const override;
89 bool render( GeoPainter *painter, ViewportParams *viewport,
91 GeoSceneLayer *layer =
nullptr )
override;
94 void setShowRelief(
bool show );
96 void setShowSunShading(
bool show );
98 void setShowCityLights(
bool show );
100 void setShowTileId(
bool show );
108 void setNeedsUpdate();
112 void setVolatileCacheLimit( quint64 kilobytes );
118 void downloadStackedTile(
const TileId &stackedTileId );
121 void tileLevelChanged(
int );
122 void repaintNeeded();
125 Q_PRIVATE_SLOT( d,
void requestDelayedRepaint() )
126 Q_PRIVATE_SLOT( d,
void updateTextureLayers() )
127 Q_PRIVATE_SLOT( d,
void updateTile( const TileId &tileId, const
QImage &tileImage ) )
128 Q_PRIVATE_SLOT( d,
void addGroundOverlays( const
QModelIndex& parent,
int first,
int last ) )
129 Q_PRIVATE_SLOT( d,
void removeGroundOverlays( const
QModelIndex& parent,
int first,
int last ) )
130 Q_PRIVATE_SLOT( d,
void resetGroundOverlaysCache() )
const QList< QKeySequence > & reload()
Binds a QML item to a specific geodetic location in screen coordinates.
Projection
This enum is used to choose the projection shown in the view.
Q_INVOKABLE void setProjection(uint proj)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:28 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.