marble
#include <StackedTileLoader.h>
Signals | |
void | cleared () |
void | tileLoaded (TileId const &tileId) |
Public Member Functions | |
StackedTileLoader (MergedLayerDecorator *mergedLayerDecorator, QObject *parent=0) | |
virtual | ~StackedTileLoader () |
void | cleanupTilehash () |
void | clear () |
const StackedTile * | loadTile (TileId const &stackedTileId) |
void | resetTilehash () |
void | setVolatileCacheLimit (quint64 kiloBytes) |
int | tileColumnCount (int level) const |
int | tileCount () const |
GeoSceneTextureTile::Projection | tileProjection () const |
int | tileRowCount (int level) const |
QSize | tileSize () const |
void | updateTile (TileId const &tileId, QImage const &tileImage) |
QList< TileId > | visibleTiles () const |
quint64 | volatileCacheLimit () const |
Detailed Description
Tile loading from a quad tree.
This class loads tiles into memory. For faster access we keep the tileIDs and their respective pointers to the tiles in a hashtable. The class also contains convenience methods to remove entries from the hashtable and to return more detailed properties about each tile level and their tiles.
Definition at line 59 of file StackedTileLoader.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new tile loader.
- Parameters
-
downloadManager The download manager that shall be used to fetch the tiles from a remote resource.
Definition at line 59 of file StackedTileLoader.cpp.
|
virtual |
Definition at line 65 of file StackedTileLoader.cpp.
Member Function Documentation
void Marble::StackedTileLoader::cleanupTilehash | ( | ) |
Cleans up the internal tile hash.
Removes all superfluous tiles from the hash.
Definition at line 101 of file StackedTileLoader.cpp.
void Marble::StackedTileLoader::clear | ( | ) |
Effectively triggers a reload of all tiles that are currently in use and clears the tile cache in physical memory.
Definition at line 210 of file StackedTileLoader.cpp.
|
signal |
const StackedTile * Marble::StackedTileLoader::loadTile | ( | TileId const & | stackedTileId | ) |
Loads a tile and returns it.
- Parameters
-
stackedTileId The Id of the requested tile, containing the x and y coordinate and the zoom level.
Definition at line 119 of file StackedTileLoader.cpp.
void Marble::StackedTileLoader::resetTilehash | ( | ) |
Resets the internal tile hash.
Definition at line 91 of file StackedTileLoader.cpp.
void Marble::StackedTileLoader::setVolatileCacheLimit | ( | quint64 | kiloBytes | ) |
Set the limit of the volatile (in RAM) cache.
- Parameters
-
bytes The limit in kilobytes.
Definition at line 183 of file StackedTileLoader.cpp.
int Marble::StackedTileLoader::tileColumnCount | ( | int | level | ) | const |
Definition at line 71 of file StackedTileLoader.cpp.
int Marble::StackedTileLoader::tileCount | ( | ) | const |
Return the number of tiles in the cache.
- Returns
- number of tiles in cache
Definition at line 178 of file StackedTileLoader.cpp.
|
signal |
GeoSceneTiled::Projection Marble::StackedTileLoader::tileProjection | ( | ) | const |
Definition at line 81 of file StackedTileLoader.cpp.
int Marble::StackedTileLoader::tileRowCount | ( | int | level | ) | const |
Definition at line 76 of file StackedTileLoader.cpp.
QSize Marble::StackedTileLoader::tileSize | ( | ) | const |
Definition at line 86 of file StackedTileLoader.cpp.
void Marble::StackedTileLoader::updateTile | ( | TileId const & | tileId, |
QImage const & | tileImage | ||
) |
Definition at line 189 of file StackedTileLoader.cpp.
QList< TileId > Marble::StackedTileLoader::visibleTiles | ( | ) | const |
Reloads the tiles that are currently displayed.
Definition at line 173 of file StackedTileLoader.cpp.
quint64 Marble::StackedTileLoader::volatileCacheLimit | ( | ) | const |
Returns the limit of the volatile (in RAM) cache.
- Returns
- the cache limit in kilobytes
Definition at line 168 of file StackedTileLoader.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.