|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
A simple tile cache implementation. More...
#include <qgstilecache.h>
Static Public Member Functions | |
| static void | insertTile (const QUrl &url, const QImage &image) |
| Add a tile image with given URL to the cache. | |
| static int | maxCost () |
| how many tiles can be stored in the in-memory cache | |
| static bool | tile (const QUrl &url, QImage &image) |
| Try to access a tile and load it into "image" argument. | |
| static int | totalCost () |
| how many tiles are stored in the in-memory cache | |
A simple tile cache implementation.
Tiles are cached according to their URL. There is a small in-memory cache and a secondary caching in the local disk. The in-memory cache is there to save CPU time otherwise wasted to read and uncompress data saved on the disk.
The class is thread safe (its methods can be called from any thread).
Definition at line 41 of file qgstilecache.h.
|
static |
Add a tile image with given URL to the cache.
Definition at line 29 of file qgstilecache.cpp.
|
static |
how many tiles can be stored in the in-memory cache
Definition at line 76 of file qgstilecache.cpp.
|
static |
Try to access a tile and load it into "image" argument.
true if the tile exists in the cache Definition at line 35 of file qgstilecache.cpp.
|
static |
how many tiles are stored in the in-memory cache
Definition at line 70 of file qgstilecache.cpp.