QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
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 261 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 267 of file costcalculator.cpp.
double CandidatePolygonRingDistanceCalculator::minimumDistance | ( | ) | const |
Returns the minimum distance between the candidate and all added rings.
Definition at line 276 of file costcalculator.cpp.