TerraLib 4.1
TeCountObjectsStrategy Class Reference

#include <TeComputeAttributeStrategies.h>

Inheritance diagram for TeCountObjectsStrategy:
TeComputeSpatialStrategy TeCountLineObjectsStrategy TeCountPointObjectsStrategy TeCountPolygonalObjectsStrategy

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines