UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-11-21)
usVirtualServer Class Reference

#include </home/soft/ustk/ustk-web-script/ustk-code/apps/ustk/virtual-server/usVirtualServer.h>

+ Inheritance diagram for usVirtualServer:

Classes

struct  usImageHeader
 
struct  usInitHeaderConfirmation
 
struct  usInitHeaderIncomming
 
struct  usUpdateHeaderIncomming
 

Signals

void runAcquisitionSignal (bool run)
 
void startSendingLoopSignal ()
 

Public Member Functions

 usVirtualServer (std::string sequencePath, QObject *parent=0)
 
 ~usVirtualServer ()
 

Detailed Description

Class to simulate a server sending frames from an ultrasound station. Permits to replay a sequence of images sent through the network, by respeting the timestamps of each frame sent (to do real-time tests).

Definition at line 67 of file usVirtualServer.h.

Constructor & Destructor Documentation

◆ usVirtualServer()

usVirtualServer::usVirtualServer ( std::string  sequencePath,
QObject *  parent = 0 
)
explicit

Constructor, sets the sequence path to open.

Parameters
sequencePathThe path to the sequence to replay : xml file for pre-scan 2D or post-scan 2D (using usSequenceReader), or directory containing mhd/raw files (using usMHDSequenceReader).
parentThe optionnal QObject parent.

Definition at line 41 of file usVirtualServer.cpp.

References usVirtualServer::usImageHeader::frameCount, runAcquisitionSignal(), and startSendingLoopSignal().

◆ ~usVirtualServer()

usVirtualServer::~usVirtualServer ( )

Destructor.

Definition at line 93 of file usVirtualServer.cpp.

Member Function Documentation

◆ runAcquisitionSignal

void usVirtualServer::runAcquisitionSignal ( bool  run)
signal

Referenced by usVirtualServer().

◆ startSendingLoopSignal

void usVirtualServer::startSendingLoopSignal ( )
signal

Referenced by usVirtualServer().