marble
VectorTileModel.cpp
Go to the documentation of this file.
29 TileRunner::TileRunner( TileLoader *loader, const GeoSceneVectorTile *texture, const TileId &id ) :
38 GeoDataDocument *const document = m_loader->loadTileVectorData( m_texture, m_id, DownloadBrowse );
57 VectorTileModel::VectorTileModel( TileLoader *loader, const GeoSceneVectorTile *layer, GeoDataTreeModel *treeModel, QThreadPool *threadPool ) :
68 // choose the smaller dimension for selecting the tile level, leading to higher-resolution results
105 // Sometimes the formula returns wrong huge values, x and y have to be between 0 and 2^ZoomLevel
183 connect( job, SIGNAL(documentLoaded(TileId,GeoDataDocument*)), this, SLOT(updateTile(TileId,GeoDataDocument*)) );
200 return (unsigned int)floor((1.0 - log( tan(lat * M_PI/180.0) + 1.0 / cos(lat * M_PI/180.0)) / M_PI) / 2.0 * maxTileY);
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
int width() const
The representation of GeoData in a model This class represents all available data given by kml-data f...
Definition: GeoDataTreeModel.h:32
void documentLoaded(const TileId &id, GeoDataDocument *document)
void setViewport(const GeoDataLatLonBox &bbox, int radius)
Definition: VectorTileModel.cpp:66
int levelZeroColumns() const
Definition: GeoSceneTiled.cpp:97
Browsing mode, normal operation of Marble, like a web browser.
Definition: MarbleGlobal.h:166
GeoDataDocument * loadTileVectorData(GeoSceneVectorTile const *textureLayer, TileId const &tileId, DownloadUsage const usage)
Definition: TileLoader.cpp:90
int addDocument(GeoDataDocument *document)
Definition: GeoDataTreeModel.cpp:821
int maximumTileLevel() const
Definition: GeoSceneTiled.cpp:117
QString name() const
Definition: GeoSceneAbstractDataset.cpp:38
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:93
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:135
Definition: VectorTileModel.h:33
VectorTileModel(TileLoader *loader, const GeoSceneVectorTile *layer, GeoDataTreeModel *treeModel, QThreadPool *threadPool)
Definition: VectorTileModel.cpp:57
void updateTile(const TileId &id, GeoDataDocument *document)
Definition: VectorTileModel.cpp:155
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:156
TileRunner(TileLoader *loader, const GeoSceneVectorTile *texture, const TileId &id)
Definition: VectorTileModel.cpp:29
Definition: TileId.h:27
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:114
int height() const
void start(QRunnable *runnable, int priority)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
Definition: TileLoader.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.