SegmentNodeList class
A list of the {@link SegmentNode}s present along a noded {@link SegmentString}.
@version 1.7
Constructors
Properties
- edge ↔ NodedSegmentString
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- nodeMap ↔ Map
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Coordinate intPt, int segmentIndex) → SegmentNode - Adds an intersection into the list, if it isn't already there. The input segmentIndex and dist are expected to be normalized.
-
addCollapsedNodes(
) → void - Adds nodes for any collapsed edge pairs. Collapsed edge pairs can be caused by inserted nodes, or they can be pre-existing in the edge vertex list. In order to provide the correct fully noded semantics, the vertex at the base of a collapsed pair must also be added as a node.
-
addEdgeCoordinates(
SegmentNode ei0, SegmentNode ei1, CoordinateList coordList) → void -
addEndpoints(
) → void - Adds nodes for the first and last points of the edge
-
addSplitEdges(
List edgeList) → void - Creates new edges for all the edges that the intersections in this list split the parent edge into. Adds the edges to the provided argument list (this is so a single list can be used to accumulate all split edges for a set of {@link SegmentString}s).
-
checkSplitEdgesCorrectness(
List splitEdges) → void - Checks the correctness of the set of split edges corresponding to this edge.
-
createSplitEdge(
SegmentNode ei0, SegmentNode ei1) → SegmentString - Create a new "split edge" with the section of points between (and including) the two intersections. The label for the new edge is the same as the label for the parent edge.
-
createSplitEdgePts(
SegmentNode ei0, SegmentNode ei1) → List< Coordinate> - Extracts the points for a split edge running between two nodes. The extracted points should contain no duplicate points. There should always be at least two points extracted (which will be the given nodes).
-
findCollapseIndex(
SegmentNode ei0, SegmentNode ei1, List< int> collapsedVertexIndex) → bool -
findCollapsesFromExistingVertices(
List< int> collapsedVertexIndexes) → void - Adds nodes for any collapsed edge pairs which are pre-existing in the vertex list.
-
findCollapsesFromInsertedNodes(
List< int> collapsedVertexIndexes) → void - Adds nodes for any collapsed edge pairs caused by inserted nodes Collapsed edge pairs occur when the same coordinate is inserted as a node both before and after an existing edge vertex. To provide the correct fully noded semantics, the vertex must be added as a node as well.
-
getEdge(
) → NodedSegmentString -
getSplitCoordinates(
) → List< Coordinate> - Gets the list of coordinates for the fully noded segment string, including all original segment string vertices and vertices introduced by nodes in this list. Repeated coordinates are collapsed.
-
iterator(
) → Iterator - returns an iterator of SegmentNodes
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited