public class EdgeIntersectionList
extends java.lang.Object
Edge
.
Implements splitting an edge with intersections
into multiple resultant edges.Modifier and Type | Field and Description |
---|---|
(package private) Edge |
edge |
private java.util.Map |
nodeMap |
Constructor and Description |
---|
EdgeIntersectionList(Edge edge) |
Modifier and Type | Method and Description |
---|---|
EdgeIntersection |
add(Coordinate intPt,
int segmentIndex,
double dist)
Adds an intersection into the list, if it isn't already there.
|
void |
addEndpoints()
Adds entries for the first and last points of the edge to the list
|
void |
addSplitEdges(java.util.List edgeList)
Creates new edges for all the edges that the intersections in this
list split the parent edge into.
|
(package private) Edge |
createSplitEdge(EdgeIntersection ei0,
EdgeIntersection ei1)
Create a new "split edge" with the section of points between
(and including) the two intersections.
|
boolean |
isIntersection(Coordinate pt)
Tests if the given point is an edge intersection
|
java.util.Iterator |
iterator()
Returns an iterator of
EdgeIntersection s |
void |
print(java.io.PrintStream out) |
private java.util.Map nodeMap
Edge edge
public EdgeIntersectionList(Edge edge)
public EdgeIntersection add(Coordinate intPt, int segmentIndex, double dist)
public java.util.Iterator iterator()
EdgeIntersection
spublic boolean isIntersection(Coordinate pt)
pt
- the point to testpublic void addEndpoints()
public void addSplitEdges(java.util.List edgeList)
edgeList
- a list of EdgeIntersectionsEdge createSplitEdge(EdgeIntersection ei0, EdgeIntersection ei1)
public void print(java.io.PrintStream out)