public class DirectedEdge extends EdgeEnd
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isForward
|
| Constructor and Description |
|---|
DirectedEdge(Edge
|
| Modifier and Type | Method and Description |
|---|---|
static int |
depthFactor(int currLocation, int nextLocation)
Computes the factor for the change in depth when moving from one location to another.
|
int |
getDepth(int position)
|
int |
getDepthDelta()
|
Edge |
getEdge()
|
EdgeRing |
getEdgeRing()
|
EdgeRing |
getMinEdgeRing()
|
DirectedEdge |
getNext()
|
DirectedEdge |
getNextMin()
|
DirectedEdge |
getSym()
Each Edge gives rise to a pair of symmetric DirectedEdges, in opposite directions.
|
boolean |
isForward()
|
boolean |
isInResult()
|
boolean |
isInteriorAreaEdge()
This is an interior Area edge if its label is an Area label for both Geometries and for each Geometry both sides are in the interior.
|
boolean |
isLineEdge()
This edge is a line edge if at least one of the labels is a line label any labels which are not line labels have all Locations = EXTERIOR
|
boolean |
isVisited()
|
void |
print(PrintStream
|
void |
printEdge(PrintStream
|
void |
setDepth(int position, int depthVal)
|
void |
setEdgeDepths(int position, int depth)
Set both edge depths.
|
void |
setEdgeRing(EdgeRing
|
void |
setInResult(boolean isInResult)
|
void |
setMinEdgeRing(EdgeRing
|
void |
setNext(DirectedEdge
|
void |
setNextMin(DirectedEdge
|
void |
setSym(DirectedEdge
|
void |
setVisited(boolean isVisited)
|
void |
setVisitedEdge(boolean isVisited)
setVisitedEdge marks both DirectedEdges attached to a given Edge.
|
compareDirection, compareTo, computeLabel, getCoordinate, getDirectedCoordinate, getDx, getDy, getLabel, getNode, getQuadrant, init, setNode, toStringpublic DirectedEdge(Edgeedge, boolean isForward)
public static int depthFactor(int currLocation,
int nextLocation)
public EdgegetEdge()
public void setInResult(boolean isInResult)
public boolean isInResult()
public boolean isVisited()
public void setVisited(boolean isVisited)
public void setEdgeRing(EdgeRingedgeRing)
public EdgeRinggetEdgeRing()
public void setMinEdgeRing(EdgeRingminEdgeRing)
public EdgeRinggetMinEdgeRing()
public int getDepth(int position)
public void setDepth(int position,
int depthVal)public int getDepthDelta()
public void setVisitedEdge(boolean isVisited)
public DirectedEdgegetSym()
public boolean isForward()
public void setSym(DirectedEdgede)
public DirectedEdgegetNext()
public void setNext(DirectedEdgenext)
public DirectedEdgegetNextMin()
public void setNextMin(DirectedEdgenextMin)
public boolean isLineEdge()
public boolean isInteriorAreaEdge()
public void setEdgeDepths(int position,
int depth)
public void print(PrintStreamout)
public void printEdge(PrintStreamout)