| 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
TePolygonSetProperties Class Reference

`#include <TePolygonSetProperties.h>`

List of all members.

## Public Member Functions

| TePolygonSetProperties (const TePolygonSet &polSet)
| Default Constructor.
| ~TePolygonSetProperties ()
| Default Destructor.
double | getPolygonArea (unsigned int polIndex)
| Returns the area of the given polygon.
double | getPolygonBoxArea (unsigned int polIndex)
| Returns the bounding box area of the given polygon.
double | getPolygonPerimeter (unsigned int polIndex)
| Returns the perimeter of the given polygon.
double | getPolygonFractalDimension (unsigned int polIndex)
| Returns the fractal dimension of the given polygon.
double | getPolygonPerimeterAreaRatio (unsigned int polIndex)
| Returns the perimeter/area ratio of the given polygon.
double | getPolygonCompacity (unsigned int polIndex)
| Returns the compacity of the given polygon.
double | getPolygonShapeIndex (unsigned int polIndex)
| Returns the shape index of the given polygon.
double | getPolygonDensity (unsigned int polIndex)
| Returns the density of the given polygon.
double | getPolygonLength (unsigned int polIndex)
| Returns the bounding box length from the given polygon.
double | getPolygonWidth (unsigned int polIndex)
| Returns the bounding box width from the given polygon.
double | getPolygonCircle (unsigned int polIndex)
| Returns the related circunscribing circle from the given polygon.
double | getPolygonContiguity (unsigned int polIndex)
| Returns the contiguity index from the given polygon.
double | getPolygonGyrationRadius (unsigned int polIndex)
| Returns the radius of gyration from the given polygon.
double | getPolygonEllipticFit (unsigned int polIndex)
| Returns the elliptic fit of the given polygon.
double | getPolygonAngle (unsigned int polIndex)
| Returns the main angle of the given polygon.
double | getPolygonRectangularFit (unsigned int polIndex)
| Returns the rectangular fit of the given polygon.
void | printProperties (int polIndex=-1)
| Print all attributes for a specific (or every) polygon.

## Protected Attributes

const TePolygonSet & | polSet_

## Detailed Description

properties generation.

Author:
  Thales T. Korting <tkorting@dpi.inpe.br>

## Constructor & Destructor Documentation

TePolygonSetProperties::TePolygonSetProperties | ( | const TePolygonSet & | polSet | ) |

Default Constructor.

Parameters:

  polSet | Input polygon set from where the properties will be generated.

TePolygonSetProperties::~TePolygonSetProperties | ( |  | ) |

Default Destructor.

## Member Function Documentation

double TePolygonSetProperties::getPolygonAngle | ( | unsigned int | polIndex | ) |

Returns the main angle of the given polygon.

[0, TePI]

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonArea | ( | unsigned int | polIndex | ) |

Returns the area of the given polygon.

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonBoxArea | ( | unsigned int | polIndex | ) |

Returns the bounding box area of the given polygon.

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonCircle | ( | unsigned int | polIndex | ) |

Returns the related circunscribing circle from the given polygon.

[0, 1]

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonCompacity | ( | unsigned int | polIndex | ) |

Returns the compacity of the given polygon.

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonContiguity | ( | unsigned int | polIndex | ) |

Returns the contiguity index from the given polygon.

[0, 1]

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonDensity | ( | unsigned int | polIndex | ) |

Returns the density of the given polygon.

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonEllipticFit | ( | unsigned int | polIndex | ) |

Returns the elliptic fit of the given polygon.

[0, 1]

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonFractalDimension | ( | unsigned int | polIndex | ) |

Returns the fractal dimension of the given polygon.

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonGyrationRadius | ( | unsigned int | polIndex | ) |

Returns the radius of gyration from the given polygon.

[0, INF)

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonLength | ( | unsigned int | polIndex | ) |

Returns the bounding box length from the given polygon.

[0, INF)

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonPerimeter | ( | unsigned int | polIndex | ) |

Returns the perimeter of the given polygon.

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonPerimeterAreaRatio | ( | unsigned int | polIndex | ) |

Returns the perimeter/area ratio of the given polygon.

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonRectangularFit | ( | unsigned int | polIndex | ) |

Returns the rectangular fit of the given polygon.

[0, TePI]

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonShapeIndex | ( | unsigned int | polIndex | ) |

Returns the shape index of the given polygon.

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

double TePolygonSetProperties::getPolygonWidth | ( | unsigned int | polIndex | ) |

Returns the bounding box width from the given polygon.

[0, INF)

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

void TePolygonSetProperties::printProperties | ( | int | polIndex = `-1` | ) |

Print all attributes for a specific (or every) polygon.

Parameters:

  polIndex | The polygon index inside the input polygon set vector.

## Member Data Documentation

const TePolygonSet& TePolygonSetProperties::polSet_`[protected]`

Internal polygon set reference.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TePolygonSetProperties.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TePolygonSetProperties.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines