QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Calculates distance from a label candidate to nearest polygon ring. More...
#include <costcalculator.h>
Public Member Functions | |
CandidatePolygonRingDistanceCalculator (LabelPosition *candidate) | |
Constructor for PolygonRingDistanceCalculator, for the specified label candidate. | |
void | addRing (const pal::PointSet *ring) |
Adds a ring to the calculation, updating the minimumDistance() value if the rings is closer to the candidate then previously added rings. | |
double | minimumDistance () const |
Returns the minimum distance between the candidate and all added rings. | |
Calculates distance from a label candidate to nearest polygon ring.
Definition at line 75 of file costcalculator.h.
|
explicit |
Constructor for PolygonRingDistanceCalculator, for the specified label candidate.
Definition at line 262 of file costcalculator.cpp.
void CandidatePolygonRingDistanceCalculator::addRing | ( | const pal::PointSet * | ring | ) |
Adds a ring to the calculation, updating the minimumDistance() value if the rings is closer to the candidate then previously added rings.
Definition at line 268 of file costcalculator.cpp.
double CandidatePolygonRingDistanceCalculator::minimumDistance | ( | ) | const |
Returns the minimum distance between the candidate and all added rings.
Definition at line 277 of file costcalculator.cpp.