QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QgsVectorTileDataProviderSharedData Class Reference

Shared data class for vector tile layer data providers. More...

#include <qgsvectortiledataprovider.h>

Public Member Functions

 QgsVectorTileDataProviderSharedData ()
 
bool getCachedTileData (QgsVectorTileRawData &data, QgsTileXYZ id)
 Retrieves previously cached raw tile data for a tile with matching id.
 
void storeCachedTileData (const QgsVectorTileRawData &data)
 Stores raw tile data in the shared cache.
 

Public Attributes

QMutex mMutex
 Access to all data members is guarded by the mutex.
 
QCache< QgsTileXYZ, QgsVectorTileRawDatamTileCache
 

Detailed Description

Shared data class for vector tile layer data providers.

Note
Not available in Python bindings
Since
QGIS 3.32

Definition at line 42 of file qgsvectortiledataprovider.h.

Constructor & Destructor Documentation

◆ QgsVectorTileDataProviderSharedData()

QgsVectorTileDataProviderSharedData::QgsVectorTileDataProviderSharedData ( )

Definition at line 116 of file qgsvectortiledataprovider.cpp.

Member Function Documentation

◆ getCachedTileData()

bool QgsVectorTileDataProviderSharedData::getCachedTileData ( QgsVectorTileRawData data,
QgsTileXYZ  id 
)

Retrieves previously cached raw tile data for a tile with matching id.

Returns true if tile data was already cached and could be retrieved.

Definition at line 121 of file qgsvectortiledataprovider.cpp.

◆ storeCachedTileData()

void QgsVectorTileDataProviderSharedData::storeCachedTileData ( const QgsVectorTileRawData data)

Stores raw tile data in the shared cache.

Definition at line 133 of file qgsvectortiledataprovider.cpp.

Member Data Documentation

◆ mMutex

QMutex QgsVectorTileDataProviderSharedData::mMutex

Access to all data members is guarded by the mutex.

Definition at line 63 of file qgsvectortiledataprovider.h.

◆ mTileCache

QCache< QgsTileXYZ, QgsVectorTileRawData > QgsVectorTileDataProviderSharedData::mTileCache

Definition at line 60 of file qgsvectortiledataprovider.h.


The documentation for this class was generated from the following files: