Fraxinus
16.5.0-fx-rc7
An IGT application
|
The NetworkConnection class handles incoming OpenIGTLink packages. More...
#include <cxNetworkConnection.h>
Signals | |
void | transform (QString devicename, Transform3D transform, double timestamp) |
void | calibration (QString devicename, Transform3D calibration) |
void | image (ImagePtr image) |
void | mesh (MeshPtr image) |
void | probedefinition (QString devicename, ProbeDefinitionPtr definition) |
Signals inherited from cx::SocketConnection | |
void | connectionInfoChanged () |
void | stateChanged (CX_SOCKETCONNECTION_STATE status) |
void | connected () |
void | disconnected () |
void | error () |
Public Member Functions | |
NetworkConnection (QString uid, QObject *parent=0) | |
virtual | ~NetworkConnection () |
QString | getUid () const |
QStringList | getAvailableDialects () const |
void | invoke (boost::function< void()> func) |
void | sendImage (ImagePtr image) |
not thread-safe: use invoke More... | |
void | sendMesh (MeshPtr image) |
not thread-safe: use invoke More... | |
void | streamImage (ImagePtr image) |
not thread-safe: use invoke More... | |
Public Member Functions inherited from cx::SocketConnection | |
SocketConnection (QObject *parent=0) | |
ConnectionInfo | getConnectionInfo () |
thread-safe More... | |
CX_SOCKETCONNECTION_STATE | getState () |
thread-safe More... | |
virtual void | setConnectionInfo (ConnectionInfo info) |
thread-safe More... | |
virtual void | requestConnect () |
not thread-safe: use invoke More... | |
virtual void | requestDisconnect () |
not thread-safe: use invoke More... | |
Protected Member Functions | |
virtual void | setProtocol (QString protocolname) |
Protected Member Functions inherited from cx::SocketConnection | |
SocketConnectorPtr | createConnector (ConnectionInfo info) |
bool | socketIsConnected () |
bool | enoughBytesAvailableOnSocket (int bytes) const |
bool | socketReceive (void *packPointer, int packSize) const |
QStringList | getAllServerHostnames () |
void | setCurrentConnectionInfo () |
void | stateChange (CX_SOCKETCONNECTION_STATE newState) |
CX_SOCKETCONNECTION_STATE | computeState () |
Additional Inherited Members | |
Public Slots inherited from cx::SocketConnection | |
bool | sendData (const char *data, qint64 maxSize) |
not thread-safe More... | |
Protected Attributes inherited from cx::SocketConnection | |
QTcpSocket * | mSocket |
CX_SOCKETCONNECTION_STATE | mCurrentState |
QMutex | mNextConnectionInfoMutex |
ConnectionInfo | mNextConnectionInfo |
info to be used for the next connect(), mutexed. More... | |
SocketConnectorPtr | mConnector |
The NetworkConnection class handles incoming OpenIGTLink packages.
To specify how packages should be handled you can specify different kind of supported dialects, which are a way to handle the way different OpenIGTLink servers send packages.
Definition at line 67 of file cxNetworkConnection.h.
|
explicit |
Definition at line 58 of file cxNetworkConnection.cpp.
|
virtual |
Definition at line 80 of file cxNetworkConnection.cpp.
|
signal |
QStringList cx::NetworkConnection::getAvailableDialects | ( | ) | const |
Definition at line 103 of file cxNetworkConnection.cpp.
|
inline |
Definition at line 79 of file cxNetworkConnection.h.
|
signal |
void cx::NetworkConnection::invoke | ( | boost::function< void()> | func | ) |
Definition at line 90 of file cxNetworkConnection.cpp.
|
signal |
|
signal |
void cx::NetworkConnection::sendImage | ( | ImagePtr | image | ) |
not thread-safe: use invoke
Definition at line 198 of file cxNetworkConnection.cpp.
void cx::NetworkConnection::sendMesh | ( | MeshPtr | image | ) |
not thread-safe: use invoke
Definition at line 207 of file cxNetworkConnection.cpp.
|
protectedvirtual |
Implements cx::SocketConnection.
Definition at line 114 of file cxNetworkConnection.cpp.
void cx::NetworkConnection::streamImage | ( | ImagePtr | image | ) |
not thread-safe: use invoke
Definition at line 158 of file cxNetworkConnection.cpp.
|
signal |