Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
The default cache of the tile controllers. More...
#include <ilviews/maps/tiling/tilecache.h>
Public Member Functions | |
IlvDefaultTileCache (IlInt size=5) | |
Creates an instance of the default cache with the specified size. | |
virtual void | controllerDeleted (IlvTileController *controller) |
Notifies the cache that the controller is going to be deleted. | |
IlInt | getCacheSize () const |
Returns the cache size. | |
void | setCacheSize (IlInt size) |
Sets the cache size. | |
virtual void | tileAboutToLoad (IlvTile *tile) |
Called by a tile controller each time that a tile is about to be loaded. | |
virtual void | tileCached (IlvTile *tile) |
Called each time a loaded tile has no longer a lock. | |
virtual void | tileRetrieved (IlvTile *tile) |
Called each time that a cached tile is locked again. | |
Static Public Member Functions | |
static IlvDefaultTileCache * | GetDefaultCache () |
Returns a default cache instance that can be shared by several tile controllers. |
The default cache of the tile controllers.
Library: ilvmaps
This cache maintains a list of cached tiles. The maximum size of this list can be specified.
When the size of the cache is exceeded and a new tile is about to be loaded, the least recently used cached tiles are released.
IlvDefaultTileCache::IlvDefaultTileCache | ( | IlInt | size = 5 |
) |
Creates an instance of the default cache with the specified size.
size | The default cache size. |
virtual void IlvDefaultTileCache::controllerDeleted | ( | IlvTileController * | controller | ) | [virtual] |
Notifies the cache that the controller is going to be deleted.
controller | About to be deleted. |
Implements IlvTileCache.
IlInt IlvDefaultTileCache::getCacheSize | ( | ) | const |
Returns the cache size.
static IlvDefaultTileCache* IlvDefaultTileCache::GetDefaultCache | ( | ) | [static] |
Returns a default cache instance that can be shared by several tile controllers.
void IlvDefaultTileCache::setCacheSize | ( | IlInt | size | ) |
Sets the cache size.
size | The new cache size. |
virtual void IlvDefaultTileCache::tileAboutToLoad | ( | IlvTile * | tile | ) | [virtual] |
Called by a tile controller each time that a tile is about to be loaded.
The cache can then, if necessary, release tiles.
tile | The tile that is about to be loaded. |
Implements IlvTileCache.
virtual void IlvDefaultTileCache::tileCached | ( | IlvTile * | tile | ) | [virtual] |
Called each time a loaded tile has no longer a lock.
tile | The tile to be cached. |
Implements IlvTileCache.
virtual void IlvDefaultTileCache::tileRetrieved | ( | IlvTile * | tile | ) | [virtual] |
Called each time that a cached tile is locked again.
tile | The tile that is retrieved from the cache by a tile controller. |
Implements IlvTileCache.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.