![]() |
TerraLib 4.1
|
Class to compute distances using KD-trees. More...
#include <TeComputeAttributeStrategies.h>
Public Member Functions | |
| TeMinimumDistanceStrategy (TeTheme *theme_, TeGeomRep rep_, double distError_=50) | |
| Constructor. | |
| virtual | ~TeMinimumDistanceStrategy () |
| Destructor. | |
| virtual string | compute (TeBox box) |
| Function to compute the attribute. | |
Protected Member Functions | |
| void | CreatePoints (TeCoord2D p1, TeCoord2D p2) |
| Create intermediate points between two given points, using the maximum distance. | |
Protected Attributes | |
| double | maxDist |
| The maximum error in the computation. | |
| vector< pair< TeCoord2D, TePoint > > | dataSet |
| KDTREE * | tree |
| The tree to store the points. | |
Class to compute distances using KD-trees.
| TeMinimumDistanceStrategy::TeMinimumDistanceStrategy | ( | TeTheme * | theme_, |
| TeGeomRep | rep_, | ||
| double | distError_ = 50 |
||
| ) |
Constructor.
| virtual TeMinimumDistanceStrategy::~TeMinimumDistanceStrategy | ( | ) | [inline, virtual] |
Destructor.
Function to compute the attribute.
Implements TeComputeSpatialStrategy.
Reimplemented in TeMinimumDistancePolygonsStrategy.
Create intermediate points between two given points, using the maximum distance.
vector<pair<TeCoord2D, TePoint> > TeMinimumDistanceStrategy::dataSet [protected] |
double TeMinimumDistanceStrategy::maxDist [protected] |
The maximum error in the computation.
KDTREE* TeMinimumDistanceStrategy::tree [protected] |
The tree to store the points.