MeshLib
 
Loading...
Searching...
No Matches
MR::ProgressBar Class Reference

#include <MRProgressBar.h>

Public Types

using TaskWithMainThreadPostProcessing = std::function< std::function<void()>() >
 

Static Public Member Functions

static MRVIEWER_API void setup (float scaling)
 
static MRVIEWER_API void onFrameEnd ()
 
static MRVIEWER_API void order (const char *name, const std::function< void()> &task, int taskCount=1)
 
static MRVIEWER_API void orderWithMainThreadPostProcessing (const char *name, TaskWithMainThreadPostProcessing task, int taskCount=1)
 
static MRVIEWER_API void orderWithManualFinish (const char *name, std::function< void()> task, int taskCount=1)
 the task is spawned by the progress bar but the finish method is called from a callback
 
static MRVIEWER_API bool isCanceled ()
 
static MRVIEWER_API bool isFinished ()
 
static MRVIEWER_API float getProgress ()
 
static MRVIEWER_API float getLastOperationTime ()
 
static MRVIEWER_API const std::string & getLastOperationTitle ()
 
static MRVIEWER_API bool setProgress (float p)
 
static MRVIEWER_API void nextTask ()
 
static MRVIEWER_API void nextTask (const char *s)
 
static MRVIEWER_API void setTaskCount (int n)
 
static MRVIEWER_API void forceSetTaskName (std::string taskName)
 
static MRVIEWER_API void resetTaskName ()
 
static MRVIEWER_API void finish ()
 
static MRVIEWER_API bool isOrdered ()
 
static MRVIEWER_API bool callBackSetProgress (float p)
 
static MRVIEWER_API bool simpleCallBackSetProgress (float p)
 

Member Typedef Documentation

◆ TaskWithMainThreadPostProcessing

using MR::ProgressBar::TaskWithMainThreadPostProcessing = std::function< std::function<void()>() >

Member Function Documentation

◆ callBackSetProgress()

static MRVIEWER_API bool MR::ProgressBar::callBackSetProgress ( float p)
static

◆ finish()

static MRVIEWER_API void MR::ProgressBar::finish ( )
static

◆ forceSetTaskName()

static MRVIEWER_API void MR::ProgressBar::forceSetTaskName ( std::string taskName)
static

◆ getLastOperationTime()

static MRVIEWER_API float MR::ProgressBar::getLastOperationTime ( )
static

◆ getLastOperationTitle()

static MRVIEWER_API const std::string & MR::ProgressBar::getLastOperationTitle ( )
static

◆ getProgress()

static MRVIEWER_API float MR::ProgressBar::getProgress ( )
static

◆ isCanceled()

static MRVIEWER_API bool MR::ProgressBar::isCanceled ( )
static

◆ isFinished()

static MRVIEWER_API bool MR::ProgressBar::isFinished ( )
static

◆ isOrdered()

static MRVIEWER_API bool MR::ProgressBar::isOrdered ( )
static

◆ nextTask() [1/2]

static MRVIEWER_API void MR::ProgressBar::nextTask ( )
static

◆ nextTask() [2/2]

static MRVIEWER_API void MR::ProgressBar::nextTask ( const char * s)
static

◆ onFrameEnd()

static MRVIEWER_API void MR::ProgressBar::onFrameEnd ( )
static

◆ order()

static MRVIEWER_API void MR::ProgressBar::order ( const char * name,
const std::function< void()> & task,
int taskCount = 1 )
static

◆ orderWithMainThreadPostProcessing()

static MRVIEWER_API void MR::ProgressBar::orderWithMainThreadPostProcessing ( const char * name,
TaskWithMainThreadPostProcessing task,
int taskCount = 1 )
static

◆ orderWithManualFinish()

static MRVIEWER_API void MR::ProgressBar::orderWithManualFinish ( const char * name,
std::function< void()> task,
int taskCount = 1 )
static

the task is spawned by the progress bar but the finish method is called from a callback

◆ resetTaskName()

static MRVIEWER_API void MR::ProgressBar::resetTaskName ( )
static

◆ setProgress()

static MRVIEWER_API bool MR::ProgressBar::setProgress ( float p)
static

◆ setTaskCount()

static MRVIEWER_API void MR::ProgressBar::setTaskCount ( int n)
static

◆ setup()

static MRVIEWER_API void MR::ProgressBar::setup ( float scaling)
static

◆ simpleCallBackSetProgress()

static MRVIEWER_API bool MR::ProgressBar::simpleCallBackSetProgress ( float p)
static

The documentation for this class was generated from the following file: