Class: GraphComponent

jsts.geomgraph.GraphComponent

new GraphComponent()

A GraphComponent is the parent class for the objects' that form a graph. Each GraphComponent can carry a Label.
Source:

Members

(protected) label :Label

Type:
  • Label
Source:

Methods

(protected) computeIM(im)

compute the contribution to an IM for this component
Parameters:
Name Type Description
im IntersectionMatrix
Source:

getCoordinate() → {Coordinate}

Source:
Returns:
a coordinate in this component (or null, if there are none).
Type
Coordinate

isCovered() → {boolean}

Source:
Returns:
Type
boolean

isCoveredSet() → {boolean}

Source:
Returns:
Type
boolean

isInResult() → {boolean}

Source:
Returns:
Type
boolean

isIsolated()

An isolated component is one that does not intersect or touch any other component. This is the case if the label has valid locations for only a single Geometry.
Source:
Returns:
true if this component is isolated.

isVisited() → {boolean}

Source:
Returns:
Type
boolean

setCovered(isCovered)

Parameters:
Name Type Description
isCovered boolean
Source:

setInResult(isInResult)

Parameters:
Name Type Description
isInResult boolean
Source:

setVisited(isVisited)

Parameters:
Name Type Description
isVisited boolean
Source:

updateIM(im)

Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries
Parameters:
Name Type Description
im IntersectionMatrix
Source: