Fraxinus  16.5.0-fx-rc8
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ImageReceiverThread Class Reference

Base class for receiving images from a video stream. More...

#include <cxImageReceiverThread.h>

Inheritance diagram for cx::ImageReceiverThread:

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...
 

Detailed Description

Base class for receiving images from a video stream.

Subclass to implement for a specific protocol. Supported messages:

  • Image : contains vtkImageData, timestamp, uid, all else is discarded.
  • ProbeDefinition : contains sector and image definition, temporal cal is discarded.
Date
Oct 11, 2012
Author
Christian Askeland, SINTEF

Definition at line 77 of file cxImageReceiverThread.h.

Constructor & Destructor Documentation

cx::ImageReceiverThread::ImageReceiverThread ( StreamerServicePtr  streamerInterface,
QObject *  parent = NULL 
)

Definition at line 46 of file cxImageReceiverThread.cpp.

virtual cx::ImageReceiverThread::~ImageReceiverThread ( )
inlinevirtual

Definition at line 82 of file cxImageReceiverThread.h.

Member Function Documentation

void cx::ImageReceiverThread::addImageToQueue ( ImagePtr  imgMsg)
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

Parameters
[in]imgMsgIncoming image message

Definition at line 111 of file cxImageReceiverThread.cpp.

void cx::ImageReceiverThread::addSonixStatusToQueue ( ProbeDefinitionPtr  msg)
protected

add the message to a thread-safe queue

Definition at line 130 of file cxImageReceiverThread.cpp.

void cx::ImageReceiverThread::finished ( )
signal
void cx::ImageReceiverThread::fps ( QString  ,
double   
)
signal
ImagePtr cx::ImageReceiverThread::getLastImageMessage ( )
virtual

Definition at line 138 of file cxImageReceiverThread.cpp.

ProbeDefinitionPtr cx::ImageReceiverThread::getLastSonixStatusMessage ( )
virtual

Definition at line 149 of file cxImageReceiverThread.cpp.

QString cx::ImageReceiverThread::hostDescription ( ) const
virtual

Definition at line 183 of file cxImageReceiverThread.cpp.

void cx::ImageReceiverThread::imageReceived ( )
signal
void cx::ImageReceiverThread::initialize ( )
slot

Definition at line 53 of file cxImageReceiverThread.cpp.

void cx::ImageReceiverThread::shutdown ( )
slot

Definition at line 86 of file cxImageReceiverThread.cpp.

void cx::ImageReceiverThread::sonixStatusReceived ( )
signal

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