public protocol FortuneSweepProgressWatching: class
class
Depicts current step of an algorithm
var step: Int
Called when algorithm is ready to work
func prepare(sites: Set<Site>, clipper: Rectangle)
- sites: - sites: Same as Fortunes Algorithm input
- clipper: - clipper: Clipping rectangle
Called when sweepline changes position
func updateSweepline(y: Double)
- y: - y: New sweepline Y position
Called when Site Event occured
func siteEvent(site: Site)
- site: - site: Visited site
Called when Circle Event occured
func circleEvent(point: Point)
- site: - site: Visited site
Called when bounding rectangle is changed
func updateContainer(rectangle: Rectangle)
- rectangle: - rectangle: New Bounding rectangle
Called when new breakpoint occured
func updateCurentBreakpoint(point: Point?)
- point: - point: Breakpoint
Called when beachline is updated
func updateBeachline(arcs: [BeachlineSegment])
- arcs: - arcs: Arcs, currently present in the Beachline
Called when upcoming circle event is added to the Event Queue
func addUpcomingCircleEvent(circle: Circle)
- circle: - circle: Circle event circle
Called when Circle event is removed from Event Queue
func removeFalseAlarmCircleEvent(circle: Circle)
- circle: - circle: Circle event circle
Called when new Vertex is created
func createVertex(vertex: Vertex)
- vertex: - vertex: Vertex
Called when new Cell is added to the diagram
func createCell(cell: Cell)
- cell: - cell: Cell
Called when HalfEdges are added to the diagram
func addHalfEdges(hes: [HalfEdge])
- hes: - hes: List of recently added HalfEdges
Called when Cells bounding is done
func boundingDone()
Called when algorithm finished working
func workDone()