Class PolygonizeDirectedEdge
- java.lang.Object
-
- org.locationtech.jts.planargraph.GraphComponent
-
- org.locationtech.jts.planargraph.DirectedEdge
-
- org.locationtech.jts.operation.polygonize.PolygonizeDirectedEdge
-
- All Implemented Interfaces:
java.lang.Comparable
class PolygonizeDirectedEdge extends DirectedEdge
ADirectedEdge
of aPolygonizeGraph
, which represents an edge of a polygon formed by the graph. May be logically deleted from the graph by setting themarked
flag.- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private EdgeRing
edgeRing
private long
label
private PolygonizeDirectedEdge
next
-
Fields inherited from class org.locationtech.jts.planargraph.DirectedEdge
angle, edgeDirection, from, p0, p1, parentEdge, quadrant, sym, to
-
Fields inherited from class org.locationtech.jts.planargraph.GraphComponent
isMarked, isVisited
-
-
Constructor Summary
Constructors Constructor Description PolygonizeDirectedEdge(Node from, Node to, Coordinate directionPt, boolean edgeDirection)
Constructs a directed edge connecting thefrom
node to theto
node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.EdgeRing
getRing()
Gets theEdgeRing
this 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.-
Methods inherited from class org.locationtech.jts.planargraph.DirectedEdge
compareDirection, compareTo, getAngle, getCoordinate, getDirectionPt, getEdge, getEdgeDirection, getFromNode, getQuadrant, getSym, getToNode, isRemoved, print, setEdge, setSym, toEdges
-
Methods inherited from class org.locationtech.jts.planargraph.GraphComponent
getComponentWithVisitedState, getContext, getData, isMarked, isVisited, setContext, setData, setMarked, setMarked, setVisited, setVisited
-
-
-
-
Field Detail
-
edgeRing
private EdgeRing edgeRing
-
next
private PolygonizeDirectedEdge next
-
label
private long label
-
-
Constructor Detail
-
PolygonizeDirectedEdge
public PolygonizeDirectedEdge(Node from, Node to, Coordinate directionPt, boolean edgeDirection)
Constructs a directed edge connecting thefrom
node to theto
node.- Parameters:
directionPt
- specifies this DirectedEdge's direction (given by an imaginary line from thefrom
node todirectionPt
)edgeDirection
- whether this DirectedEdge's direction is the same as or opposite to that of the parent Edge (if any)
-
-
Method Detail
-
getLabel
public long getLabel()
Returns the identifier attached to this directed edge.
-
setLabel
public void setLabel(long label)
Attaches an identifier to this directed edge.
-
getNext
public PolygonizeDirectedEdge getNext()
Returns the next directed edge in the EdgeRing that this directed edge is a member of.
-
setNext
public void setNext(PolygonizeDirectedEdge next)
Sets 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.- See Also:
setRing(EdgeRing)
-
setRing
public void setRing(EdgeRing edgeRing)
Sets the ring of directed edges that this directed edge is a member of.
-
-