QGIS API Documentation  2.6.0-Brighton
pal::CostCalculator Class Reference

`#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 void setPolygonCandidatesCost (int nblp, LabelPosition **lPos, int max_p, RTree< PointSet *, double, 2, double > *obstacles, double bbx[4], double bby[4])
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 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

Member Function Documentation

 void pal::CostCalculator::addObstacleCostPenalty ( LabelPosition * lp, PointSet * feat )
static

increase candidate's cost according to its collision with passed feature

 int pal::CostCalculator::finalizeCandidatesCosts ( Feats * feat, int max_p, RTree< PointSet *, double, 2, double > * obstacles, double bbx[4], double bby[4] )
static

sort candidates by costs, skip the worse ones, evaluate polygon candidates

 void pal::CostCalculator::setCandidateCostFromPolygon ( LabelPosition * lp, RTree< PointSet *, double, 2, double > * obstacles, double bbx[4], double bby[4] )
static

Set cost to the smallest distance between lPos's centroid and a polygon stored in geoetry field.

 void pal::CostCalculator::setPolygonCandidatesCost ( int nblp, LabelPosition ** lPos, int max_p, RTree< PointSet *, double, 2, double > * obstacles, double bbx[4], double bby[4] )
static

The documentation for this class was generated from the following files: