Class MarkHalfEdge

Hierarchy: Object , HalfEdge, MarkHalfEdge
Direct Known Subclasses: DissolveHalfEdge
public class MarkHalfEdge
extends HalfEdge
A HalfEdge which supports marking edges with a boolean flag. Useful for algorithms which perform graph traversals.
Authors:
Martin Davis
public MarkHalfEdge(Coordinate orig)
Creates a new marked edge.
Parameters:
orig - orig the coordinate of the edge origin
public static boolean isMarked(HalfEdge e)
Tests whether the given edge is marked.
Parameters:
e - e the edge to test
Returns:
true if the edge is marked
public static void mark(HalfEdge e)
Marks the given edge.
Parameters:
e - e the edge to mark
public static void setMark(HalfEdge e, boolean isMarked)
Sets the mark for the given edge to a boolean value.
Parameters:
e - e the edge to set
isMarked - isMarked the mark value
public static void setMarkBoth(HalfEdge e, boolean isMarked)
Sets the mark for the given edge pair to a boolean value.
Parameters:
e - e an edge of the pair to update
isMarked - isMarked the mark value to set
public static void markBoth(HalfEdge e)
Marks the edges in a pair.
Parameters:
e - e an edge of the pair to mark
public boolean isMarked()
Tests whether this edge is marked.
Returns:
true if this edge is marked
public void mark()
Marks this edge.
public void setMark(boolean isMarked)
Sets the value of the mark on this edge.
Parameters:
isMarked - isMarked the mark value to set