CustusX
22.04-rc5
An IGT application
|
Show progress for a TimedBaseAlgorithm. More...
#include <cxTimedAlgorithmProgressBar.h>
Public Member Functions | |
TimedAlgorithmProgressBar (QWidget *parent=NULL) | |
virtual | ~TimedAlgorithmProgressBar () |
void | setShowTextLabel (bool on) |
void | attach (TimedAlgorithmPtr algorithm) |
void | attach (std::set< cx::TimedAlgorithmPtr > threads) |
void | detach (TimedAlgorithmPtr algorithm) |
void | detach (std::set< cx::TimedAlgorithmPtr > threads) |
Show progress for a TimedBaseAlgorithm.
The widget contains a QProgressBar and a QLabel, which displays info from a TimedBaseAlgorithm. It listens to the start()/stop() methods of TimedBaseAlgorithm, it shows/hides and display progress info.
Use the attach method to connect the TimedBaseAlgorithm to the widget. Use detach to clean up.
Multiple algorithms can be added. In this case, the assumption is that they are called in sequence. If not, the last started algo will overwrite the others.
Definition at line 51 of file cxTimedAlgorithmProgressBar.h.
cx::TimedAlgorithmProgressBar::TimedAlgorithmProgressBar | ( | QWidget * | parent = NULL | ) |
Definition at line 22 of file cxTimedAlgorithmProgressBar.cpp.
|
inlinevirtual |
Definition at line 56 of file cxTimedAlgorithmProgressBar.h.
void cx::TimedAlgorithmProgressBar::attach | ( | TimedAlgorithmPtr | algorithm | ) |
Definition at line 56 of file cxTimedAlgorithmProgressBar.cpp.
void cx::TimedAlgorithmProgressBar::attach | ( | std::set< cx::TimedAlgorithmPtr > | threads | ) |
Definition at line 42 of file cxTimedAlgorithmProgressBar.cpp.
void cx::TimedAlgorithmProgressBar::detach | ( | TimedAlgorithmPtr | algorithm | ) |
Definition at line 71 of file cxTimedAlgorithmProgressBar.cpp.
void cx::TimedAlgorithmProgressBar::detach | ( | std::set< cx::TimedAlgorithmPtr > | threads | ) |
Definition at line 49 of file cxTimedAlgorithmProgressBar.cpp.
void cx::TimedAlgorithmProgressBar::setShowTextLabel | ( | bool | on | ) |
Definition at line 97 of file cxTimedAlgorithmProgressBar.cpp.