Package org.apache.lucene.geo
Interface Tessellator.Monitor
- Enclosing class:
Tessellator
public static interface Tessellator.Monitor
Implementation of this interface will receive calls with internal data at each step of the
triangulation algorithm. This is of use for debugging complex cases, as well as gaining insight
into the way the algorithm works. Data provided includes a status string containing the current
mode, list of points representing the current linked-list of internal nodes used for
triangulation, and a list of triangles so far created by the algorithm.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
currentState
(String status, List<Point> points, List<Tessellator.Triangle> tessellation) Each loop of the main earclip algorithm will call this with the current statevoid
When a polygon split is completed, this is called.void
When a new polygon split is entered for mode=SPLIT, this is called.
-
Field Details
-
FAILED
- See Also:
-
COMPLETED
- See Also:
-
-
Method Details
-
currentState
Each loop of the main earclip algorithm will call this with the current state -
startSplit
When a new polygon split is entered for mode=SPLIT, this is called. -
endSplit
When a polygon split is completed, this is called.
-