2023.1.13

• ### Field Summary

Fields
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.
• ### Method Summary

All Methods
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.
• ### Field Detail

• #### INTERACT

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.

Constant Field Values
• #### CONTAIN

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 fine-grained check than the INTERACT check. If this check returns true, the INTERACT check will also return true.

Constant Field Values
• #### INSIDE

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 fine-grained check than the INTERACT check. If this check returns true, the INTERACT check will also return true.

Constant Field Values
• #### LINE_INTERSECT

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 fine-grained check than the INTERACT check. If this check returns true, the INTERACT check will also return true.

Constant Field Values
• ### Method Detail

• #### checkTopology

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.
Parameters:
aS1 - first shape
aS2 - second shape
aRelation - relation to be checked upon. Should be one of the constants in this interface (INTERACT, CONTAIN, INSIDE, LINE_INTERSECT).
Returns:
true if and only if the binary topology relation aRelation holds true on aS1 and aS2.