11#ifndef EASY3D_UTIL_PROGRESS_H
12#define EASY3D_UTIL_PROGRESS_H
28 virtual void notify(std::size_t percent,
bool update_viewer) = 0;
29 virtual void cancel();
43 ProgressLogger(std::size_t max_val,
bool update_viewer,
bool quiet =
false);
46 virtual void notify(std::size_t new_value);
48 virtual void done() { notify(max_val_); }
50 bool is_canceled()
const;
55 void reset(std::size_t max_val);
58 virtual void update();
63 std::size_t cur_percent_;
The based class of GUI element reporting the progress.
Definition: progress.h:24
An implementation of progress logging mechanism.
Definition: progress.h:38
ProgressLogger(std::size_t max_val, bool update_viewer, bool quiet=false)
Definition: progress.cpp:85
void reset()
Resets the progress logger without changing the progress range.
Definition: progress.h:53
Definition: collider.cpp:182
void print_progress(float percentage)
Definition: progress.cpp:140