qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ccProgressDialog Class Reference

Graphical progress indicator (thread-safe) More...

#include <ccProgressDialog.h>

Inheritance diagram for ccProgressDialog:
Inheritance graph
[legend]
Collaboration diagram for ccProgressDialog:
Collaboration graph
[legend]

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)
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ ccProgressDialog()

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.

Parameters
cancelButtonactivates or deactivates the cancel button
parentparent widget

Member Function Documentation

◆ refresh()

void ccProgressDialog::refresh ( )
protected

Refreshes the progress.

Should only be called in the main Qt thread! This slot is automatically called by 'update' (in Qt::QueuedConnection mode).


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