CTL  0.6.1
Computed Tomography Library
Signals | Public Member Functions | Private Attributes | List of all members
CTL::ProjectorNotifier Class Reference

Helper class that can emit signals during calculations of a certain projector. More...

#include <abstractprojector.h>

Inheritance diagram for CTL::ProjectorNotifier:
Inheritance graph
[legend]
Collaboration diagram for CTL::ProjectorNotifier:
Collaboration graph
[legend]

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
 

Detailed Description

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:

Member Function Documentation

◆ connectToMessageHandler()

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:

this->disconnect(&MessageHandler::instance());

◆ information

void CTL::ProjectorNotifier::information ( QString  info)
signal

Signal that can be emitted to communicate a status information.

◆ projectionFinished

void CTL::ProjectorNotifier::projectionFinished ( int  viewNb)
signal

Signal that is emitted after processing of projection viewNb is finished.


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