![]() |
Maria GDK 5.0.0.907
Documentation of native code in develop branch
|
#include <MLabelRenderer.h>
Public Member Functions | |
| LabelRenderer (std::shared_ptr< STK::ShaderProgramManager > shaderManager, std::shared_ptr< STK::FontManager > fontManager) | |
| std::shared_ptr< LabelRenderItem > | addLabel (const BasicGeoTypes::PointFXY &p, const std::string &text, const Maria::FontDescription &font, const Maria::RGBA color, const Maria::RGBA bgColor, const Maria::RGBA outlineColor, const Maria::LabelPlacement placement, double placementMargin, double angle, bool fixedRotation, bool allowOverlap) |
| std::shared_ptr< LabelRenderItem > | addLabel (const std::vector< BasicGeoTypes::PointFXY > &path, bool continuedLine, const std::string &text, const Maria::FontDescription &font, const Maria::RGBA color, const Maria::RGBA bgColor, const Maria::RGBA outlineColor, const Maria::LabelPlacement placement, double placementMargin, double angle, bool fixedRotation, bool allowOverlap) |
| void | renderItems (const std::shared_ptr< RasterProjector > &rp, const STK::Matrix4x4f &mv, const STK::Matrix4x4f &pj, double scale, const STK::Viewport &glViewport, float opacity) |
| void | renderDebug (const std::shared_ptr< RasterProjector > &vp, const std::shared_ptr< RasterProjector > &tileRp, double scale, const STK::Matrix4x4f &mv, const STK::Matrix4x4f &vm, const STK::Matrix4x4f &pj, const STK::Viewport &glViewport) |
| Render debug graphics. | |
| void | updateDisplayProjection (const std::shared_ptr< RasterProjector > &tileRp, const std::shared_ptr< RasterProjector > &vp) |
| void | getPlacedCollisionFeatures (float xMin, float xMax, float yMin, float yMax, std::vector< PlacedCollisionFeature > &pcf) |
| void | updateCollisionGrid (std::shared_ptr< LabelRenderer > neighLabels[]) |
| void | insertCollisionItems () |
| void | addGeoLabel (const std::shared_ptr< RasterProjector > &viewport, const std::vector< BasicGeoTypes::GeoPos > &path, const std::shared_ptr< Maria::TileLabel > &l, const std::shared_ptr< RasterProjector > &tileRp, bool continuedLine) |
| const BasicGeoTypes::DblTransform2D & | getTileTransform () const |
LabelRenderer - Render a collection of text labels.
| std::shared_ptr< LabelRenderItem > LabelRenderer::addLabel | ( | const BasicGeoTypes::PointFXY & | p, |
| const std::string & | text, | ||
| const Maria::FontDescription & | font, | ||
| const Maria::RGBA | color, | ||
| const Maria::RGBA | bgColor, | ||
| const Maria::RGBA | outlineColor, | ||
| const Maria::LabelPlacement | placement, | ||
| double | placementMargin, | ||
| double | angle, | ||
| bool | fixedRotation, | ||
| bool | allowOverlap | ||
| ) |
Add a text label at the given anchor point.
| std::shared_ptr< LabelRenderItem > LabelRenderer::addLabel | ( | const std::vector< BasicGeoTypes::PointFXY > & | path, |
| bool | continuedLine, | ||
| const std::string & | text, | ||
| const Maria::FontDescription & | font, | ||
| const Maria::RGBA | color, | ||
| const Maria::RGBA | bgColor, | ||
| const Maria::RGBA | outlineColor, | ||
| const Maria::LabelPlacement | placement, | ||
| double | placementMargin, | ||
| double | angle, | ||
| bool | fixedRotation, | ||
| bool | allowOverlap | ||
| ) |
Add a text label along a line.
| void LabelRenderer::getPlacedCollisionFeatures | ( | float | xMin, |
| float | xMax, | ||
| float | yMin, | ||
| float | yMax, | ||
| std::vector< PlacedCollisionFeature > & | pcf | ||
| ) |
Get all label collision boxes with placement scale within the given bounding box.
| void LabelRenderer::renderItems | ( | const std::shared_ptr< RasterProjector > & | rp, |
| const STK::Matrix4x4f & | mv, | ||
| const STK::Matrix4x4f & | pj, | ||
| double | scale, | ||
| const STK::Viewport & | glViewport, | ||
| float | opacity | ||
| ) |
Draw all items with the given transforms.