Marble
9 #ifndef MARBLE_GEOSCENETILEDATASET_H
10 #define MARBLE_GEOSCENETILEDATASET_H
16 #include "GeoSceneAbstractDataset.h"
17 #include "GeoSceneAbstractTileProjection.h"
18 #include "MarbleGlobal.h"
19 #include "GeoDataLatLonBox.h"
39 class GEODATA_EXPORT GeoSceneTileDataset :
public GeoSceneAbstractDataset
42 enum StorageLayout {
Marble, OpenStreetMap, TileMapService };
44 explicit GeoSceneTileDataset(
const QString& name );
45 ~GeoSceneTileDataset()
override;
46 const char* nodeType()
const override;
49 void setSourceDir(
const QString& sourceDir );
52 void setInstallMap(
const QString& installMap );
54 StorageLayout storageLayout()
const;
55 void setStorageLayout(
const StorageLayout );
57 void setServerLayout(
const ServerLayout * );
58 const ServerLayout *serverLayout()
const;
60 int levelZeroColumns()
const;
61 void setLevelZeroColumns(
const int );
63 int levelZeroRows()
const;
64 void setLevelZeroRows(
const int );
66 bool hasMaximumTileLevel()
const;
67 int maximumTileLevel()
const;
68 void setMaximumTileLevel(
const int );
70 int minimumTileLevel()
const;
71 void setMinimumTileLevel(
int level);
73 void setTileLevels(
const QString &tileLevels);
78 const QSize tileSize()
const;
79 void setTileSize(
const QSize &tileSize );
85 void setLatLonBox(
const GeoDataLatLonBox &box );
86 GeoDataLatLonBox latLonBox()
const;
88 void setTileProjection(GeoSceneAbstractTileProjection::Type projectionType);
90 const GeoSceneAbstractTileProjection * tileProjection()
const;
91 GeoSceneAbstractTileProjection::Type tileProjectionType()
const;
94 void setBlending(
const QString &name );
102 QUrl downloadUrl(
const TileId & )
const;
103 void addDownloadUrl(
const QUrl & );
105 QString relativeTileFileName(
const TileId & )
const;
110 void addDownloadPolicy(
const DownloadUsage usage,
const int maximumConnections );
113 Q_DISABLE_COPY( GeoSceneTileDataset )
118 StorageLayout m_storageLayoutMode;
119 const ServerLayout *m_serverLayout;
120 int m_levelZeroColumns;
122 int m_minimumTileLevel;
123 int m_maximumTileLevel;
125 mutable QSize m_tileSize;
126 GeoDataLatLonBox m_latLonBox;
127 GeoSceneAbstractTileProjection *m_tileProjection;
138 inline bool GeoSceneTileDataset::hasMaximumTileLevel()
const
140 return m_maximumTileLevel != -1;
143 inline QString GeoSceneTileDataset::blending()
const
148 inline void GeoSceneTileDataset::setBlending(
const QString &name )
DownloadUsage
This enum is used to describe the type of download.
Binds a QML item to a specific geodetic location in screen coordinates.
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:26 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.