qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
|
Graphical progress indicator (thread-safe) More...
#include <ccProgressDialog.h>
Signals | |
void | scheduleRefresh () |
Schedules a call to refresh. | |
Public Member Functions | |
ccProgressDialog (bool cancelButton=false, QWidget *parent=nullptr) | |
Default constructor. More... | |
virtual | ~ccProgressDialog () |
Destructor (virtual) | |
virtual void | update (float percent) override |
virtual void | setMethodTitle (const char *methodTitle) override |
virtual void | setInfo (const char *infoStr) override |
virtual bool | isCancelRequested () override |
virtual void | start () override |
virtual void | stop () override |
virtual void | setMethodTitle (QString methodTitle) |
setMethodTitle with a QString as argument | |
virtual void | setInfo (QString infoStr) |
setInfo with a QString as argument | |
Protected Member Functions | |
void | refresh () |
Refreshes the progress. More... | |
Protected Attributes | |
QAtomicInt | m_currentValue |
Current progress value (percent) | |
QAtomicInt | m_lastRefreshValue |
Last displayed progress value (percent) | |
Graphical progress indicator (thread-safe)
Implements the GenericProgressCallback interface, in order to be passed to the CCCoreLib algorithms (check the CCCoreLib documentation for more information about the inherited methods).
ccProgressDialog::ccProgressDialog | ( | bool | cancelButton = false , |
QWidget * | parent = nullptr |
||
) |
Default constructor.
By default, a cancel button is always displayed on the progress interface. It is only possible to activate or deactivate this button. Sadly, the fact that this button is activated doesn't mean it will be possible to stop the ongoing process: it depends only on the client algorithm implementation.
cancelButton | activates or deactivates the cancel button |
parent | parent widget |
|
protected |
Refreshes the progress.
Should only be called in the main Qt thread! This slot is automatically called by 'update' (in Qt::QueuedConnection mode).