QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
pal::PolygonCostCalculator Class Reference

Data structure to compute polygon's candidates costs. More...

#include <costcalculator.h>

Public Member Functions

 PolygonCostCalculator (LabelPosition *lp)
void update (PointSet *pset)
double getCost ()
LabelPositiongetLabel ()

Detailed Description

Data structure to compute polygon's candidates costs.

eight segment from center of candidat to (rpx,rpy) points (0°, 45°, 90°, ..., 315°) dist store the shortest square distance from the center to an object ok[i] is the to true whether the corresponding dist[i] is set

Constructor & Destructor Documentation

pal::PolygonCostCalculator::PolygonCostCalculator ( LabelPosition lp)

Member Function Documentation

double pal::PolygonCostCalculator::getCost ( )
LabelPosition * pal::PolygonCostCalculator::getLabel ( )
void pal::PolygonCostCalculator::update ( PointSet pset)

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