public class Edge extends GraphComponent
label| Constructor and Description |
|---|
Edge(Coordinate
|
Edge(Coordinate
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIntersection(LineIntersector
Add an EdgeIntersection for intersection intIndex.
|
void |
addIntersections(LineIntersector
Adds EdgeIntersections for one or both intersections found for a segment of an edge to the edge intersection list.
|
void |
computeIM(IntersectionMatrix
Update the IM with the contribution for this component.
|
boolean |
equals(Object
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
|
void |
print(PrintStream
|
void |
printReverse(PrintStream
|
void |
setDepthDelta(int depthDelta)
|
void |
setIsolated(boolean isIsolated)
|
void |
setName(String
|
String |
toString()
|
static void |
updateIM(Label
Updates an IM from the label for an edge.
|
getLabel, isCovered, isCoveredSet, isInResult, isVisited, setCovered, setInResult, setLabel, setVisited, updateIMpublic Edge(Coordinate[] pts, Label label)
public Edge(Coordinate[] pts)
public static void updateIM(Labellabel, IntersectionMatrix im)
public int getNumPoints()
public void setName(Stringname)
public Coordinate[] getCoordinates()
public CoordinategetCoordinate(int i)
public CoordinategetCoordinate()
getCoordinate in class
GraphComponent
public EnvelopegetEnvelope()
public DepthgetDepth()
public int getDepthDelta()
public void setDepthDelta(int depthDelta)
public int getMaximumSegmentIndex()
public EdgeIntersectionListgetEdgeIntersectionList()
public MonotoneChainEdgegetMonotoneChainEdge()
public boolean isClosed()
public boolean isCollapsed()
public EdgegetCollapsedEdge()
public void setIsolated(boolean isIsolated)
public boolean isIsolated()
GraphComponent
isIsolated in class
GraphComponent
public void addIntersections(LineIntersectorli, int segmentIndex, int geomIndex)
public void addIntersection(LineIntersectorli, int segmentIndex, int geomIndex, int intIndex)
public void computeIM(IntersectionMatrixim)
public boolean equals(Objecto)
e1 equals e2 iff the coordinates of e1 are the same or the reverse of the coordinates in e2
public boolean isPointwiseEqual(Edgee)
public StringtoString()
public void print(PrintStreamout)
public void printReverse(PrintStreamout)