37 #ifndef US_VIRTUAL_SERVER_H
38 #define US_VIRTUAL_SERVER_H
40 #include <QApplication>
41 #include <QtCore/QDataStream>
42 #include <QtCore/QDateTime>
43 #include <QtCore/QFile>
44 #include <QtCore/QString>
45 #include <QtCore/QStringList>
46 #include <QtNetwork/QTcpServer>
47 #include <QtNetwork/QTcpSocket>
56 #include <visp3/ustk_core/usConfig.h>
57 #include <visp3/ustk_core/usMHDSequenceReader.h>
58 #include <visp3/ustk_core/usSequenceReader.h>
60 #include "usConsoleListener.h"
150 explicit usVirtualServer(std::string sequencePath, QObject *parent = 0);
161 void acceptTheConnection();
164 void connectionAboutToClose();
170 void readIncomingData();
172 void runAcquisition(
bool run);
174 void startSendingLoop();
179 void invertRowsColsOnPreScan();
181 void setSequencePath(
const std::string sequencePath);
183 void sendingLoopSequenceXml();
184 void sendingLoopSequenceMHD();
188 void writeInitAcquisitionParameters(QDataStream &out,
int imagingMode);
191 QTcpServer m_tcpServer;
194 QTcpSocket *connectionSoc;
197 bool initWithoutUpdate;
199 #ifdef VISP_HAVE_XML2
218 bool m_isMHDSequence;
220 std::vector<uint64_t>
222 uint64_t m_nextImageTimestamp;
224 bool m_serverIsSendingImages;
226 std::string m_sequencePath;
231 unsigned int m_pauseImageNumber;
232 uint64_t m_pauseDurationOffset;
233 unsigned int m_pauseIndexOffset;
237 std::vector<uint64_t> m_timestampsTemp;
238 bool m_volumePauseTmp;
Reader for a sequence of images stored as mhd/raw files in a directory Image sequence files order hav...
Reading of sequences of ultrasound images.
Class to simulate a server sending frames from an ultrasound station. Permits to replay a sequence of...
void startSendingLoopSignal()
void runAcquisitionSignal(bool run)
usVirtualServer(std::string sequencePath, QObject *parent=0)