Package org.medcare.igtl.messages
Class DataArrayMessage
java.lang.Object
org.medcare.igtl.messages.OpenIGTMessage
org.medcare.igtl.messages.DataArrayMessage
-
Field Summary
Fields inherited from class org.medcare.igtl.messages.OpenIGTMessage
bytesArray, deviceName, VERSION
-
Constructor Summary
ConstructorDescriptionDataArrayMessage
(Header head, byte[] body) This is a stub class for how the Array Data message is to be implemented -
Method Summary
Methods inherited from class org.medcare.igtl.messages.OpenIGTMessage
getBody, getBytes, getDeviceName, getHeader, setBody, setHeader, Unpack
-
Constructor Details
-
DataArrayMessage
This is a stub class for how the Array Data message is to be implemented- Parameters:
head
-body
-- Throws:
Exception
-
-
Method Details
-
unpackBody
Description copied from class:OpenIGTMessage
** To create body from body array**
- Specified by:
unpackBody
in classOpenIGTMessage
- Returns:
- true if unpacking is ok
- Throws:
Exception
-
packBody
public byte[] packBody()Description copied from class:OpenIGTMessage
** To create body from image_header and image_data SetImageHeader and SetImageData must have called first**
- Specified by:
packBody
in classOpenIGTMessage
- Returns:
- the bytes array containing the message
-
toString
Description copied from class:OpenIGTMessage
** To get message String **- Specified by:
toString
in classOpenIGTMessage
- Returns:
- the message String
-
getDataMatrix
-