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

#include <MTextRenderUtils.h>

Classes

struct  Edge
 
struct  TextPosData
 

Static Public Member Functions

static TextPosData calculateHorizontalCenteredTextPos (const std::vector< BasicGeoTypes::GeoPos > &lineGeo, const std::vector< STK::Vector2f > &projPos, const std::shared_ptr< RasterProjector > &vp, CurveMode curveMode, double ratio=0.5)
 
static TextPosData calculateHorizontalStartTextPos (const std::vector< BasicGeoTypes::GeoPos > &lineGeo, const std::vector< STK::Vector2f > &projPos, const std::shared_ptr< RasterProjector > &vp, CurveMode curveMode)
 
static TextPosData calculateHorizontalEndTextPos (const std::vector< BasicGeoTypes::GeoPos > &lineGeo, const std::vector< STK::Vector2f > &projPos, const std::shared_ptr< RasterProjector > &vp, CurveMode curveMode)
 
static double calculateUprightTextPosition (const double angle)
 Calculate an angle to rotate text in, so that it always stays somewhat upright.
 

Detailed Description

TextRenderUtils - Short description

Member Function Documentation

◆ calculateUprightTextPosition()

static double Maria::TextRenderUtils::calculateUprightTextPosition ( const double  angle)
inlinestatic

Calculate an angle to rotate text in, so that it always stays somewhat upright.

Parameters
angleThe counter clockwise angle in degrees, between [0,360)
Returns
the angle to rotate by.

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