![]() |
Maria GDK 5.0.0.753
Documentation of native code in develop branch
|
#include <MQMapDataManager.h>
Public Member Functions | |
MapDataManager (std::shared_ptr< STK::ShaderProgramManager > shaderManager, std::shared_ptr< STK::TextureManager > textureManager, std::shared_ptr< STK::FontManager > fontManager) | |
bool | initialize (const Maria::MapDataConfig &mapConfig) |
Initialize the map engine. This method will scan for map and elevation data, and set up the geographical layers and elevation data. This method must be called successfully before any geographical data can be displayed. | |
void | shutdown () |
Shut down the map engine. | |
std::shared_ptr< Maria::MapTemplateManager > | mapTemplateManager () const |
Direct access to the map template manager. The map template manager contains all the available map templates that were found in the search paths during initializtion. | |
std::shared_ptr< Maria::TileCacheManager > | tileCacheManager () const |
std::shared_ptr< Maria::SystemTicker > | systemTicker () const |
std::shared_ptr< STK::FontManager > | fontManager () const |
std::shared_ptr< STK::TextureManager > | textureManager () const |
std::shared_ptr< STK::ShaderProgramManager > | shaderManager () const |
std::shared_ptr< Maria::DrawObjectManager > | drawObjectManager () const |
Direct access to the draw object manager. | |
std::shared_ptr< Maria::ISymbolProvider > | symbolProvider () const |
std::shared_ptr< Maria::ElevationData > | elevationData () const |
Direct access to the elevation data interface. | |
const Maria::MapTemplate & | getElevationTemplate () const |
bool | needsRedraw () const |
Check if any of the map data structures have been updated so that the map data layers should be refreshed. | |
bool | frameCleanup () |
Frame cache/rendering data cleanup. | |
MapDataManager - Manages data sources for maps and elevation data that can be shared between different map widgets, both 2D and 3D.
bool MapDataManager::frameCleanup | ( | ) |
Frame cache/rendering data cleanup.
Should be called after each frame redraw to clean up tile caches and other transient data caches.
bool MapDataManager::initialize | ( | const Maria::MapDataConfig & | mapConfig | ) |
Initialize the map engine. This method will scan for map and elevation data, and set up the geographical layers and elevation data. This method must be called successfully before any geographical data can be displayed.
searchPath | A semicolon-separated list of directories in which to search for map data. |
maxConcurrentTileReqs | Maximum number of concurrent asynchronous tile requests to allow. Higher numbers mean faster loading, but too high may cause the display to stutter. |
maxTileCacheSize | Maximum size of the tile data cache (in bytes). Keep this number high enough to include all the data needed for a full map screen with all layers, else you will get "thrashing" and poor performance due to tiles constantly being discarded and re-loaded. |
|
inline |
Direct access to the map template manager. The map template manager contains all the available map templates that were found in the search paths during initializtion.
bool MapDataManager::needsRedraw | ( | ) | const |
Check if any of the map data structures have been updated so that the map data layers should be refreshed.
void MapDataManager::shutdown | ( | ) |
Shut down the map engine.
This includes stopping any loading threads and cleaning up resources. Should be called before quitting the application.