| TerraLib 4.1

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

Functions
Covered by test
Topological operators

## Functions

TL_DLL bool | TeCoveredBy (const TeLine2D &redLine, const TeLine2D &blueLine)
| Check if red line is covered by blue line.
TL_DLL bool | TeCoveredBy (const TeLine2D &l, const TePolygon &pol)
| Check if line is covered by polygon.
TL_DLL bool | TeCoveredBy (const TePolygon &redPol, const TePolygon &bluePol)
| Check if red polygon is covered by blue polygon.
TL_DLL bool | TeCoveredBy (const TeCell &cell1, const TeCell &cell2)
| Check if cell1 is covered by cell2.
TL_DLL bool | TeCoveredBy (const TePolygon &poly, const TeCell &cell)
| Check if polygon is covered by cell.
TL_DLL bool | TeCoveredBy (const TeLine2D &line, const TeCell &cell)
| Check if line is covered by cell.

## Detailed Description

Check if one object is covered by another object.

     TeCoveredBy(x, y) => (x inter y = x) ^ (I(x) inter I(y) = true)
       - Case 1: (x = TePolygon and y = TePolygon) or (x = TeLine2D and y = TeLine2D)
                 => (I(x) inter I(y) = true) ^ (I(x) inter E(y) = false) ^ (B(x) inter E(y) = false) ^ (B(x) inter B(y) = true)
       - Case 2: x = TeLine2D and y = TePolygon
                 => (I(x) inter I(y) = true) ^ (I(x) inter E(y) = false) ^ (B(x) inter E(y) = false) ^ ((B(x) inter B(y) = true) v (I(x) inter B(y) = true))

## Function Documentation

TL_DLL bool TeCoveredBy | ( | const TeLine2D & | redLine,
|  | const TeLine2D & | blueLine
| ) |  |

Check if red line is covered by blue line.

TL_DLL bool TeCoveredBy | ( | const TeLine2D & | line,
|  | const TeCell & | cell
| ) |  |

Check if line is covered by cell.

TL_DLL bool TeCoveredBy | ( | const TePolygon & | poly,
|  | const TeCell & | cell
| ) |  |

Check if polygon is covered by cell.

TL_DLL bool TeCoveredBy | ( | const TeCell & | cell1,
|  | const TeCell & | cell2
| ) |  |

Check if cell1 is covered by cell2.

TL_DLL bool TeCoveredBy | ( | const TePolygon & | redPol,
|  | const TePolygon & | bluePol
| ) |  |

Check if red polygon is covered by blue polygon.

TL_DLL bool TeCoveredBy | ( | const TeLine2D & | l,
|  | const TePolygon & | pol
| ) |  |

Check if line is covered by polygon.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines