![]() |
Maria GDK 5.1.0.259
Documentation of native code in develop branch
|
#include <MTiledLayerRenderer.h>
Public Member Functions | |
| TiledLayerRenderer (std::shared_ptr< Maria::TileCache > tileCache, std::shared_ptr< GridIndexBuffer > idxBuffer, std::shared_ptr< STK::ShaderProgramManager > shaderManager, std::shared_ptr< STK::FontManager > fontManager, std::shared_ptr< STK::BufferManager > bufferManager) | |
| bool | updateTiles (const std::shared_ptr< RasterProjector > &viewport, double pixelTolerance, bool requestTiles, bool syncTileLoading, int numParentLevels) |
| Updates the tiles for the given viewport and pixel scale. | |
| void | updateLabelCollision (std::shared_ptr< Maria::MapRenderTile > &renderTile) |
| std::shared_ptr< MapRenderTile > | getRenderTile (const Maria::TileId &tileId) const |
| void | clearCurrentFrame () |
| void | clearRenderCache (bool keepCurrentFrame) |
| void | clearRenderCache (TileId tileId) |
| void | clearData () |
| void | redrawTiles (const std::shared_ptr< RasterProjector > &viewport, const STK::Camera &cam, STK::ShaderProgram &shader, const STK::Viewport &glViewport, float opacity) |
| const std::shared_ptr< Maria::TileCache > & | tileCache () const |
| std::shared_ptr< Maria::MapTileData > | loadAsync (const TileId &tileId) |
| int | numFrameTiles () const |
| Returns number of tiles selected for rendering this frame. | |
| int | numPendingRequests () const |
| int | numOverflowRequests () const |
| int | numMissingTiles () const |
| const Maria::MapContentQuery & | getMapContentQuery () const |
TiledLayerRenderer - Rendering methods for tiled geo layers
| bool TiledLayerRenderer::updateTiles | ( | const std::shared_ptr< RasterProjector > & | viewport, |
| double | pixelTolerance, | ||
| bool | requestTiles, | ||
| bool | syncTileLoading, | ||
| int | numParentLevels | ||
| ) |
Updates the tiles for the given viewport and pixel scale.
| viewport | |
| pixelTolerance | Maximum allowed pixel size for tile selection |
| requestTiles | if true, tiles will be requested |
| syncTileLoading | if true, no temp tiles will be used, and it will return false unless all available tiles are loaded |
| numParentLevels |