| TerraLib 4.1

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

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

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
TePDITileIndexer Class Reference

`#include <TePDITileIndexer.hpp>`

List of all members.

## Public Types

typedef vector< pair< unsigned int, unsigned int > > | TeTileSegIndex

## Public Member Functions

| TePDITileIndexer (const TePolygon &pol, const double &dy)
| Alternative Constructor.
void | clear ()
| Clear all internal resources.
| ~TePDITileIndexer ()
void | addRing (const unsigned int &ring_index)
| Update the tile index with the information of the supplied ring.
void | getTile (const double &y, TeTileSegIndex **index) const
const TePolygon & | getPol () const
unsigned int | getTilesNumber ()

## Protected Member Functions

| TePDITileIndexer (const TePDITileIndexer &)
const TePDITileIndexer & | operator= (const TePDITileIndexer &)
void | getTileIndex (const TeCoord2D &c1, const TeCoord2D &c2, unsigned int &firstTile, unsigned int &lastTile) const
void | getTileIndex (const double &y, unsigned int &tileIndex) const
| Gets tile index for y coordinate value.
void | init ()
| Init internal variables.

## Protected Attributes

const TePolygon & | refPol_
| < Reference polygon.
double | dy_
| Each tile segments index vector.
std::vector< TeTileSegIndex * > | tileIndex_

## Detailed Description

Examples:

  TePDIUtils_test.cpp.

## Member Typedef Documentation

typedef vector< pair< unsigned int, unsigned int > > TePDITileIndexer::TeTileSegIndex

## Constructor & Destructor Documentation

TePDITileIndexer::TePDITileIndexer | ( | const TePDITileIndexer & |  | ) | `[protected]`

TePDITileIndexer::TePDITileIndexer | ( | const TePolygon & | pol,
|  | const double & | dy
| ) |  | `[inline]`

Alternative Constructor.

Parameters:

  pol | The polygon to index.
  dy | Tile size along "y" axis.

TePDITileIndexer::~TePDITileIndexer | ( |  | ) | `[inline]`

## Member Function Documentation

void TePDITileIndexer::addRing | ( | const unsigned int & | ring_index | ) | `[inline]`

Update the tile index with the information of the supplied ring.

void TePDITileIndexer::clear | ( |  | ) | `[inline]`

Clear all internal resources.

const TePolygon& TePDITileIndexer::getPol | ( |  | ) | const`[inline]`

void TePDITileIndexer::getTile | ( | const double & | y,
|  | TeTileSegIndex ** | index
| ) |  | const`[inline]`

Gets tile index.

Parameters:

  y | Y value.
  index | Output tile pointer ( NULL if not found ).

void TePDITileIndexer::getTileIndex | ( | const TeCoord2D & | c1,
|  | const TeCoord2D & | c2,
|  | unsigned int & | firstTile,
|  | unsigned int & | lastTile
| ) |  | const`[inline, protected]`

Gets tile index intervals in y direction for a given segment (it does NOT need to be oriented).

Parameters:

  c1 | First segment coordinate.
  c2 | Second segment coordinate.
  firstTile | The first tile index that this segment intersects.
  lastTile | The last tile index that this segment intersects.

void TePDITileIndexer::getTileIndex | ( | const double & | y,
|  | unsigned int & | tileIndex
| ) |  | const`[inline, protected]`

Gets tile index for y coordinate value.

Parameters:

  y | Value of "y" coordinate.
  tileIndex | Index of corresponding tile.

unsigned int TePDITileIndexer::getTilesNumber | ( |  | ) | `[inline]`

void TePDITileIndexer::init | ( |  | ) | `[inline, protected]`

Init internal variables.

const TePDITileIndexer& TePDITileIndexer::operator= | ( | const TePDITileIndexer & |  | ) | `[protected]`

Copy overload

## Member Data Documentation

double TePDITileIndexer::dy_`[protected]`

Each tile segments index vector.

const TePolygon& TePDITileIndexer::refPol_`[protected]`

< Reference polygon.

Tile resolution along "y" axis.

std::vector<TeTileSegIndex*> TePDITileIndexer::tileIndex_`[protected]`

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDITileIndexer.hpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines