CTL
0.6.1
Computed Tomography Library
|
Helper class that can emit signals during calculations of a certain projector. More...
#include <abstractprojector.h>
Signals | |
void | projectionFinished (int viewNb) |
void | information (QString info) |
Public Member Functions | |
void | connectToMessageHandler (bool includeProgress) |
Connects this instance's signals to the CTL's MessageHandler. More... | |
Private Attributes | |
QMetaObject::Connection | _progressConnection |
Helper class that can emit signals during calculations of a certain projector.
This class uses Qt's signal/slot principle to allow communication of a projector class with other program parts. To do so, connect the signals of this object with the desired receiver objects.
The ProjectorNotifier offers the following Q_SIGNALS:
void CTL::ProjectorNotifier::connectToMessageHandler | ( | bool | includeProgress | ) |
Connects this instance's signals to the CTL's MessageHandler.
This connects the information signal of this instance to the MessageHandler::messageFromSignal slot, such that it processes incoming information signals as regular messages. If includeProgress = true
, this also establishes a connection between this instance's projectionFinished() signal and the message handler. Each projectionFinished
signal results in a message of format "%1 projections finished.", where %1 is replaced with the number of finished projections.
The method ensures that no multiple connections are established, even if it is called multiple times.
To (fully) disconnect this instance from the message handler, use:
|
signal |
Signal that can be emitted to communicate a status information.
|
signal |
Signal that is emitted after processing of projection viewNb is finished.