Class DirectedEdge

Hierarchy: Object , EdgeEnd, DirectedEdge
All Implemented Interfaces: Comparable
public class DirectedEdge
extends EdgeEnd

Other

  • version: 1.7
public DirectedEdge(Edge edge, boolean isForward)
public static int depthFactor(int currLocation, int nextLocation)
Computes the factor for the change in depth when moving from one location to another. E.g. if crossing from the INTERIOR to the EXTERIOR the depth decreases, so the factor is -1
public Edge getEdge()
public void setInResult(boolean isInResult)
public boolean isInResult()
public boolean isVisited()
public void setVisited(boolean isVisited)
public void setEdgeRing(EdgeRing edgeRing)
public EdgeRing getEdgeRing()
public void setMinEdgeRing(EdgeRing minEdgeRing)
public EdgeRing getMinEdgeRing()
public int getDepth(int position)
public void setDepth(int position, int depthVal)
public int getDepthDelta()
public void setVisitedEdge(boolean isVisited)
setVisitedEdge marks both DirectedEdges attached to a given Edge. This is used for edges corresponding to lines, which will only appear oriented in a single direction in the result.
public DirectedEdge getSym()
Each Edge gives rise to a pair of symmetric DirectedEdges, in opposite directions.
Returns:
the DirectedEdge for the same Edge but in the opposite direction
public boolean isForward()
public void setSym(DirectedEdge de)
public DirectedEdge getNext()
public void setNext(DirectedEdge next)
public DirectedEdge getNextMin()
public void setNextMin(DirectedEdge nextMin)
public 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
public 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.
Returns:
true if this is an interior Area edge
public void setEdgeDepths(int position, int depth)
Set both edge depths. One depth for a given side is provided. The other is computed depending on the Location transition and the depthDelta of the edge.
public void print(PrintStream out)
public void printEdge(PrintStream out)