Package sample
Class ServerSample
java.lang.Object
sample.ServerSample
- All Implemented Interfaces:
IOpenIgtPacketListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTxTransform
(String name) Request for a transform for transmition to IGTstatic void
onGetStatus
(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 transform 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
traverseNode
(Node n, StringBuffer treeData)
-
Constructor Details
-
ServerSample
public ServerSample()
-
-
Method Details
-
main
- Parameters:
args
-
-
onRxTransform
Description copied from interface:IOpenIgtPacketListener
This method will be called by the IGT server when a transform is received. Supports: TRANSFORM QTRANS QTRANSFORM POSITION- Specified by:
onRxTransform
in interfaceIOpenIgtPacketListener
- Parameters:
name
- The string in the 'NAME' field of the IGT packett
-
-
getTxTransform
Description copied from interface:IOpenIgtPacketListener
Request for a transform for transmition to IGT- Specified by:
getTxTransform
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of transform to get- Returns:
- the requested transform
-
onGetStatus
Description copied from interface:IOpenIgtPacketListener
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
Description copied from interface:IOpenIgtPacketListener
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
-
traverseNode
-
onTxString
Description copied from interface:IOpenIgtPacketListener
This is the request handler for a String packet- Specified by:
onTxString
in interfaceIOpenIgtPacketListener
- Parameters:
name
- A string of what type of transform to get
-
onRxDataArray
Description copied from interface:IOpenIgtPacketListener
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
Description copied from interface:IOpenIgtPacketListener
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
Description copied from interface:IOpenIgtPacketListener
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
-