CustusX  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::IGTLinkConversionSonixCXLegacy Class Reference

#include <cxIGTLinkConversionSonixCXLegacy.h>

Public Member Functions

igtl::ImageMessage::Pointer encode (ImagePtr image)
 
ImagePtr decode (igtl::ImageMessage::Pointer msg)
 
ImagePtr decode (ImagePtr msg)
 
ProbeDefinitionPtr decode (ProbeDefinitionPtr msg)
 
bool guessIsSonixLegacyFormat (QString deviceName)
 

Detailed Description

Definition at line 52 of file cxIGTLinkConversionSonixCXLegacy.h.

Member Function Documentation

ImagePtr cx::IGTLinkConversionSonixCXLegacy::decode ( igtl::ImageMessage::Pointer  msg)

Decode the IGTLink message to create an image containing image data, uid and timstamp. The color format is also converted to RGBX

Definition at line 71 of file cxIGTLinkConversionSonixCXLegacy.cpp.

ImagePtr cx::IGTLinkConversionSonixCXLegacy::decode ( ImagePtr  msg)

Decode the image to standard format with standard color RGBX encoding.

Find the substring [XYZW] in the msg uid, where each letter can be one of RGBAX. The letters describe the image components. Rearrange to standard RGBX format, strip format from uid, and return as new image.

Definition at line 208 of file cxIGTLinkConversionSonixCXLegacy.cpp.

ProbeDefinitionPtr cx::IGTLinkConversionSonixCXLegacy::decode ( ProbeDefinitionPtr  msg)

Definition at line 62 of file cxIGTLinkConversionSonixCXLegacy.cpp.

igtl::ImageMessage::Pointer cx::IGTLinkConversionSonixCXLegacy::encode ( ImagePtr  image)

Encode the image into a IGTLink message, containing image data, uid and timstamp

Definition at line 141 of file cxIGTLinkConversionSonixCXLegacy.cpp.

bool cx::IGTLinkConversionSonixCXLegacy::guessIsSonixLegacyFormat ( QString  deviceName)

Return true if the device name if on a format indicating that the message is legacy.

Definition at line 223 of file cxIGTLinkConversionSonixCXLegacy.cpp.


The documentation for this class was generated from the following files: