|
MoSync 3.2.1
|
Manages map caches for clients to access. Implemented as singleton. More...
#include <MAP/MapCache.h>
Public Member Functions | |
| virtual | ~MapCache () |
| void | requestTiles (MapSource *source, const LonLat centerpoint, const MagnificationType magnification, const int pixelWidth, const int pixelHeight, const double directionX, const double directionY) |
| void | clear () |
| void | tileReceived (MapSource *sender, MapTile *tile) |
| void | downloadCancelled (MapSource *sender) |
| void | error (MapSource *source, int code) |
| void | jobComplete (MapSource *source) |
| int | getCapacity () const |
| void | setCapacity (int capacity) |
| int | size () |
| void | addListener (IMapCacheListener *listener) |
| void | removeListener (IMapCacheListener *listener) |
| Vector< IMapCacheListener * > * | getListeners () |
Static Public Member Functions | |
| static MapCache * | get () |
| static void | shutdown () |
Manages map caches for clients to access. Implemented as singleton.
| virtual MAP::MapCache::~MapCache | ( | ) | [virtual] |
| static MapCache* MAP::MapCache::get | ( | ) | [static] |
Returns the MapCache singleton.
| static void MAP::MapCache::shutdown | ( | ) | [static] |
Shuts down map cache properly. Call at application shutdown to free all resources.
| void MAP::MapCache::requestTiles | ( | MapSource * | source, |
| const LonLat | centerpoint, | ||
| const MagnificationType | magnification, | ||
| const int | pixelWidth, | ||
| const int | pixelHeight, | ||
| const double | directionX, | ||
| const double | directionY | ||
| ) |
Requests tiles to cover specified rectangle, in pixels, around a centerpoint.
| void MAP::MapCache::clear | ( | ) |
Frees all tiles in cache.
| void MAP::MapCache::tileReceived | ( | MapSource * | sender, |
| MapTile * | tile | ||
| ) | [virtual] |
Implements MAP::IMapSourceListener.
| void MAP::MapCache::downloadCancelled | ( | MapSource * | sender | ) | [virtual] |
Implements MAP::IMapSourceListener.
| void MAP::MapCache::error | ( | MapSource * | source, |
| int | code | ||
| ) | [virtual] |
Implements MAP::IMapSourceListener.
| void MAP::MapCache::jobComplete | ( | MapSource * | source | ) | [virtual] |
Implements MAP::IMapSourceListener.
| int MAP::MapCache::getCapacity | ( | ) | const |
| void MAP::MapCache::setCapacity | ( | int | capacity | ) |
| int MAP::MapCache::size | ( | ) |
| void MAPUtil::Broadcaster< IMapCacheListener >::addListener | ( | IMapCacheListener * | listener | ) | [inline, inherited] |
Add a listener. Clients should call this to register for notification.
| void MAPUtil::Broadcaster< IMapCacheListener >::removeListener | ( | IMapCacheListener * | listener | ) | [inline, inherited] |
Remove a listener. Clients should call this to unregister for notification.
| Vector<IMapCacheListener *>* MAPUtil::Broadcaster< IMapCacheListener >::getListeners | ( | ) | [inline, inherited] |