QGIS API Documentation
3.2.0-Bonn (bc43194)
|
#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]) |
Sets 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 35 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 177 of file costcalculator.cpp.
|
static |
Sets cost to the smallest distance between lPos's centroid and a polygon stored in geoetry field.
Definition at line 150 of file costcalculator.cpp.
|
static |
Definition at line 96 of file costcalculator.cpp.