QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
#include <costcalculator.h>
Static Public Member Functions | |
static void | addObstacleCostPenalty (LabelPosition *lp, pal::FeaturePart *obstacle) |
Increase candidate's cost according to its collision with passed feature. More... | |
static bool | candidateSortGrow (const LabelPosition *c1, const LabelPosition *c2) |
Sorts label candidates in ascending order of cost. More... | |
static bool | candidateSortShrink (const LabelPosition *c1, const LabelPosition *c2) |
Sorts label candidates in descending order of cost. More... | |
static int | finalizeCandidatesCosts (Feats *feat, int max_p, RTree< pal::FeaturePart *, double, 2, double > *obstacles, double bbx[4], double bby[4]) |
Sort candidates by costs, skip the worse ones, evaluate polygon candidates. More... | |
static void | setCandidateCostFromPolygon (LabelPosition *lp, RTree< pal::FeaturePart *, double, 2, double > *obstacles, double bbx[4], double bby[4]) |
Set cost to the smallest distance between lPos's centroid and a polygon stored in geoetry field. More... | |
static void | setPolygonCandidatesCost (int nblp, QList< LabelPosition * > &lPos, RTree< pal::FeaturePart *, double, 2, double > *obstacles, double bbx[4], double bby[4]) |
Definition at line 32 of file costcalculator.h.
|
static |
Increase candidate's cost according to its collision with passed feature.
Definition at line 38 of file costcalculator.cpp.
|
static |
Sorts label candidates in ascending order of cost.
Definition at line 28 of file costcalculator.cpp.
|
static |
Sorts label candidates in descending order of cost.
Definition at line 33 of file costcalculator.cpp.
|
static |
Sort candidates by costs, skip the worse ones, evaluate polygon candidates.
Definition at line 176 of file costcalculator.cpp.
|
static |
Set cost to the smallest distance between lPos's centroid and a polygon stored in geoetry field.
Definition at line 149 of file costcalculator.cpp.
|
static |
Definition at line 96 of file costcalculator.cpp.