QGIS API Documentation
2.8.2-Wien
|
#include <costcalculator.h>
Static Public Member Functions | |
static void | addObstacleCostPenalty (LabelPosition *lp, PointSet *feat) |
increase candidate's cost according to its collision with passed feature | |
static int | finalizeCandidatesCosts (Feats *feat, int max_p, RTree< PointSet *, double, 2, double > *obstacles, double bbx[4], double bby[4]) |
sort candidates by costs, skip the worse ones, evaluate polygon candidates | |
static void | setCandidateCostFromPolygon (LabelPosition *lp, RTree< PointSet *, 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. | |
static void | setPolygonCandidatesCost (int nblp, LabelPosition **lPos, int max_p, RTree< PointSet *, double, 2, double > *obstacles, double bbx[4], double bby[4]) |
Definition at line 24 of file costcalculator.h.
|
static |
increase candidate's cost according to its collision with passed feature
Definition at line 35 of file costcalculator.cpp.
|
static |
sort candidates by costs, skip the worse ones, evaluate polygon candidates
Definition at line 164 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 136 of file costcalculator.cpp.
|
static |
Definition at line 78 of file costcalculator.cpp.