|
Open3D (C++ API)
0.20.0
|
#include <ProgressBar.h>
Public Member Functions | |
| ProgressBar (std::size_t expected_count, std::string progress_info, bool active=false) | |
| ProgressBar (const ProgressBar &other) | |
| ProgressBar & | operator= (const ProgressBar &other) |
| void | Reset (std::size_t expected_count, std::string progress_info, bool active) |
| ProgressBar & | operator++ () |
| virtual ProgressBar & | operator+= (std::size_t n) |
| void | SetCurrentCount (size_t n) |
| void | UpdateBar () |
| std::size_t | GetCurrentCount () const |
| virtual | ~ProgressBar ()=default |
Protected Attributes | |
| std::size_t | expected_count_ |
| std::atomic< std::size_t > | current_count_ {0} |
| std::string | progress_info_ |
| std::atomic< std::size_t > | progress_pixel_ {0} |
| bool | active_ |
| std::atomic< bool > | finalized_ {false} |
Static Protected Attributes | |
| static constexpr size_t | resolution_ = 40 |
Thread-safe progress bar. Progress updates use relaxed atomics, so callers do not need to hold a mutex while incrementing it from parallel work.
| open3d::utility::ProgressBar::ProgressBar | ( | std::size_t | expected_count, |
| std::string | progress_info, | ||
| bool | active = false |
||
| ) |
| open3d::utility::ProgressBar::ProgressBar | ( | const ProgressBar & | other | ) |
|
virtualdefault |
| std::size_t open3d::utility::ProgressBar::GetCurrentCount | ( | ) | const |
|
inline |
|
virtual |
| ProgressBar & open3d::utility::ProgressBar::operator= | ( | const ProgressBar & | other | ) |
| void open3d::utility::ProgressBar::Reset | ( | std::size_t | expected_count, |
| std::string | progress_info, | ||
| bool | active | ||
| ) |
| void open3d::utility::ProgressBar::SetCurrentCount | ( | size_t | n | ) |
| void open3d::utility::ProgressBar::UpdateBar | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticconstexprprotected |