Easy3D 2.5.3
|
An implementation of progress logging mechanism. More...
#include <easy3d/util/progress.h>
Public Member Functions | |
ProgressLogger (std::size_t max_val, bool update_viewer, bool quiet=false) | |
virtual void | notify (std::size_t new_value) |
virtual void | next () |
virtual void | done () |
bool | is_canceled () const |
void | reset () |
Resets the progress logger without changing the progress range. | |
void | reset (std::size_t max_val) |
Resets the progress logger, and meanwhile changes the progress range. | |
An implementation of progress logging mechanism.
ProgressLogger | ( | std::size_t | max_val, |
bool | update_viewer, | ||
bool | quiet = false |
||
) |
max_val | The max value (i.e., upper bound) of the progress range. |
update_viewer | true to trigger the viewer to update for each step. |
quiet | true to make the logger quiet (i.e., don't notify the client). |