15 #include <QProgressDialog>
28 :
public QProgressDialog,
48 virtual void update(
float percent)
override;
52 inline virtual void setInfo(
const char* infoStr)
override {
57 virtual void stop()
override;
virtual void setInfo(const char *infoStr)=0
Notifies some information about the ongoing process.
virtual void setMethodTitle(const char *methodTitle)=0
Notifies the algorithm title.
Graphical progress indicator (thread-safe)
virtual void stop() override
Notifies the fact that the process has ended.
virtual void update(float percent) override
Notifies the algorithm progress.
virtual void start() override
ecvProgressDialog(bool cancelButton=false, QWidget *parent=0)
Default constructor.
virtual void setInfo(const char *infoStr) override
Notifies some information about the ongoing process.
void refresh()
Refreshes the progress.
QAtomicInt m_currentValue
Current progress value (percent)
virtual void setInfo(QString infoStr)
setInfo with a QString as argument
void scheduleRefresh()
Schedules a call to refresh.
virtual bool isCancelRequested() override
Checks if the process should be canceled.
virtual void setMethodTitle(QString methodTitle)
setMethodTitle with a QString as argument
QAtomicInt m_lastRefreshValue
Last displayed progress value (percent)
virtual ~ecvProgressDialog()
Destructor (virtual)
virtual void setMethodTitle(const char *methodTitle) override
Notifies the algorithm title.