Node class

@version 1.7

Inheritance
Implementers

Constructors

Node(Coordinate coord, EdgeEndStar? edges)

Properties

coord Coordinate
getter/setter pair
edges EdgeEndStar?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
label Label?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(EdgeEnd e) → void
Add the edge to the list of edges at this node
computeIM(IntersectionMatrix im) → void
Basic nodes do not compute IMs
override
computeMergedLocation(Label label2, int eltIndex) int
The location for a given eltIndex for a node will be one of { null, INTERIOR, BOUNDARY }. A node may be on both the boundary and the interior of a geometry; in this case, the rule is that the node is considered to be in the boundary. The merged location is the maximum of the two input values.
getCoordinate() Coordinate
@return a coordinate in this component (or null, if there are none)
override
getEdges() EdgeEndStar?
getLabel() Label?
inherited
isCovered() bool
inherited
isCoveredSet() bool
inherited
isIncidentEdgeInResult() bool
Tests whether any incident edge is flagged as being in the result. This test can be used to determine if the node is in the result, since if any incident edge is in the result, the node must be in the result as well.
isInResult() bool
inherited
isIsolated() bool
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.
override
isVisited() bool
inherited
mergeLabel(Label label2) → void
To merge labels for two nodes, the merged location for each LabelElement is computed. The location for the corresponding node LabelElement is set to the result, as long as the location is non-null.
mergeLabelFromNode(Node n) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCovered(bool isCovered) → void
inherited
setInResult(bool isInResult) → void
inherited
setLabel(Label label) → void
inherited
setLabelBoundary(int argIndex) → void
Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.
setLabelWithIndex(int argIndex, int onLocation) → void
setVisited(bool isVisited) → void
inherited
toString() String
A string representation of this object.
inherited
updateIM(IntersectionMatrix im) → void
Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited