Package org.medcare.igtl.network
Class GenericIGTLinkServer
java.lang.Object
org.medcare.igtl.network.OpenIGTServer
org.medcare.igtl.network.GenericIGTLinkServer
- All Implemented Interfaces:
IOpenIgtPacketListener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.medcare.igtl.network.OpenIGTServer
OpenIGTServer.ServerStatus
-
Field Summary
Fields inherited from class org.medcare.igtl.network.OpenIGTServer
errorManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getMessageHandler
(Header header, byte[] bodyBuf, ServerThread serverThread) ** To get message HandlergetTxTransform
(String name) Request for a TransformNR for transmition to IGTonGetStatus
(String name) Request for status from IGT/Slicervoid
onRxDataArray
(String name, Matrix3D data) This is the handler for an array of raw data in an arrayvoid
onRxImage
(String name, ImageMessage image) This is a handler for an Image sent from IGT packetvoid
onRxNDArray
(String name, float[] data) THis is a request for an array of datavoid
onRxString
(String name, String body) This is the handler for a String packetvoid
onRxTransform
(String name, TransformNR t) This method will be called by the IGT server when a TransformNR is received.double[]
onTxDataArray
(String name) THis is a request for an array of datavoid
onTxNDArray
(String name) THis is a request for an array of dataonTxString
(String name) This is the request handler for a String packetvoid
pushNDArrayMessage
(String deviceName, float[] data) void
pushPose
(String deviceName, TransformNR pose) void
pushStatus
(String deviceName, int code, int subCode, String status) void
pushStatus
(String deviceName, int code, int subCode, String errorName, String status) void
pushStringMessage
(String deviceName, String msg) void
pushTransformMessage
(String deviceName, TransformNR t) void
Methods inherited from class org.medcare.igtl.network.OpenIGTServer
getCurrentStatus, getKeepAlive, getServerThread, isConnected, sendMessage, setCurrentStatus, setKeepAlive, setServerThread, startListening, startServer, stopServer
-
Field Details
-
s
-
-
Constructor Details
-
GenericIGTLinkServer
- Throws:
Exception
-
-
Method Details
-
getMessageHandler
Description copied from class:OpenIGTServer
** To get message Handler- Specified by:
getMessageHandler
in classOpenIGTServer
- Parameters:
header
- header of the message receivedbodyBuf
- byte array of the body of the message receivedserverThread
- serverThread managing connection of client where does come from the message **- Returns:
- the message Handler
-
onRxTransform
This method will be called by the IGT server when a TransformNR is received. Supports: TransformNR QTRANS QTransformNR POSITION- Specified by:
onRxTransform
in interfaceIOpenIgtPacketListener
- Parameters:
name
- The string in the 'NAME' field of the IGT packett
-
-
getTxTransform
Request for a TransformNR for transmition to IGT- Specified by:
getTxTransform
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of TransformNR to get- Returns:
- the requested TransformNR
-
onGetStatus
Request for status from IGT/Slicer- Specified by:
onGetStatus
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of transform to get- Returns:
- the requested status
-
onRxString
This is the handler for a String packet- Specified by:
onRxString
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of data to getbody
- A string of the content
-
onTxString
This is the request handler for a String packet- Specified by:
onTxString
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of TransformNR to get
-
onRxDataArray
This is the handler for an array of raw data in an array- Specified by:
onRxDataArray
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of data to getdata
- An array of data
-
onTxDataArray
THis is a request for an array of data- Specified by:
onTxDataArray
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of data to get- Returns:
- an array of data
-
onRxImage
This is a handler for an Image sent from IGT packet- Specified by:
onRxImage
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of data to getimage
- the image
-
onTxNDArray
Description copied from interface:IOpenIgtPacketListener
THis is a request for an array of data- Specified by:
onTxNDArray
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of data to get returns an array of data
-
onRxNDArray
Description copied from interface:IOpenIgtPacketListener
THis is a request for an array of data- Specified by:
onRxNDArray
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of data to get returns an array of data
-
addIOpenIgtOnPacket
-
removeIOpenIgtOnPacket
-
pushPose
-
pushStatus
-
pushStatus
-
pushStringMessage
-
pushTransformMessage
-
pushNDArrayMessage
-