Package org.medcare.igtl.messages
Class GetPositionMessage
java.lang.Object
org.medcare.igtl.messages.OpenIGTMessage
org.medcare.igtl.messages.GetPositionMessage
** This class create a GetPosition object from bytes received or help to generate
bytes to send from it
-
Field Summary
Fields inherited from class org.medcare.igtl.messages.OpenIGTMessage
bytesArray, deviceName, VERSION
-
Constructor Summary
ConstructorDescriptionGetPositionMessage
(String deviceName) ** Constructor to be used to create message to send them with this constructor you must use method CreateBody and then getBytes to send them **GetPositionMessage
(Header header, byte[] body) ** Constructor to be used to create message from received data -
Method Summary
Methods inherited from class org.medcare.igtl.messages.OpenIGTMessage
getBody, getBytes, getDeviceName, getHeader, setBody, setHeader, Unpack
-
Constructor Details
-
GetPositionMessage
** Constructor to be used to create message to send them with this constructor you must use method CreateBody and then getBytes to send them **- Parameters:
deviceName
- Device Name
-
GetPositionMessage
** Constructor to be used to create message from received data- Parameters:
header
-body
-- Throws:
Exception
-
-
Method Details
-
packBody
public byte[] packBody()** To create body to get bytes to send**
- Specified by:
packBody
in classOpenIGTMessage
- Returns:
- the bytes array containing the body
-
unpackBody
public boolean unpackBody()** To create body from body array**
- Specified by:
unpackBody
in classOpenIGTMessage
- Returns:
- true if unpacking is ok
-
toString
** To get get Position String **- Specified by:
toString
in classOpenIGTMessage
- Returns:
- the get Position String
-