QGIS API Documentation  2.8.2-Wien
 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)
double getCost ()
LabelPositiongetLabel ()
void update (PointSet *pset)

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

Definition at line 46 of file costcalculator.h.

Constructor & Destructor Documentation

pal::PolygonCostCalculator::PolygonCostCalculator ( LabelPosition lp)

Definition at line 217 of file costcalculator.cpp.

Member Function Documentation

double pal::PolygonCostCalculator::getCost ( )

Definition at line 242 of file costcalculator.cpp.

LabelPosition * pal::PolygonCostCalculator::getLabel ( )

Definition at line 237 of file costcalculator.cpp.

void pal::PolygonCostCalculator::update ( PointSet pset)

Definition at line 226 of file costcalculator.cpp.


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