QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
Data structure to compute polygon's candidates costs. More...
#include <costcalculator.h>
Public Member Functions | |
PolygonCostCalculator (LabelPosition *lp) | |
double | getCost () |
LabelPosition * | getLabel () |
void | update (pal::PointSet *pset) |
Data structure to compute polygon's candidates costs.
Eight segments from center of candidate to (rpx,rpy) points (0°, 45°, 90°, ..., 315°) dist store the shortest square distance from the center to an object ok[i] is the to true whether the corresponding dist[i] is set
Definition at line 70 of file costcalculator.h.
|
explicit |
Definition at line 222 of file costcalculator.cpp.
double PolygonCostCalculator::getCost | ( | ) |
Definition at line 245 of file costcalculator.cpp.
LabelPosition * PolygonCostCalculator::getLabel | ( | ) |
Definition at line 240 of file costcalculator.cpp.
void PolygonCostCalculator::update | ( | pal::PointSet * | pset | ) |
Definition at line 231 of file costcalculator.cpp.