#include <MTextRenderUtils.h>
|
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.
|
|
TextRenderUtils - Short description
◆ 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
-
angle | The 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:
- Native/MariaNative/MDrawObject/generators/MTextRenderUtils.h
- Native/MariaNative/MDrawObject/generators/MTextRenderUtils.cpp