| TerraLib 4.1

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

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

Public Member Functions
TeCountObjectsStrategy Class Reference
Spatial strategy hierarchy to compute cells attributes

`#include <TeComputeAttributeStrategies.h>`

Inheritance diagram for TeCountObjectsStrategy:

List of all members.

## Public Member Functions

| TeCountObjectsStrategy (TeTheme *theme_, TeGeomRep geom_)
| Constructor.
virtual | ~TeCountObjectsStrategy ()
| Destructor.
virtual string | compute (TeBox box)
| Function to compute the attribute.
virtual TeAttrDataType | Type ()
| This class generates TeINT attributes.

## Detailed Description

Class to count the elements in a given box This class returns the number of elements whose BOX intercepts the box in the argument of compute For safety, use the count classes that inherit this one

## Constructor & Destructor Documentation

TeCountObjectsStrategy::TeCountObjectsStrategy | ( | TeTheme * | theme_,
|  | TeGeomRep | geom_
| ) |  | `[inline]`

Constructor.

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

Destructor.

## Member Function Documentation

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

Function to compute the attribute.

Implements TeComputeSpatialStrategy.

Reimplemented in TeCountPolygonalObjectsStrategy, and TeCountLineObjectsStrategy.

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

This class generates TeINT attributes.

Reimplemented from TeComputeSpatialStrategy.

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