Maria GDK 5.1.0.259
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::TiledLayerRenderer Class Reference

#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
 

Detailed Description

TiledLayerRenderer - Rendering methods for tiled geo layers

Member Function Documentation

◆ updateTiles()

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.

Parameters
viewport
pixelToleranceMaximum allowed pixel size for tile selection
requestTilesif true, tiles will be requested
syncTileLoadingif true, no temp tiles will be used, and it will return false unless all available tiles are loaded
numParentLevels
Returns
true if there is anything to render. If syncTileLoading is true, all available tiles must be loaded

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