|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.geomgraph.GraphComponent com.vividsolutions.jts.geomgraph.Edge
public class Edge
Field Summary |
---|
Fields inherited from class com.vividsolutions.jts.geomgraph.GraphComponent |
---|
label |
Constructor Summary | |
---|---|
Edge(Coordinate[] pts)
|
|
Edge(Coordinate[] pts,
Label label)
|
Method Summary | |
---|---|
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)
|
static void |
updateIM(Label label,
IntersectionMatrix im)
Updates an IM from the label for an edge. |
Methods inherited from class com.vividsolutions.jts.geomgraph.GraphComponent |
---|
getLabel, isCovered, isCoveredSet, isInResult, isVisited, setCovered, setInResult, setLabel, setVisited, updateIM |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Edge(Coordinate[] pts, Label label)
public Edge(Coordinate[] pts)
Method Detail |
---|
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)
computeIM
in class GraphComponent
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 void print(java.io.PrintStream out)
public void printReverse(java.io.PrintStream out)
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |