39 #ifndef __usNetworkGrabber_h_
40 #define __usNetworkGrabber_h_
42 #include <visp3/ustk_core/us.h>
43 #include <visp3/ustk_core/usConfig.h>
44 #include <visp3/ustk_grabber/usAcquisitionParameters.h>
46 #if defined(USTK_HAVE_QT5) || defined(USTK_HAVE_VTK_QT)
53 #include <QtCore/QObject>
54 #include <QtCore/QThread>
55 #include <QtNetwork/QHostAddress>
56 #include <QtNetwork/QTcpSocket>
76 OUTPUT_FRAME_POSITION_IN_VEC = 0,
77 MOST_RECENT_FRAME_POSITION_IN_VEC = 1,
78 CURRENT_FILLED_FRAME_POSITION_IN_VEC = 2
79 } usDataPositionInBuffer;
138 bool getMotorActivation();
140 int getFramesPerVolume();
142 int getImagingMode();
143 int getMotorPosition();
144 int getPostScanHeigh();
145 bool getPostScanMode();
146 int getPostScanWidth();
147 int getSamplingFrequency();
149 int getTransmitFrequency();
151 void readAcquisitionParameters(QDataStream &stream);
153 bool sendAcquisitionParameters();
157 void setMotorActivation(
bool activateMotor);
159 void setFramesPerVolume(
int framesPerVolume);
160 void setImageDepth(
int imageDepth);
161 void setImagingMode(
int imagingMode);
162 void setMotorPosition(
int motorPosition);
163 void setPostScanHeigh(
int postScanHeigh);
164 void setPostScanMode(
bool postScanMode);
165 void setPostScanWidth(
int postScanWidth);
166 void setSamplingFrequency(
int samplingFrequency);
167 void setSector(
int sector);
168 void setTransmitFrequency(
int transmitFrequency);
181 void center3DProbeMotor();
183 void connectToServer();
184 void connectToServer(QHostAddress address);
187 void disconnectFromServer();
188 void handleError(QAbstractSocket::SocketError err);
190 void processConnectionToServer();
191 void runAcquisition();
192 void stopAcquisition();
195 void serverUpdated(
bool sucess);
196 void sendRunSignal(
bool run);
197 void sendAcquisitionParametersSlot();
Class to store acquisition parameters for ultrasound station.
usMotorStep
For 4DC7 3D probe motor movement.
Generic abstract class to manage tcp connection to grab ultrasound frames (on port 8080).
usInitHeaderConfirmation m_confirmHeader
void sendAcquisitionParametersSignal()
void serverUpdateEnded(bool success)
us::usImageHeader m_imageHeader
void setIPAddress(const std::string &s_ip)
bool m_updateParametersSucess
virtual void dataArrived()=0
void acquisitionInitialized(bool)
void runAcquisitionSignal(bool run)
usAcquisitionParameters m_acquisitionParameters
void setVerbose(bool verbose)