| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions | Protected Attributes
TeMinimumDistanceStrategy Class Reference
Spatial strategy hierarchy to compute cells attributes

Class to compute distances using KD-trees. More...

`#include <TeComputeAttributeStrategies.h>`

Inheritance diagram for TeMinimumDistanceStrategy:

List of all members.

## 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.

## Detailed Description

Class to compute distances using KD-trees.

## Constructor & Destructor Documentation

TeMinimumDistanceStrategy::TeMinimumDistanceStrategy | ( | TeTheme * | theme_,
|  | TeGeomRep | rep_,
|  | double | distError_ = `50`
| ) |  |

Constructor.

virtual TeMinimumDistanceStrategy::~TeMinimumDistanceStrategy | ( |  | ) | `[inline, virtual]`

Destructor.

## Member Function Documentation

string TeMinimumDistanceStrategy::compute | ( | TeBox | box | ) | `[virtual]`

Function to compute the attribute.

Implements TeComputeSpatialStrategy.

Reimplemented in TeMinimumDistancePolygonsStrategy.

void TeMinimumDistanceStrategy::CreatePoints | ( | TeCoord2D | p1,
|  | TeCoord2D | p2
| ) |  | `[protected]`

Create intermediate points between two given points, using the maximum distance.

## Member Data Documentation

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.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeComputeAttributeStrategies.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeComputeAttributeStrategies.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines