public abstract class EdgeRing extends Object
| Modifier and Type | Field and Description |
|---|---|
protected GeometryFactory |
geometryFactory |
protected DirectedEdge |
startDe |
| Constructor and Description |
|---|
EdgeRing(DirectedEdge start,
GeometryFactory geometryFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHole(EdgeRing ring) |
protected void |
addPoints(Edge edge,
boolean isForward,
boolean isFirstEdge) |
protected void |
computePoints(DirectedEdge start)
Collect all the points from the DirectedEdges of this ring into a contiguous list
|
void |
computeRing()
Compute a LinearRing from the point list previously collected.
|
boolean |
containsPoint(Point p)
This method will cause the ring to be computed.
|
Point |
getCoordinate(int i) |
List<DirectedEdge> |
getEdges()
Returns the list of DirectedEdges that make up this EdgeRing
|
Label |
getLabel() |
LinearRing |
getLinearRing() |
int |
getMaxNodeDegree() |
abstract DirectedEdge |
getNext(DirectedEdge de) |
EdgeRing |
getShell() |
boolean |
isHole() |
boolean |
isIsolated() |
boolean |
isShell() |
protected void |
mergeLabel(Label deLabel) |
protected void |
mergeLabel(Label deLabel,
int geomIndex)
Merge the RHS label from a DirectedEdge into the label for this EdgeRing.
|
abstract void |
setEdgeRing(DirectedEdge de,
EdgeRing er) |
void |
setInResult() |
void |
setShell(EdgeRing shell) |
Polygon |
toPolygon(GeometryFactory geometryFactory) |
String |
toString() |
protected DirectedEdge startDe
protected GeometryFactory geometryFactory
public EdgeRing(DirectedEdge start, GeometryFactory geometryFactory)
public void addHole(EdgeRing ring)
protected void addPoints(Edge edge, boolean isForward, boolean isFirstEdge)
protected void computePoints(DirectedEdge start)
public void computeRing()
public boolean containsPoint(Point p)
public Point getCoordinate(int i)
public List<DirectedEdge> getEdges()
public Label getLabel()
public LinearRing getLinearRing()
public int getMaxNodeDegree()
public abstract DirectedEdge getNext(DirectedEdge de)
public EdgeRing getShell()
public boolean isHole()
public boolean isIsolated()
public boolean isShell()
protected void mergeLabel(Label deLabel)
protected void mergeLabel(Label deLabel, int geomIndex)
public abstract void setEdgeRing(DirectedEdge de, EdgeRing er)
public void setInResult()
public void setShell(EdgeRing shell)
public Polygon toPolygon(GeometryFactory geometryFactory)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.