QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
An index for tiled scene data providers. More...
#include <qgstiledsceneindex.h>
Public Member Functions | |
QgsTiledSceneIndex (const QgsTiledSceneIndex &other) | |
QgsTiledSceneIndex (QgsAbstractTiledSceneIndex *index=nullptr) | |
Constructor for QgsTiledSceneIndex. | |
~QgsTiledSceneIndex () | |
Qgis::TileChildrenAvailability | childAvailability (long long id) const |
Returns the availability for a tile's children. | |
QVector< long long > | childTileIds (long long id) const |
Returns a list of the tile IDs of any children for the tile with matching id. | |
bool | fetchHierarchy (long long id, QgsFeedback *feedback=nullptr) |
Populates the tile with the given id by fetching any sub datasets attached to the tile. | |
QgsTiledSceneTile | getTile (long long id) |
Returns the tile with matching id, or an invalid tile if the matching tile is not available. | |
QVector< long long > | getTiles (const QgsTiledSceneRequest &request) |
Returns the list of tile IDs which match the given request. | |
bool | isValid () const |
Returns true if the index is valid. | |
QgsTiledSceneIndex & | operator= (const QgsTiledSceneIndex &other) |
long long | parentTileId (long long id) const |
Returns the tile ID of the parent tile of the tile with matching id, or -1 if the tile has no parent. | |
QByteArray | retrieveContent (const QString &uri, QgsFeedback *feedback=nullptr) |
Retrieves index content for the specified uri. | |
QgsTiledSceneTile | rootTile () const |
Returns the root tile for the index. | |
An index for tiled scene data providers.
This is a shallow copy, implicitly shared container for an underlying QgsAbstractTiledSceneIndex implementation.
The class is thread safe and can be used safely across multiple threads or transferred between threads.
Definition at line 146 of file qgstiledsceneindex.h.
|
explicit |
Constructor for QgsTiledSceneIndex.
The specified index implementation will be transferred to the index.
Definition at line 55 of file qgstiledsceneindex.cpp.
|
default |
QgsTiledSceneIndex::QgsTiledSceneIndex | ( | const QgsTiledSceneIndex & | other | ) |
Definition at line 63 of file qgstiledsceneindex.cpp.
Qgis::TileChildrenAvailability QgsTiledSceneIndex::childAvailability | ( | long long | id | ) | const |
Returns the availability for a tile's children.
Definition at line 123 of file qgstiledsceneindex.cpp.
QVector< long long > QgsTiledSceneIndex::childTileIds | ( | long long | id | ) | const |
Returns a list of the tile IDs of any children for the tile with matching id.
Definition at line 107 of file qgstiledsceneindex.cpp.
bool QgsTiledSceneIndex::fetchHierarchy | ( | long long | id, |
QgsFeedback * | feedback = nullptr |
||
) |
Populates the tile with the given id by fetching any sub datasets attached to the tile.
Blocks while the child fetching is in progress.
Returns true
if the population was successful.
Definition at line 131 of file qgstiledsceneindex.cpp.
QgsTiledSceneTile QgsTiledSceneIndex::getTile | ( | long long | id | ) |
Returns the tile with matching id, or an invalid tile if the matching tile is not available.
Definition at line 91 of file qgstiledsceneindex.cpp.
QVector< long long > QgsTiledSceneIndex::getTiles | ( | const QgsTiledSceneRequest & | request | ) |
Returns the list of tile IDs which match the given request.
May return an empty list if no data satisfies the request.
Definition at line 115 of file qgstiledsceneindex.cpp.
bool QgsTiledSceneIndex::isValid | ( | ) | const |
Returns true
if the index is valid.
Definition at line 78 of file qgstiledsceneindex.cpp.
QgsTiledSceneIndex & QgsTiledSceneIndex::operator= | ( | const QgsTiledSceneIndex & | other | ) |
Definition at line 69 of file qgstiledsceneindex.cpp.
long long QgsTiledSceneIndex::parentTileId | ( | long long | id | ) | const |
Returns the tile ID of the parent tile of the tile with matching id, or -1 if the tile has no parent.
Definition at line 99 of file qgstiledsceneindex.cpp.
QByteArray QgsTiledSceneIndex::retrieveContent | ( | const QString & | uri, |
QgsFeedback * | feedback = nullptr |
||
) |
Retrieves index content for the specified uri.
The content is cached within the index, so multiple calls are potentially cost-free.
The optional feedback argument can be used the cancel the request early.
Definition at line 139 of file qgstiledsceneindex.cpp.
QgsTiledSceneTile QgsTiledSceneIndex::rootTile | ( | ) | const |
Returns the root tile for the index.
Definition at line 83 of file qgstiledsceneindex.cpp.