public interface ILcd2DBinaryTopology
ILcdShapes
.Modifier and Type  Field and Description 

static int 
CONTAIN
Constant to be used to indicate the operation to be performed is to check
whether the first shape contains the second shape.

static int 
INSIDE
Constant to be used to indicate the operation to be performed is to check
whether the first shape is inside the second shape.

static int 
INTERACT
Topology relation constant INTERACT Two
ILcdShape objects
INTERACT if and only if there is some overlap meaning they have at least one point in common. 
static int 
LINE_INTERSECT
Constant to be used to indicate the operation to be performed is to check
whether the first shape boundary intersects the second shape boundary.

Modifier and Type  Method and Description 

boolean 
checkTopology(ILcdShape aS1,
ILcdShape aS2,
int aRelation)
Returns
true if and only if the binary topology relation
aRelation holds true on aS1 and
aS2 . 
static final int INTERACT
Topology relation constant INTERACT Two ILcdShape
objects
INTERACT if and only if there is some overlap meaning they have at least one point in common.
static final int CONTAIN
Constant to be used to indicate the operation to be performed is to check
whether the first shape contains the second shape.
This is the inverse of the INSIDE
operation.
This is a more finegrained check than the INTERACT
check.
If this check returns true
, the INTERACT
check will also return true.
static final int INSIDE
Constant to be used to indicate the operation to be performed is to check
whether the first shape is inside the second shape.
This is the inverse of the CONTAIN
operation.
This is a more finegrained check than the INTERACT
check.
If this check returns true
, the INTERACT
check will also return true.
static final int LINE_INTERSECT
Constant to be used to indicate the operation to be performed is to check whether the first shape boundary intersects the second shape boundary.
This is a more finegrained check than the INTERACT
check.
If this check returns true
, the INTERACT
check will also return true.
boolean checkTopology(ILcdShape aS1, ILcdShape aS2, int aRelation)
true
if and only if the binary topology relation
aRelation
holds true
on aS1
and
aS2
.aS1
 first shapeaS2
 second shapeaRelation
 relation to be checked upon.
Should be one of the constants in this interface (INTERACT
, CONTAIN
, INSIDE
, LINE_INTERSECT
).true
if and only if the binary topology
relation aRelation holds true
on aS1 and aS2.