QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Static Public Member Functions | List of all members
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 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])

Detailed Description

Definition at line 24 of file costcalculator.h.

Member Function Documentation

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

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

Definition at line 35 of file costcalculator.cpp.

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

Definition at line 164 of file costcalculator.cpp.

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.

Definition at line 136 of file costcalculator.cpp.

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

Definition at line 78 of file costcalculator.cpp.


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