| QGIS API Documentation
    3.22.4-Białowieża (ce8e65e95e)
    | 
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.  More... | |
| 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.  More... | |
| double | minimumDistance () const | 
| Returns the minimum distance between the candidate and all added rings.  More... | |
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.