Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria3D::LabelRenderer Class Reference

Public Member Functions

 LabelRenderer (const std::shared_ptr< LocalOrigin > &localOrigin, const std::shared_ptr< STK::ShaderProgramManager > &shaderManager, const std::shared_ptr< STK::FontManager > &fontManager, const std::shared_ptr< Maria::SystemTicker > &systemTicker)
 
void addDataSource (const std::shared_ptr< ILabelDataSource > &dataSource)
 
void removeDataSource (const std::shared_ptr< ILabelDataSource > &dataSource)
 
const std::vector< std::shared_ptr< ILabelDataSource > > & getDataSources () const
 
bool pendingLabelData (Maria::TileId tileId)
 
void clearTiles ()
 
void clearTile (Maria::TileId tileId)
 
void clearVisibleTiles ()
 
void addVisibleTile (Maria::TileId tileId, QuadTile *geometryTile, unsigned short renderMask)
 
void render (const STK::Camera &cam, const STK::Viewport &vp)
 
void setVisible (bool visible)
 
bool isVisible () const
 
void setScale (float scale)
 
float getScale () const
 
bool needsRedraw () const
 

Member Function Documentation

◆ addVisibleTile()

void LabelRenderer::addVisibleTile ( Maria::TileId  tileId,
QuadTile geometryTile,
unsigned short  renderMask 
)

Add a tile to the visible set. This method will generate rendering tiles as necessary from the provided label data sources.

◆ clearTiles()

void Maria3D::LabelRenderer::clearTiles ( )
inline

Clear cached label tiles. This will cause all label tiles to be regenerated when needed.

◆ clearVisibleTiles()

void Maria3D::LabelRenderer::clearVisibleTiles ( )
inline

Clear all tiles to be rendered. This should be done before preparing a new frame.

◆ pendingLabelData()

bool LabelRenderer::pendingLabelData ( Maria::TileId  tileId)

Check all data sources if we have any label data for the given tile id.

◆ render()

void LabelRenderer::render ( const STK::Camera cam,
const STK::Viewport vp 
)

Draw all tiles in the visible set.

◆ setScale()

void Maria3D::LabelRenderer::setScale ( float  scale)
inline

Set global scale factor for all map labels.


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