public interface ILcdIntersectionMatrixPattern
ILcdIntersectionMatrix
Modifier and Type | Field and Description |
---|---|
static ILcdIntersectionMatrixPattern |
CONTAINS
Matrix pattern checking the topological relationship contains.
|
static ILcdIntersectionMatrixPattern |
COVERED_BY
Matrix pattern checking the topological relationship coveredBy.
|
static ILcdIntersectionMatrixPattern |
COVERS
Matrix pattern checking the topological relationship covers.
|
static ILcdIntersectionMatrixPattern |
CROSSES
Matrix pattern checking the topological relationship crosses.
|
static ILcdIntersectionMatrixPattern |
DISJOINT
Matrix pattern checking the topological relationship disjoint.
|
static ILcdIntersectionMatrixPattern |
EQUALS
Matrix pattern checking the topological relationship equals.
|
static ILcdIntersectionMatrixPattern |
INTERSECTS
Matrix pattern checking the topological relationship intersects.
|
static ILcdIntersectionMatrixPattern |
OVERLAPS
Matrix pattern checking the topological relationship overlaps.
|
static ILcdIntersectionMatrixPattern |
TOUCHES
Matrix pattern checking the topological relationship touches.
|
static ILcdIntersectionMatrixPattern |
WITHIN
Matrix pattern checking the topological relationship within.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(ILcdIntersectionMatrix aIntersectionMatrix)
Checks whether the topological relationship defined by this matrix pattern holds for the given
intersection matrix.
|
static final ILcdIntersectionMatrixPattern DISJOINT
Matrix pattern checking the topological relationship disjoint.
Two shapes are disjoint if they have no points in common.
This relation is the negation of the INTERSECTS
relation.
FF*FF****
static final ILcdIntersectionMatrixPattern INTERSECTS
Matrix pattern checking the topological relationship intersects.
Two shapes intersect if they have at least one point in common.
This relation is the negation of the DISJOINT
relation.
T********
*T*******
***T*****
****T****
static final ILcdIntersectionMatrixPattern CONTAINS
Matrix pattern checking the topological relationship contains.
This relation is the inverse of the WITHIN
relation.
The first shape contains the second shape if the following conditions are fulfilled:
Note that the first condition implies that a polygon does not contain its own contour (a closed polyline).
This illustrates the subtle difference between the contains relation and the COVERS
relation , since a polygon covers its own contour.
T*****FF*
static final ILcdIntersectionMatrixPattern WITHIN
Matrix pattern checking the topological relationship within.
This relation is the inverse of the CONTAINS
relation.
The first shape is within the second shape if the following conditions are fulfilled:
Note that the first condition implies that the contour of a polygon is not within the polygon.
This illustrates the subtle difference between the within relation and the COVERED_BY
relation, since the contour of a polygon is covered by the polygon.
T*F**F***
static final ILcdIntersectionMatrixPattern COVERS
Matrix pattern checking the topological relationship covers.
This relation is the inverse of the COVERED_BY
relation.
The first shape covers the second shape if the following conditions are fulfilled:
Note the subtle difference with the CONTAINS
relation.
T*****FF*
*T****FF*
***T**FF*
****T*FF*
static final ILcdIntersectionMatrixPattern COVERED_BY
Matrix pattern checking the topological relationship coveredBy.
This relation is the inverse of the COVERS
relation.
The first shape is covered by the second shape if the following conditions are fulfilled:
Note the subtle difference with the WITHIN
relation.
T*F**F***
*TF**F***
**FT*F***
**F*TF***
static final ILcdIntersectionMatrixPattern TOUCHES
Matrix pattern checking the topological relationship touches. Two shapes touch each other if the following two conditions are fulfilled:
FT*******
F**T*****
F***T****
static final ILcdIntersectionMatrixPattern CROSSES
Matrix pattern checking the topological relationship crosses. Two shapes cross each other if the following three conditions are fulfilled:
In practice, this means that:
0********
for two 1-dimensional shapesT*T******
for a 1-dimensional and a 2-dimensional shapeT*****T**
for a 2-dimensional and a 1-dimensional shapestatic final ILcdIntersectionMatrixPattern OVERLAPS
Matrix pattern checking the topological relationship overlaps. Two shapes overlap if the following conditions are fulfilled:
This means that the overlap relation is always false for a:
1*T***T**
for two 1-dimensional shapesT*T***T**
for two 2-dimensional shapesstatic final ILcdIntersectionMatrixPattern EQUALS
Matrix pattern checking the topological relationship equals. The equals relation is true for two shapes which have the same interior, boundary, and exterior.
T*F**FFF*
boolean matches(ILcdIntersectionMatrix aIntersectionMatrix)
aIntersectionMatrix
- the intersection matrixtrue
if the binary topology relation defined by this matrix pattern holds
for aIntersectionMatrix
, false otherwise.