|
| MapLayer (const std::string &id, const std::shared_ptr< STK::ShaderProgramManager > &shaderManager, const std::shared_ptr< STK::FontManager > &fontManager, std::shared_ptr< Maria::SystemTicker >systemTicker, const std::shared_ptr< Maria::TileCacheManager > tileCacheManager, int depth) |
|
void | clearRenderData (bool keepCurrentFrame) |
|
void | clearRenderData (const std::string &layerId) |
|
void | setTemplate (const MapTemplate &tpl) |
| Utility method to create map layers from a map template.
|
|
std::shared_ptr< TiledMapLayer > | createMapLayer (const std::string &id, Maria::MapContentQuery &mapQuery, int timeout=5000) |
|
std::shared_ptr< TiledShadingLayer > | createShadingLayer (const std::string &id, Maria::MapContentQuery &mapQuery, int timeout=5000) |
|
void | clearLayers () |
| Clear all sub layers.
|
|
void | removeLayer (const std::string &id) |
| Remove the sub layer with the given Id.
|
|
void | removeLayer (const std::shared_ptr< Maria::MapSubLayer > &layer) |
|
void | addLayer (const std::shared_ptr< Maria::MapSubLayer > &layer) |
| Add sub layer (mostly for unit testing).
|
|
int | numSubLayers () const |
|
virtual bool | update (const std::shared_ptr< RasterProjector > &viewport, double scale, float pixelScale) override |
| Update layer for rendering. This method should determine if there is anything to render in the layer, and prepare the layer for rendering.
|
|
virtual void | redraw (const std::shared_ptr< RasterProjector > &vp, const STK::Camera &cam, const STK::Viewport &glViewport) override |
|
virtual bool | needsRedraw () const override |
| Check if a layer requires a redraw on next frame. This will typicall be due to changed content, newly loaded data, etc.
|
|
void | setSyncTileLoading (bool syncTileLoading) |
|
bool | getSyncTileLoading () const |
|
void | setSyncTileLoadingTimeout (long timeout) |
|
long | getSyncTileLoadingTimeout () const |
|
MapMetadata | getMetadata (const RasterProjector &rp, double mapScale, double pixelScale=1.5, long timeout_ms=0) |
| Get metdata for the given area.
|
|
MapMetadata | getMetadata (const BasicGeoTypes::GeoPos &pos, double mapScale, double resolution=0.0, long timeout_ms=0) |
| Get metdata for the given point.
|
|
| GeoLayer (const std::string &id, int depth) |
|
void | setClippingMargins (int left, int right, int top, int bottom) |
|
void | getClippingMargins (int &left, int &right, int &top, int &bottom) |
|
bool | needsClipping () const |
|
void | beginClipping (const STK::Viewport &glViewport) |
|
void | endClipping () |
|
int | getDepth () const |
|
const std::string & | getId () const |
|
void | setOpacity (float opacity) |
|
float | getOpacity () const |
|
bool | isEnabled () const |
|
void | setEnabled (bool enabled) |
|
void | setLayerDirty (bool dirty) |
|
bool | isLayerDirty () const |
|
void | setPerformanceGraph (const std::shared_ptr< STK::PerformanceGraphs::Graph > &perf) |
|
const std::shared_ptr< STK::PerformanceGraphs::Graph > & | getPerformanceGraph () const |
|
virtual bool | update (const std::shared_ptr< RasterProjector > &viewport, double scale, float pixelScale) |
| Update layer for rendering. This method should determine if there is anything to render in the layer, and prepare the layer for rendering.
|
|
virtual void | redraw (const std::shared_ptr< RasterProjector > &vp, const STK::Camera &cam, const STK::Viewport &glViewport)=0 |
|
virtual void | cleanupCaches (bool keepCurrentFrame) |
| This method is called at regular intervals to clean up cached data, such as OpenGL textures, graphics buffers etc. Only data that can be reproduced automatically should be cleaned up by this method.
|
|
virtual bool | needsRedraw () const |
| Check if a layer requires a redraw on next frame. This will typicall be due to changed content, newly loaded data, etc.
|
|
MapLayer - Short description