#include "exports.h"#include <functional>#include <string>Go to the source code of this file.
Namespaces | |
| namespace | MR |
| namespace | MR::ProgressBar |
Typedefs | |
| using | MR::ProgressBar::TaskWithMainThreadPostProcessing = std::function< std::function<void()>() > |
| function that returns post-processing function to be called in main UI thread | |
Functions | |
| MRVIEWER_API void | MR::ProgressBar::setup () |
| this function should be called only once for each frame (it is called in MR::Menu (MR::RibbonMenu)) | |
| MRVIEWER_API void | MR::ProgressBar::onFrameEnd () |
| call this function on frame end | |
| MRVIEWER_API void | MR::ProgressBar::order (const char *name, const std::function< void()> &task, int taskCount=1) |
| MRVIEWER_API void | MR::ProgressBar::orderWithMainThreadPostProcessing (const char *name, TaskWithMainThreadPostProcessing task, int taskCount=1) |
| MRVIEWER_API void | MR::ProgressBar::orderWithManualFinish (const char *name, std::function< void()> task, int taskCount=1) |
| MRVIEWER_API bool | MR::ProgressBar::isCanceled () |
| MRVIEWER_API bool | MR::ProgressBar::isFinished () |
| MRVIEWER_API float | MR::ProgressBar::getProgress () |
| MRVIEWER_API float | MR::ProgressBar::getLastOperationTime () |
| returns time of last operation in seconds, returns -1.0f if no operation was performed | |
| MRVIEWER_API const std::string & | MR::ProgressBar::getLastOperationTitle () |
| returns title of the last operation | |
| MRVIEWER_API void | MR::ProgressBar::nextTask () |
| MRVIEWER_API void | MR::ProgressBar::nextTask (const char *s) |
| MRVIEWER_API void | MR::ProgressBar::setTaskCount (int n) |
| MRVIEWER_API void | MR::ProgressBar::forceSetTaskName (std::string taskName) |
| set the current task's name without auto-updating progress value | |
| MRVIEWER_API void | MR::ProgressBar::resetTaskName () |
| MRVIEWER_API void | MR::ProgressBar::finish () |
| MRVIEWER_API bool | MR::ProgressBar::isOrdered () |
| returns true if progress bar was ordered and not finished | |
| MRVIEWER_API bool | MR::ProgressBar::setProgress (float p) |
| MRVIEWER_API bool | MR::ProgressBar::callBackSetProgress (float p) |
| MRVIEWER_API bool | MR::ProgressBar::simpleCallBackSetProgress (float p) |
| MRVIEWER_API void | MR::ProgressBar::printTimingTree (double minTimeSec=0.1) |