| TerraLib 4.1

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

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

Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
TeSTEventSet Class Reference

A class that represents a set of spatial temporal events. More...

`#include <TeSTEvent.h>`

Inheritance diagram for TeSTEventSet:

List of all members.

## Public Member Functions

| TeSTEventSet (TeTheme *theme=0, const TeAttributeList &attrList=TeAttributeList())
| Constructor.
| ~TeSTEventSet ()
| Destructor.
virtual bool | buildKdTree (const int &n)
| Build a index structure (kdTree) over all event points in this set.
virtual bool | search (const TeBox &b, vector< TeSTEvent * > &result)
| Searchs the event points inside a specific bounding box.
virtual bool | nearestNeighbourSearch (const TeCoord2D &coord, vector< TeSTEvent * > &result, vector< double > &distances, const unsigned int &k)
| Searchs the k-nearest neighbours of a specific coordinate.
virtual void | clear ()
| Clears the event set.

## Protected Types

typedef TeSAM::TeAdaptativeKdTreeNode < TeCoord2D, vector< TePoint > , TePoint > | kdNode
typedef TeSAM::TeAdaptativeKdTree < kdNode > | kdTree

## Protected Member Functions

bool | buildImpl (TeQuerier *querier, const int &slide=-1)
| Build the set using querier.

## Protected Attributes

kdTree * | kdTree_
| Index structure (KD Tree) to index the point locations.

## Detailed Description

A class that represents a set of spatial temporal events.

This class specializes the abstract class TeBaseSTInstanceSet representing each spatial temporal instance of the set as a TeSTEvent type. That is, the geometries of each instance or event in this set is represented as a point (TePoint class)and its valid time as a simple number (long type).

See also:
  TeBaseSTInstanceSet TeSTEvent TePoint TeTheme TeLayer

## Member Typedef Documentation

typedef TeSAM::TeAdaptativeKdTreeNode<TeCoord2D, vector<TePoint>, TePoint> TeSTEventSet::kdNode`[protected]`

typedef TeSAM::TeAdaptativeKdTree<kdNode> TeSTEventSet::kdTree`[protected]`

## Constructor & Destructor Documentation

TeSTEventSet::TeSTEventSet | ( | TeTheme * | theme = `0`,
|  | const TeAttributeList & | attrList = `TeAttributeList()`
| ) |  |

Constructor.

------------ TeSTEventSet

TeSTEventSet::~TeSTEventSet | ( |  | ) |

Destructor.

## Member Function Documentation

bool TeSTEventSet::buildImpl | ( | TeQuerier * | querier,
|  | const int & | slide = `-1`
| ) |  | `[protected, virtual]`

Build the set using querier.

Implements TeBaseSTInstanceSet< TePoint, long, TeSTEvent >.

bool TeSTEventSet::buildKdTree | ( | const int & | n | ) | `[virtual]`

Build a index structure (kdTree) over all event points in this set.

void TeSTEventSet::clear | ( | void |  | ) | `[virtual]`

Clears the event set.

Reimplemented from TeBaseSTInstanceSet< TePoint, long, TeSTEvent >.

bool TeSTEventSet::nearestNeighbourSearch | ( | const TeCoord2D & | coord,
|  | vector< TeSTEvent * > & | result,
|  | vector< double > & | distances,
|  | const unsigned int & | k
| ) |  | `[virtual]`

Searchs the k-nearest neighbours of a specific coordinate.

bool TeSTEventSet::search | ( | const TeBox & | b,
|  | vector< TeSTEvent * > & | result
| ) |  | `[virtual]`

Searchs the event points inside a specific bounding box.

Reimplemented from TeBaseSTInstanceSet< TePoint, long, TeSTEvent >.

## Member Data Documentation

kdTree* TeSTEventSet::kdTree_`[protected]`

Index structure (KD Tree) to index the point locations.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines