public class PolygonizeDirectedEdge extends DirectedEdge
DirectedEdge of a
PolygonizeGraph, which represents an edge of a polygon formed by the graph. May be logically deleted from the graph by setting the
marked flag.
angle, edgeDirection, from, p0, p1, parentEdge, quadrant, sym, toisMarked, isVisited| Constructor and Description |
|---|
PolygonizeDirectedEdge(Node
Constructs a directed edge connecting the
from node to the
to node.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLabel()
Returns the identifier attached to this directed edge.
|
PolygonizeDirectedEdge |
getNext()
Returns the next directed edge in the EdgeRing that this directed edge is a member of.
|
boolean |
isInRing()
Returns the ring of directed edges that this directed edge is a member of, or null if the ring has not been set.
|
void |
setLabel(long label)
Attaches an identifier to this directed edge.
|
void |
setNext(PolygonizeDirectedEdge
Sets the next directed edge in the EdgeRing that this directed edge is a member of.
|
void |
setRing(EdgeRing
Sets the ring of directed edges that this directed edge is a member of.
|
compareDirection, compareTo, getAngle, getCoordinate, getDirectionPt, getEdge, getEdgeDirection, getFromNode, getQuadrant, getSym, getToNode, isRemoved, print, setEdge, setSym, toEdgesgetComponentWithVisitedState, getContext, getData, isMarked, isVisited, setContext, setData, setMarked, setMarked, setVisited, setVisitedpublic PolygonizeDirectedEdge(Nodefrom, Node to, Coordinate directionPt, boolean edgeDirection)
from node to the
to node.
directionPt - specifies this DirectedEdge's direction (given by an imaginary line from the
from node to
directionPt)
edgeDirection - whether this DirectedEdge's direction is the same as or opposite to that of the parent Edge (if any)
public long getLabel()
public void setLabel(long label)
public PolygonizeDirectedEdgegetNext()
public void setNext(PolygonizeDirectedEdgenext)
public boolean isInRing()
setRing(EdgeRing)
public void setRing(EdgeRingedgeRing)