Class GetImageMessage

java.lang.Object
org.medcare.igtl.messages.OpenIGTMessage
org.medcare.igtl.messages.GetImageMessage

public class GetImageMessage extends OpenIGTMessage
** This class create a GetImage object from bytes received or help to generate bytes to send from it
  • Constructor Details

    • GetImageMessage

      public GetImageMessage(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 **
      Parameters:
      deviceName - Device Name
    • GetImageMessage

      public GetImageMessage(Header header, byte[] body) throws Exception
      ** 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 class OpenIGTMessage
      Returns:
      the bytes array containing the body
    • unpackBody

      public boolean unpackBody()
      ** To create body from body array

      **

      Specified by:
      unpackBody in class OpenIGTMessage
      Returns:
      true if unpacking is ok
    • toString

      public String toString()
      ** To get get image String **
      Specified by:
      toString in class OpenIGTMessage
      Returns:
      the get image String