QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 (pal::PointSet *pset)
 

Detailed Description

Data structure to compute polygon's candidates costs.

Eight segments from center of candidate 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

Note
not available in Python bindings

Definition at line 65 of file costcalculator.h.

Constructor & Destructor Documentation

◆ PolygonCostCalculator()

PolygonCostCalculator::PolygonCostCalculator ( LabelPosition lp)
explicit

Definition at line 221 of file costcalculator.cpp.

Member Function Documentation

◆ getCost()

double PolygonCostCalculator::getCost ( )

Definition at line 244 of file costcalculator.cpp.

◆ getLabel()

LabelPosition * PolygonCostCalculator::getLabel ( )

Definition at line 239 of file costcalculator.cpp.

◆ update()

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

Definition at line 230 of file costcalculator.cpp.


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