| TerraLib 4.1

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

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

Public Member Functions | Protected Attributes
TeCoverageDecoder< T > Class Template Reference

Abstract class of a coverage data decoder. More...

`#include <TeCoverageDecoder.h>`

Inheritance diagram for TeCoverageDecoder< T >:

List of all members.

## Public Member Functions

| TeCoverageDecoder (TeCoverageParams &params)
| Constructor from coverage parameters.
virtual | ~TeCoverageDecoder ()
| Destructor.
virtual TeCoverageParams & | getParameters ()
| Return the coverage parameters.
virtual void | init ()
| Initialize internal structures.
virtual void | clear ()
| Clear internal structures.
virtual void | selectGeomValuePairs (const TePolygon &poly, const TeSpatialRelation relation, std::vector< TeGeomValuePair< T > > &selected)
| Select generic geometry-value pairs from the coverage data.
virtual void | selectBlocks (const TePolygon &poly, const TeSpatialRelation relation, std::vector< TeCoverageBlock< T > > &selected, std::set< int > &dontSelect=std::set< int >())=0
| Select generic coverage blocks from the coverage data.

## Protected Attributes

TeCoverageParams & | params_
| Coverage parameters.

## Detailed Description

### template<class T>
class TeCoverageDecoder< T >

Abstract class of a coverage data decoder.

The decoder is used to provide a common interface for accessing
  coverage data regardless of where and how it is stored.

See also:
  TeGeomValuePair TeCoverageBlock

## Constructor & Destructor Documentation

template<class T>

TeCoverageDecoder< T >::TeCoverageDecoder | ( | TeCoverageParams & | params | ) | `[inline]`

Constructor from coverage parameters.

template<class T>

virtual TeCoverageDecoder< T >::~TeCoverageDecoder | ( |  | ) | `[inline, virtual]`

Destructor.

## Member Function Documentation

template<class T>

virtual void TeCoverageDecoder< T >::clear | ( |  | ) | `[inline, virtual]`

Clear internal structures.

Clear internal structures, must be called before disposing of the decoder.

Reimplemented in TeCoverageDecoderCacheLRU< T >.

template<class T>

virtual TeCoverageParams& TeCoverageDecoder< T >::getParameters | ( |  | ) | `[inline, virtual]`

Return the coverage parameters.

template<class T>

virtual void TeCoverageDecoder< T >::init | ( |  | ) | `[inline, virtual]`

Initialize internal structures.

Instantiate internal structures, must be called before any attempt to access the coverage data.

Reimplemented in TeCoverageDecoderCacheLRU< T >, and TeCoverageDecoderDatabase< T >.

template<class T>

virtual void TeCoverageDecoder< T >::selectBlocks | ( | const TePolygon & | poly,
|  | const TeSpatialRelation | relation,
|  | std::vector< TeCoverageBlock< T > > & | selected,
|  | std::set< int > & | dontSelect = `std::set< int >()`
| ) |  | `[pure virtual]`

Select generic coverage blocks from the coverage data.

Select generic coverage blocks from the coverage data.

The polygon parameter defines a selection area and the relation
  parameter specifies the kind of relation (e.g. intersection, crossing, overlapping) that holds between the selection area and at least one geometry in each block to be selected.

Parameters:

  poly | an instance of TePolygon representing a selection area
  relation | a spatial relation
  dontSelect | list IDs of blocks that must not be retrieved

See also:
  TeCoverageBlock TeSpatialRelation

Implemented in TeCoverageDecoderCacheLRU< T >, and TeCoverageDecoderDatabase< T >.

template<class T>

virtual void TeCoverageDecoder< T >::selectGeomValuePairs | ( | const TePolygon & | poly,
|  | const TeSpatialRelation | relation,
|  | std::vector< TeGeomValuePair< T > > & | selected
| ) |  | `[inline, virtual]`

Select generic geometry-value pairs from the coverage data.

Select generic geometry-value pairs from the coverage data.

The polygon parameter defines a selection area and the relation
  parameter specifies the kind of relation (e.g. intersection, crossing, overlapping) that holds between the selection area and the geometries to be selected.

Parameters:

  poly | an instance of TePolygon representing a selection area
  relation | a spatial relation

See also:
  TeGeomValuePair

## Member Data Documentation

template<class T>

TeCoverageParams& TeCoverageDecoder< T >::params_`[protected]`

Coverage parameters.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeCoverageDecoder.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines