CustusX  18.04
An IGT application
cx::TimedAlgorithmProgressBar Class Reference

Show progress for a TimedBaseAlgorithm. More...

#include <cxTimedAlgorithmProgressBar.h>

Inheritance diagram for cx::TimedAlgorithmProgressBar:

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)
 

Detailed Description

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.

Date
Jan 27, 2012
Author
christiana

Definition at line 51 of file cxTimedAlgorithmProgressBar.h.

Constructor & Destructor Documentation

cx::TimedAlgorithmProgressBar::TimedAlgorithmProgressBar ( QWidget *  parent = NULL)

Definition at line 22 of file cxTimedAlgorithmProgressBar.cpp.

virtual cx::TimedAlgorithmProgressBar::~TimedAlgorithmProgressBar ( )
inlinevirtual

Definition at line 56 of file cxTimedAlgorithmProgressBar.h.

Member Function Documentation

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.


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