|
libosmscout 1.1.1
|
#include <libosmscout-map/include/osmscoutmap/LabelPath.h>
Public Member Functions | |
| LabelPath (double minSegmentLength=5) | |
| virtual | ~LabelPath () |
| void | AddPoint (const Vertex2D &point) |
| double | GetLength () const |
| Vertex2D | PointAtLength (double offset) const |
| double | AngleAtLength (double offset) const |
| double | AngleAtLengthDeg (double offset) const |
| bool | TestAngleVariance (double startOffset, double endOffset, double maximumAngle) const |
Helper for rendering labels following some path.
TODO: implement Bezier curves ?
|
explicit |
|
virtual |
| void osmscout::LabelPath::AddPoint | ( | const Vertex2D & | point | ) |
| double osmscout::LabelPath::AngleAtLength | ( | double | offset | ) | const |
| double osmscout::LabelPath::AngleAtLengthDeg | ( | double | offset | ) | const |
|
inline |
| Vertex2D osmscout::LabelPath::PointAtLength | ( | double | offset | ) | const |
| bool osmscout::LabelPath::TestAngleVariance | ( | double | startOffset, |
| double | endOffset, | ||
| double | maximumAngle ) const |
Test how squiggly is path in given offsets. It return true if angle between first path segment (on startOffset) and any following (until endOffset) is lesser than required maximum.
| startOffset | |
| endOffset | |
| maximumAngle | in radians |