|
QGIS API Documentation
2.6.0-Brighton
|
Data structure to compute polygon's candidates costs. More...
#include <costcalculator.h>
Public Member Functions | |
| PolygonCostCalculator (LabelPosition *lp) | |
| void | update (PointSet *pset) |
| double | getCost () |
| LabelPosition * | getLabel () |
Data structure to compute polygon's candidates costs.
eight segment from center of candidat 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
| pal::PolygonCostCalculator::PolygonCostCalculator | ( | LabelPosition * | lp | ) |
| double pal::PolygonCostCalculator::getCost | ( | ) |
| LabelPosition * pal::PolygonCostCalculator::getLabel | ( | ) |
| void pal::PolygonCostCalculator::update | ( | PointSet * | pset | ) |
1.8.1.2