| 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
TeComputeSpatialStrategy Class Reference
Spatial strategy hierarchy to compute cells attributes

Virtual class for computing attributes based on the spatial characteristics of the objects (Strategy Design Pattern) More...

`#include <TeComputeAttributeStrategies.h>`

Inheritance diagram for TeComputeSpatialStrategy:

List of all members.

## Public Member Functions

virtual | ~TeComputeSpatialStrategy ()
| Destructor.
virtual string | compute (TeBox box)=0
| Virtual function to compute the attribute.
virtual TeAttrDataType | Type ()
| The type of attriute generated by the class. Default is TeREAL.
TeQuerier * | getWithinGeometry (TeBox box, string att="")
| Return all the geometries within a given box.

## Protected Member Functions

| TeComputeSpatialStrategy (TeTheme *theme_, TeGeomRep rep_)
| Constructor.

## Protected Attributes

TeTheme * | theme
| Theme used to compute the attributes.
TeGeomRep | rep
| The geometry of the theme used.

## Detailed Description

Virtual class for computing attributes based on the spatial characteristics of the objects (Strategy Design Pattern)

## Constructor & Destructor Documentation

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

Destructor.

TeComputeSpatialStrategy::TeComputeSpatialStrategy | ( | TeTheme * | theme_,
|  | TeGeomRep | rep_
| ) |  | `[inline, protected]`

Constructor.

## Member Function Documentation

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

Virtual function to compute the attribute.

Implemented in TeAverageWeighByAreaStrategy, TeSumWeighByAreaStrategy, TeCategoryMajorityStrategy, TeCountObjectsStrategy, TeCountPolygonalObjectsStrategy, TeCountLineObjectsStrategy, TeLineLengthStrategy, TeTotalAreaPercentageStrategy, TeMinimumDistanceStrategy, and TeMinimumDistancePolygonsStrategy.

TeQuerier * TeComputeSpatialStrategy::getWithinGeometry | ( | TeBox | box,
|  | string | att = `""`
| ) |  |

Return all the geometries within a given box.

virtual TeAttrDataType TeComputeSpatialStrategy::Type | ( |  | ) | `[inline, virtual]`

The type of attriute generated by the class. Default is TeREAL.

Reimplemented in TeCountObjectsStrategy.

## Member Data Documentation

TeGeomRep TeComputeSpatialStrategy::rep`[protected]`

The geometry of the theme used.

TeTheme* TeComputeSpatialStrategy::theme`[protected]`

Theme used to compute the attributes.

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