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) |
RenderState | renderState () const |
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 |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
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 58 of file StackedTileLoader.cpp.
|
virtual |
Definition at line 64 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 100 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 220 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 118 of file StackedTileLoader.cpp.
RenderState Marble::StackedTileLoader::renderState | ( | ) | const |
Definition at line 209 of file StackedTileLoader.cpp.
void Marble::StackedTileLoader::resetTilehash | ( | ) |
Resets the internal tile hash.
Definition at line 90 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 182 of file StackedTileLoader.cpp.
int Marble::StackedTileLoader::tileColumnCount | ( | int | level | ) | const |
Definition at line 70 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 177 of file StackedTileLoader.cpp.
|
signal |
GeoSceneTiled::Projection Marble::StackedTileLoader::tileProjection | ( | ) | const |
Definition at line 80 of file StackedTileLoader.cpp.
int Marble::StackedTileLoader::tileRowCount | ( | int | level | ) | const |
Definition at line 75 of file StackedTileLoader.cpp.
QSize Marble::StackedTileLoader::tileSize | ( | ) | const |
Definition at line 85 of file StackedTileLoader.cpp.
Definition at line 188 of file StackedTileLoader.cpp.
Reloads the tiles that are currently displayed.
Definition at line 172 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 167 of file StackedTileLoader.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.