public class Edge extends GraphComponent
label| Constructor and Description |
|---|
Edge(LineString points) |
Edge(LineString points,
Label label) |
| Modifier and Type | Method and 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(Object o)
equals is defined to be:
|
Edge |
getCollapsedEdge() |
Point |
getCoordinate() |
Point |
getCoordinate(int i) |
Depth |
getDepth() |
int |
getDepthDelta()
The depthDelta is the change in depth as an edge is crossed from R to L
|
EdgeIntersectionList |
getEdgeIntersectionList() |
BoundingBox |
getEnvelope() |
int |
getMaximumSegmentIndex() |
MonotoneChainEdge |
getMonotoneChainEdge() |
int |
getNumPoints() |
LineString |
getPoints() |
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 |
setDepthDelta(int depthDelta) |
void |
setIsolated(boolean isIsolated) |
void |
setName(String name) |
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, updateIMpublic Edge(LineString points)
public Edge(LineString points, Label label)
public static void updateIM(Label label, IntersectionMatrix im)
public void addIntersection(LineIntersector li, int segmentIndex, int geomIndex, int intIndex)
public void addIntersections(LineIntersector li, int segmentIndex, int geomIndex)
public void computeIM(IntersectionMatrix im)
computeIM in class GraphComponentpublic boolean equals(Object o)
e1 equals e2 iff the coordinates of e1 are the same or the reverse of the coordinates in e2
public Edge getCollapsedEdge()
public Point getCoordinate()
getCoordinate in class GraphComponentpublic Point getCoordinate(int i)
public Depth getDepth()
public int getDepthDelta()
public EdgeIntersectionList getEdgeIntersectionList()
public BoundingBox getEnvelope()
public int getMaximumSegmentIndex()
public MonotoneChainEdge getMonotoneChainEdge()
public int getNumPoints()
public LineString getPoints()
public boolean isClosed()
public boolean isCollapsed()
public boolean isIsolated()
GraphComponentisIsolated in class GraphComponentpublic boolean isPointwiseEqual(Edge e)
public void setDepthDelta(int depthDelta)
public void setIsolated(boolean isIsolated)
public void setName(String name)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.