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

Class to compute the value that occurs more frequently in a given box. More...

`#include <TeComputeAttributeStrategies.h>`

Inheritance diagram for TeCategoryMajorityStrategy:

List of all members.

## Public Member Functions

| TeCategoryMajorityStrategy (TeTheme *theme_, string att_, map< string, string > &classesMap)
| Constructor.
virtual | ~TeCategoryMajorityStrategy ()
| Destructor.
virtual string | compute (TeBox box)
| Function to compute the attribute.

## Protected Attributes

map< string, string > | classesMap
| The map of values.
string | attribute
| The attribute used in the majority.

## Detailed Description

Class to compute the value that occurs more frequently in a given box.

## Constructor & Destructor Documentation

TeCategoryMajorityStrategy::TeCategoryMajorityStrategy | ( | TeTheme * | theme_,
|  | string | att_,
|  | map< string, string > & | classesMap
| ) |  | `[inline]`

Constructor.

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

Destructor.

## Member Function Documentation

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

Function to compute the attribute.

Implements TeComputeSpatialStrategy.

## Member Data Documentation

string TeCategoryMajorityStrategy::attribute`[protected]`

The attribute used in the majority.

map<string, string> TeCategoryMajorityStrategy::classesMap`[protected]`

The map of values.

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