CustusX
15.4.0-beta
An IGT application
|
Base class for receiving images from a video stream. More...
#include <cxImageReceiverThread.h>
Public Slots | |
void | initialize () |
void | shutdown () |
Signals | |
void | imageReceived () |
void | sonixStatusReceived () |
void | fps (QString, double) |
void | finished () |
Public Member Functions | |
ImageReceiverThread (StreamerServicePtr streamerInterface, QObject *parent=NULL) | |
virtual | ~ImageReceiverThread () |
virtual ImagePtr | getLastImageMessage () |
virtual ProbeDefinitionPtr | getLastSonixStatusMessage () |
virtual QString | hostDescription () const |
Protected Member Functions | |
void | addImageToQueue (ImagePtr imgMsg) |
void | addSonixStatusToQueue (ProbeDefinitionPtr msg) |
add the message to a thread-safe queue More... | |
void | calibrateTimeStamp (ImagePtr imgMsg) |
Calibrate the time stamps of the incoming message based on the computer clock. Calibration is based on an average of several of the last messages. The calibration is updated every 20-30 sec. More... | |
Base class for receiving images from a video stream.
Subclass to implement for a specific protocol. Supported messages:
Definition at line 76 of file cxImageReceiverThread.h.
cx::ImageReceiverThread::ImageReceiverThread | ( | StreamerServicePtr | streamerInterface, |
QObject * | parent = NULL |
||
) |
Definition at line 63 of file cxImageReceiverThread.cpp.
|
inlinevirtual |
Definition at line 81 of file cxImageReceiverThread.h.
|
protected |
Add the message to a thread-safe queue. Tests if the time stamps of image messages should be calibrated based on the computer clock. Time stamps only need to be synched if set on another computer that is not synched, e.g. the Ultrasonix scanner
[in] | imgMsg | Incoming image message |
Definition at line 134 of file cxImageReceiverThread.cpp.
|
protected |
add the message to a thread-safe queue
Definition at line 154 of file cxImageReceiverThread.cpp.
|
protected |
Calibrate the time stamps of the incoming message based on the computer clock. Calibration is based on an average of several of the last messages. The calibration is updated every 20-30 sec.
Definition at line 188 of file cxImageReceiverThread.cpp.
|
signal |
|
signal |
|
virtual |
Definition at line 162 of file cxImageReceiverThread.cpp.
|
virtual |
Definition at line 178 of file cxImageReceiverThread.cpp.
|
virtual |
Definition at line 250 of file cxImageReceiverThread.cpp.
|
signal |
|
slot |
Definition at line 73 of file cxImageReceiverThread.cpp.
|
slot |
Definition at line 109 of file cxImageReceiverThread.cpp.
|
signal |