| 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
TeCoverageInterpolator< T > Class Template Reference

Provides an interpolation method for coverages. More...

`#include <TeCoverageInterpolator.h>`

Inheritance diagram for TeCoverageInterpolator< T >:

List of all members.

## Public Member Functions

| TeCoverageInterpolator ()
| Default constructor.
virtual | ~TeCoverageInterpolator ()
| Destructor.
virtual void | setDecoder (TeCoverageDecoder< T > *decoder)
| Set the decoder.
virtual TeCoverageDecoder< T > * | getDecoder () const
| Return the decoder.
virtual void | evaluate (const TeCoord2D &position, std::vector< double > &value)=0
| Retrieve the coverage value at an arbitrary location.
virtual void | evaluate (TeRaster &raster, const int rasterBand, const int coverageDimension, const TeBox &box=TeBox())=0
| Fill a region of a raster with interpolated coverage data.

## Protected Attributes

TeCoverageDecoder< T > * | decoder_
| The coverage decoder.

## Detailed Description

### template<class T>
class TeCoverageInterpolator< T >

Provides an interpolation method for coverages.

Abstract class for providing an interpolation method for generic
  Coverages.

Assumes that the coverage decoder will be provided, for more efficient
  access to the the coverage data.

## Constructor & Destructor Documentation

template<class T >

TeCoverageInterpolator< T >::TeCoverageInterpolator | ( |  | ) | `[inline]`

Default constructor.

template<class T >

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

Destructor.

## Member Function Documentation

template<class T >

virtual void TeCoverageInterpolator< T >::evaluate | ( | const TeCoord2D & | position,
|  | std::vector< double > & | value
| ) |  | `[pure virtual]`

Retrieve the coverage value at an arbitrary location.

Retrieve the coverage value at an arbitrary location, using the
  coverage decoder to access the coverage data.

Parameters:

  position | the arbitrary location to be evaluated
  the | value vector, to be filled by this method

Implemented in TeCoverageInterpolatorNN< T >.

template<class T >

virtual void TeCoverageInterpolator< T >::evaluate | ( | TeRaster & | raster,
|  | const int | rasterBand,
|  | const int | coverageDimension,
|  | const TeBox & | box = `TeBox()`
| ) |  | `[pure virtual]`

Fill a region of a raster with interpolated coverage data.

Fill the pixels of a squared region of a raster with
  coverage data, using an interpolation method.

Parameters:

  raster | the raster to be filled with coverage data
  rasterBand | the raster band to be filled
  coverageDimension | the coverage dimension to be evaluated
  box | defines the raster region to be filled

Implemented in TeCoverageInterpolatorNN< T >.

template<class T >

virtual TeCoverageDecoder<T>* TeCoverageInterpolator< T >::getDecoder | ( |  | ) | const`[inline, virtual]`

Return the decoder.

Returns:
  the coverage decoder

template<class T >

virtual void TeCoverageInterpolator< T >::setDecoder | ( | TeCoverageDecoder< T > * | decoder | ) | `[inline, virtual]`

Set the decoder.

Parameters:

  decoder | the coverage decoder

Reimplemented in TeCoverageInterpolatorNN< T >.

## Member Data Documentation

template<class T >

TeCoverageDecoder<T>* TeCoverageInterpolator< T >::decoder_`[protected]`

The coverage decoder.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines