 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
24 void SetTotal(int64_t total) { total_ = total; }
26 if (!update_progress_)
return true;
31 percent =
count * 100.0 / total_;
36 return CallUpdate(percent);
43 bool CallUpdate(
double percent) {
44 if (update_progress_) {
45 return update_progress_(percent);
49 std::function<bool(
double)> update_progress_;
51 int64_t last_count_ = -1;
54 using utility::ConsoleProgressBar;
61 while (last_pct_ < pct) {
void Finish()
Definition: ProgressReporters.h:38
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
bool operator()(double pct)
Definition: ProgressReporters.h:60
void operator++()
Definition: ProgressReporters.h:40
utility::CountingProgressReporter * progress_bar_
Definition: FilePLY.cpp:42
bool Update(int64_t count)
Definition: ProgressReporters.h:25
Definition: Logging.h:309
void SetTotal(int64_t total)
Definition: ProgressReporters.h:24
int count
Definition: FileIOFactory.cpp:132
update_progress(double percent) functor for ConsoleProgressBar
Definition: ProgressReporters.h:56
Definition: ProgressReporters.h:19
ConsoleProgressUpdater(const std::string &progress_info, bool active=false)
Definition: ProgressReporters.h:57
#define CV_CORE_LIB_API
Definition: CVCoreLibWin.h:15
CountingProgressReporter(std::function< bool(double)> f)
Definition: ProgressReporters.h:21