Maria GDK 4.5.0.200
Documentation of managed code in release branch
Loading...
Searching...
No Matches
NativeMapLayerBridge::NativeTileCacheManager Class Reference
Inheritance diagram for NativeMapLayerBridge::NativeTileCacheManager:
TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager

Public Member Functions

virtual void AddMapDataProvider (CatalogServiceData::MapContentType contentType, IMapDataProvider^ mMapDataProvider)
 
virtual void RemoveMapDataProvider (CatalogServiceData::MapContentType contentType)
 Remove the registered map data provider for the given content type.
 
virtual void AddMapDataProvider (System::String^ providerId, IMapDataProvider^ mMapDataProvider)
 
virtual void RemoveMapDataProvider (System::String^ providerId)
 
virtual bool HasMapDataProvider (System::String^ providerId)
 
virtual IDictionary< System::String^, TileCacheStats^> GetTileCacheStats ()
 Returns a dictionary keyed on map signature containing statistics for the tile cache.
 
virtual IDictionary< System::String^, DataReaderStats^> GetDataReaderStats ()
 Returns a dictionary keyed on map signature containing statistics for the data reader.
 
virtual INativeTileCache GetTileCache (IMapContentQuery^ key)
 
virtual INativeTileCache CreateMapTileCache (IMapContentQuery^ key, IMapDataProvider^ mMapDataProvider)
 
virtual void RemoveTileCache (IMapContentQuery^ key)
 
virtual IList< INativeTileCache^> GetTileCaches ()
 
void set (int value)
 
void set (int value)
 
virtual void Cleanup ()
 Run cache cleanup. This method will clean up old and unused tiles from all the tile caches. This is normally done automatically from the map layer and elevation data managers, but if you are running the tile cache manager standalone, this method should be called whenever CurrentCacheSize exceeds MaxCacheSize.
 
virtual void ClearTileCaches ()
 Clear all tile caches. This method will clear all tile data from all tile caches. Please note that tile data can be kept alive by other components of the system, such as the rendering layers and tile data readers, this method will simply remove the references from the tile caches.
 
Maria::NativeTileCacheManager * GetNativeInterface ()
 
- Public Member Functions inherited from TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager
IDictionary< String, TileCacheStatsGetTileCacheStats ()
 Returns a dictionary keyed on map signature containing statistics for the tile cache.
 
IDictionary< String, DataReaderStatsGetDataReaderStats ()
 Returns a dictionary keyed on map signature containing statistics for the data reader.
 
void Cleanup ()
 Run cache cleanup. This method will clean up old and unused tiles from all the tile caches. This is normally done automatically from the map layer and elevation data managers, but if you are running the tile cache manager standalone, this method should be called whenever CurrentCacheSize exceeds MaxCacheSize.
 
void AddMapDataProvider (string providerId, IMapDataProvider mapDataProvider)
 Register a map data provider with a unique ID.
 
void RemoveMapDataProvider (string providerId)
 Remove the registered map data provider with the given ID.
 
bool HasMapDataProvider (string providerId)
 Check if a given provider exists in the manager.
 
void AddMapDataProvider (MapContentType contentType, IMapDataProvider mMapDataProvider)
 Register a map data provider for the given map content type. You need to register map data providers for all map content types you intend to use. Note that the native MapInterfacer will add a provider for elevation normals automatically when you create an elevation data layer.
 
void RemoveMapDataProvider (MapContentType contentType)
 Remove the registered map data provider for the given content type.
 
INativeTileCache GetTileCache (IMapContentQuery key)
 Get the tile cache for the given map content query. This method requires that the wanted tile cahce has been created, typically through a map/elevation template.
 
INativeTileCache CreateMapTileCache (IMapContentQuery query, IMapDataProvider provider=null)
 Create tile cache for map tiles with optional data provider. If no data provider is given, the default for the requested map content type is used.
 
void RemoveTileCache (IMapContentQuery key)
 Erase the given tile cache from the manager.
 
void ClearTileCaches ()
 Clear all tile caches. This method will clear all tile data from all tile caches. Please note that tile data can be kept alive by other components of the system, such as the rendering layers and tile data readers, this method will simply remove the references from the tile caches.
 

Public Attributes

virtual property int CurrentCacheSize { int get()
 
virtual property int MaxCacheSize
 
virtual property int MaxConcurrentRequests
 

Additional Inherited Members

- Properties inherited from TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager
int MaxCacheSize [get, set]
 Maximum tile cache size in Mb.
 
int CurrentCacheSize [get]
 Current tile cache size in Mb.
 
int MaxConcurrentRequests [get, set]
 Maximum number of concurrent tile requests. Reduce on systems with fewer cores.
 

Member Function Documentation

◆ Cleanup()

void NativeMapLayerBridge::NativeTileCacheManager::Cleanup ( )
virtual

Run cache cleanup. This method will clean up old and unused tiles from all the tile caches. This is normally done automatically from the map layer and elevation data managers, but if you are running the tile cache manager standalone, this method should be called whenever CurrentCacheSize exceeds MaxCacheSize.

Implements TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.

◆ ClearTileCaches()

void NativeMapLayerBridge::NativeTileCacheManager::ClearTileCaches ( )
virtual

Clear all tile caches. This method will clear all tile data from all tile caches. Please note that tile data can be kept alive by other components of the system, such as the rendering layers and tile data readers, this method will simply remove the references from the tile caches.

Implements TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.

◆ GetDataReaderStats()

IDictionary< System::String^, DataReaderStats^> NativeMapLayerBridge::NativeTileCacheManager::GetDataReaderStats ( )
virtual

Returns a dictionary keyed on map signature containing statistics for the data reader.

Returns

Implements TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.

◆ GetTileCacheStats()

IDictionary< System::String^, TileCacheStats^> NativeMapLayerBridge::NativeTileCacheManager::GetTileCacheStats ( )
virtual

Returns a dictionary keyed on map signature containing statistics for the tile cache.

Returns

Implements TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.

◆ RemoveMapDataProvider()

void NativeMapLayerBridge::NativeTileCacheManager::RemoveMapDataProvider ( CatalogServiceData::MapContentType  contentType)
virtual

Remove the registered map data provider for the given content type.

Parameters
contentType

Implements TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.

Member Data Documentation

◆ MaxCacheSize

virtual property int NativeMapLayerBridge::NativeTileCacheManager::MaxCacheSize
Initial value:
{
int get()

◆ MaxConcurrentRequests

virtual property int NativeMapLayerBridge::NativeTileCacheManager::MaxConcurrentRequests
Initial value:
{
int get()

The documentation for this class was generated from the following files: