Class Edge

Hierarchy: Object , GraphComponent, Edge
public class Edge
extends GraphComponent

Other

  • version: 1.7
public Edge(Coordinate[] pts, Label label)
public Edge(Coordinate[] pts)
public static void updateIM(Label label, IntersectionMatrix im)
Updates an IM from the label for an edge. Handles edges from both L and A geometries.
public int getNumPoints()
public void setName(String name)
public Coordinate[] getCoordinates()
public Coordinate getCoordinate(int i)
public Coordinate getCoordinate()
public Envelope getEnvelope()
public Depth getDepth()
public int getDepthDelta()
The depthDelta is the change in depth as an edge is crossed from R to L
Returns:
the change in depth as the edge is crossed from R to L
public void setDepthDelta(int depthDelta)
public int getMaximumSegmentIndex()
public EdgeIntersectionList getEdgeIntersectionList()
public MonotoneChainEdge getMonotoneChainEdge()
public boolean isClosed()
public 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).
public Edge getCollapsedEdge()
public void setIsolated(boolean isIsolated)
public boolean isIsolated()
public 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.
public void addIntersection(LineIntersector li, int segmentIndex, int geomIndex, int intIndex)
Add an EdgeIntersection for intersection intIndex. An intersection that falls exactly on a vertex of the edge is normalized to use the higher of the two possible segmentIndexes
public void computeIM(IntersectionMatrix im)
Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries
public boolean equals(Object o)
equals is defined to be:

e1 equals e2 iff the coordinates of e1 are the same or the reverse of the coordinates in e2

public boolean isPointwiseEqual(Edge e)
Returns:
true if the coordinate sequences of the Edges are identical
public String toString()
public void print(PrintStream out)
public void printReverse(PrintStream out)