Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Documentation
  • Loading branch information
nyalldawson committed May 23, 2023
1 parent c19c442 commit d0f61c9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/core/vectortile/qgsvectortiledataprovider.h
Expand Up @@ -31,12 +31,29 @@ class QgsVectorTileMatrixSet;

#define SIP_NO_FILE

/**
* Shared data class for vector tile layer data providers.
*
* \note Not available in Python bindings
*
* \ingroup core
* \since QGIS 3.32
*/
class QgsVectorTileDataProviderSharedData
{
public:
QgsVectorTileDataProviderSharedData();

bool getCachedTileData( QgsVectorTileRawData &data, QgsTileXYZ );
/**
* Retrieves previously cached raw tile data for a tile with matching \a id.
*
* Returns TRUE if tile data was already cached and could be retrieved.
*/
bool getCachedTileData( QgsVectorTileRawData &data, QgsTileXYZ id );

/**
* Stores raw tile data in the shared cache.
*/
void storeCachedTileData( const QgsVectorTileRawData &data );

QCache< QgsTileXYZ, QgsVectorTileRawData > mTileCache;
Expand Down

0 comments on commit d0f61c9

Please sign in to comment.