public class LineBuilder
extends java.lang.Object
DirectedEdge
s
created by an OverlayOp
.Modifier and Type | Field and Description |
---|---|
private GeometryFactory |
geometryFactory |
private java.util.List |
lineEdgesList |
private OverlayOp |
op |
private PointLocator |
ptLocator |
private java.util.List |
resultLineList |
Constructor and Description |
---|
LineBuilder(OverlayOp op,
GeometryFactory geometryFactory,
PointLocator ptLocator) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
build(int opCode) |
private void |
buildLines(int opCode) |
private void |
collectBoundaryTouchEdge(DirectedEdge de,
int opCode,
java.util.List edges)
Collect edges from Area inputs which should be in the result but
which have not been included in a result area.
|
private void |
collectLineEdge(DirectedEdge de,
int opCode,
java.util.List edges)
Collect line edges which are in the result.
|
private void |
collectLines(int opCode) |
private void |
findCoveredLineEdges()
Find and mark L edges which are "covered" by the result area (if any).
|
private void |
labelIsolatedLine(Edge e,
int targetIndex)
Label an isolated node with its relationship to the target geometry.
|
private void |
labelIsolatedLines(java.util.List edgesList) |
private OverlayOp op
private GeometryFactory geometryFactory
private PointLocator ptLocator
private java.util.List lineEdgesList
private java.util.List resultLineList
public LineBuilder(OverlayOp op, GeometryFactory geometryFactory, PointLocator ptLocator)
public java.util.List build(int opCode)
private void findCoveredLineEdges()
private void collectLines(int opCode)
private void collectLineEdge(DirectedEdge de, int opCode, java.util.List edges)
de
- the directed edge to testopCode
- the overlap operationedges
- the list of included line edgesprivate void collectBoundaryTouchEdge(DirectedEdge de, int opCode, java.util.List edges)
private void buildLines(int opCode)
private void labelIsolatedLines(java.util.List edgesList)
private void labelIsolatedLine(Edge e, int targetIndex)