An implementation of progress logging mechanism.
More...
#include <easy3d/util/progress.h>
|
| ProgressLogger (std::size_t max_val, bool update_viewer, bool quiet=false) |
| Constructor.
|
|
virtual | ~ProgressLogger () |
| Destructor.
|
|
virtual void | notify (std::size_t new_value) |
| Notify the progress.
|
|
virtual void | next () |
| Move to the next step.
|
|
virtual void | done () |
| Mark the progress as done.
|
|
bool | is_canceled () const |
| Check if the progress is canceled.
|
|
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()
ProgressLogger |
( |
std::size_t | max_val, |
|
|
bool | update_viewer, |
|
|
bool | quiet = false ) |
Constructor.
- Parameters
-
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). |
◆ is_canceled()
bool is_canceled |
( |
| ) |
const |
Check if the progress is canceled.
- Returns
- True if the progress is canceled, false otherwise.
◆ notify()
void notify |
( |
std::size_t | new_value | ) |
|
|
virtual |
Notify the progress.
- Parameters
-
new_value | The new progress value. |
◆ reset()
void reset |
( |
std::size_t | max_val | ) |
|
Resets the progress logger, and meanwhile changes the progress range.
- Parameters
-
max_val | The new max value of the progress range. |
The documentation for this class was generated from the following files:
- G:/3_code/Easy3D/easy3d/util/progress.h
- G:/3_code/Easy3D/easy3d/util/progress.cpp