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

#include <MMapRenderTile.h>

Public Member Functions

 MapRenderTile (std::shared_ptr< STK::ShaderProgramManager > shaderManager, std::shared_ptr< STK::FontManager > fontManager, Maria::TileId tileId, std::shared_ptr< Maria::MapTileData > texture, std::shared_ptr< RasterProjector > rp, std::shared_ptr< GridIndexBuffer > idxBuffer)
 
Maria::TileId tileId () const
 
const std::shared_ptr< Maria::MapTileData > & texture () const
 
void setTexture (std::shared_ptr< Maria::MapTileData > texture)
 
void renderTexture (const std::shared_ptr< RasterProjector > &vp, const STK::Matrix4x4f &vm, STK::ShaderProgram &shader)
 
bool initLabels (const std::shared_ptr< RasterProjector > &viewport)
 
void renderLabels (const std::shared_ptr< RasterProjector > &vp, const STK::Matrix4x4f &vm, const STK::Matrix4x4f &pj, const STK::Viewport &glViewport, float opacity)
 
const std::shared_ptr< Maria::LabelRenderer > & getLabels () const
 
std::shared_ptr< Maria::RasterProjectorrasterProjector () const
 
bool isTransparent () const
 
bool isOpaque () const
 
bool hasVisiblePixels () const
 
void insertDebugGraphics (std::shared_ptr< STK::GraphicsRender2D > gfxRender, const std::shared_ptr< STK::FontManager > &fontManager, const std::shared_ptr< RasterProjector > &vp)
 

Protected Member Functions

void calcTextureTransform (STK::Vector4f &xfm)
 
void initGeometry (const std::shared_ptr< RasterProjector > &vp)
 
bool checkGeometry (const std::shared_ptr< RasterProjector > &vp)
 
void calcTileBounds ()
 
std::vector< std::shared_ptr< std::vector< BasicGeoTypes::GeoPos > > > clipLabelGeometry (const std::vector< BasicGeoTypes::GeoPos > &path)
 

Protected Attributes

std::shared_ptr< STK::ShaderProgramManager_shaderManager
 
std::shared_ptr< STK::FontManager_fontManager
 
Maria::TileId _tileId
 
std::shared_ptr< Maria::MapTileData_texture
 
std::shared_ptr< STK::VertexBufferPT_vertexBuffer
 
std::shared_ptr< GridIndexBuffer_idxBuffer
 
std::shared_ptr< Maria::RasterProjector_rasterProjector
 
BasicGeoTypes::DblTransform2D _tileXfm
 
int _projectorGeneration = 0
 
std::string _vpType
 
double _xMin
 
double _xMax
 
double _yMin
 
double _yMax
 
std::shared_ptr< Maria::LabelRenderer_labels
 
bool _labelProjectionDirty
 
std::shared_ptr< STK::TextRenderItemSDF_dbgTileLabel
 

Detailed Description

MapRenderTile - Short description. Detailed description.


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