1#ifndef CONTOUR_OBSERVER_H
2#define CONTOUR_OBSERVER_H
ContourProgressEventType
Type of progress notification emitted during contour computation.
@ Started
Contour computation has started.
@ PathPoint
A new point on a contour path is available.
@ Finished
Contour computation finished normally.
@ PathFinished
A contour path has been completed.
@ Failed
Contour computation failed and no valid result was produced.
std::function< void(const ContourProgressEvent &)> ContourProgressCallback
Callback signature used to receive contour progress events.
Payload passed to contour progress callbacks.
std::size_t n_points
Number of points produced so far or in total.
std::string message
Optional human-readable status message.
double level
Contour level associated with the event.
std::size_t path_id
Index of the contour path being reported.
ContourProgressEventType type
Event category.
double elapsed_seconds
Wall-clock time elapsed since computation start.
std::size_t n_paths
Number of paths produced so far or in total.
double x
X coordinate of a reported contour point.
double y
Y coordinate of a reported contour point.
std::size_t point_id
Index of the point within the current path.