com.vividsolutions.jts.operation.polygonize
Class PolygonizeDirectedEdge
- Comparable
public class PolygonizeDirectedEdge
A
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.
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 next) - Sets the next directed edge in the EdgeRing that this directed edge is a member
of.
|
void | setRing(EdgeRing 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 , toEdges |
getComponentWithVisitedState , getContext , getData , isMarked , isRemoved , isVisited , setContext , setData , setMarked , setMarked , setVisited , setVisited |
PolygonizeDirectedEdge
public PolygonizeDirectedEdge(Node from,
Node to,
Coordinate directionPt,
boolean edgeDirection)
Constructs a directed edge connecting the 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)
getLabel
public long getLabel()
Returns the identifier attached to this directed edge.
getNext
public PolygonizeDirectedEdge getNext()
Returns the next directed edge in the EdgeRing that this directed edge is a member
of.
isInRing
public 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.
setLabel
public void setLabel(long label)
Attaches an identifier to this directed edge.
setNext
public void setNext(PolygonizeDirectedEdge next)
Sets the next directed edge in the EdgeRing that this directed edge is a member
of.
setRing
public void setRing(EdgeRing edgeRing)
Sets the ring of directed edges that this directed edge is
a member of.