public class Edge extends GraphComponent
Constructor | Description |
---|---|
Edge(Coordinate[] pts) |
|
Edge(Coordinate[] pts,
Label label) |
Modifier and Type | Method | Description |
---|---|---|
void |
addIntersection(LineIntersector li,
int segmentIndex,
int geomIndex,
int intIndex) |
Add an EdgeIntersection for intersection intIndex.
|
void |
addIntersections(LineIntersector li,
int segmentIndex,
int geomIndex) |
Adds EdgeIntersections for one or both
intersections found for a segment of an edge to the edge intersection list.
|
void |
computeIM(IntersectionMatrix im) |
Update the IM with the contribution for this component.
|
boolean |
equals(java.lang.Object o) |
equals is defined to be:
|
Edge |
getCollapsedEdge() |
|
Coordinate |
getCoordinate() |
|
Coordinate |
getCoordinate(int i) |
|
Coordinate[] |
getCoordinates() |
|
Depth |
getDepth() |
|
int |
getDepthDelta() |
The depthDelta is the change in depth as an edge is crossed from R to L
|
EdgeIntersectionList |
getEdgeIntersectionList() |
|
Envelope |
getEnvelope() |
|
int |
getMaximumSegmentIndex() |
|
MonotoneChainEdge |
getMonotoneChainEdge() |
|
int |
getNumPoints() |
|
boolean |
isClosed() |
|
boolean |
isCollapsed() |
An Edge is collapsed if it is an Area edge and it consists of
two segments which are equal and opposite (eg a zero-width V).
|
boolean |
isIsolated() |
An isolated component is one that does not intersect or touch any other
component.
|
boolean |
isPointwiseEqual(Edge e) |
|
void |
print(java.io.PrintStream out) |
|
void |
printReverse(java.io.PrintStream out) |
|
void |
setDepthDelta(int depthDelta) |
|
void |
setIsolated(boolean isIsolated) |
|
void |
setName(java.lang.String name) |
|
java.lang.String |
toString() |
|
static void |
updateIM(Label label,
IntersectionMatrix im) |
Updates an IM from the label for an edge.
|
getLabel, isCovered, isCoveredSet, isInResult, isVisited, setCovered, setInResult, setLabel, setVisited, updateIM
public Edge(Coordinate[] pts, Label label)
public Edge(Coordinate[] pts)
public static void updateIM(Label label, IntersectionMatrix im)
public int getNumPoints()
public void setName(java.lang.String name)
public Coordinate[] getCoordinates()
public Coordinate getCoordinate(int i)
public Coordinate getCoordinate()
getCoordinate
in class GraphComponent
public Envelope getEnvelope()
public Depth getDepth()
public int getDepthDelta()
public void setDepthDelta(int depthDelta)
public int getMaximumSegmentIndex()
public EdgeIntersectionList getEdgeIntersectionList()
public MonotoneChainEdge getMonotoneChainEdge()
public boolean isClosed()
public boolean isCollapsed()
public Edge getCollapsedEdge()
public void setIsolated(boolean isIsolated)
public boolean isIsolated()
GraphComponent
isIsolated
in class GraphComponent
public void addIntersections(LineIntersector li, int segmentIndex, int geomIndex)
public void addIntersection(LineIntersector li, int segmentIndex, int geomIndex, int intIndex)
public void computeIM(IntersectionMatrix im)
public boolean equals(java.lang.Object o)
e1 equals e2 iff the coordinates of e1 are the same or the reverse of the coordinates in e2
equals
in class java.lang.Object
public boolean isPointwiseEqual(Edge e)
public java.lang.String toString()
toString
in class java.lang.Object
public void print(java.io.PrintStream out)
public void printReverse(java.io.PrintStream out)
Copyright © 2018. All rights reserved.