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

#include <cxIGTLinkConversion.h>

Public Member Functions

 IGTLinkConversion ()
 
virtual ~IGTLinkConversion ()
 
IGTLinkImageMessage::Pointer encode (ImagePtr image)
 
ImagePtr decode (IGTLinkImageMessage::Pointer msg)
 
IGTLinkUSStatusMessage::Pointer encode (ProbeDefinitionPtr)
 
ProbeDefinitionPtr decode (IGTLinkUSStatusMessage::Pointer probeMessage, IGTLinkImageMessage::Pointer imageMessage, ProbeDefinitionPtr base)
 
ImagePtr decode (ImagePtr msg)
 
ProbeDefinitionPtr decode (ProbeDefinitionPtr msg)
 

Detailed Description

Encode and decode IGTLink image and status messages to and from CustusX classes

Date
Feb 19, 2013
Author
olevs
christiana

Definition at line 55 of file cxIGTLinkConversion.h.

Constructor & Destructor Documentation

cx::IGTLinkConversion::IGTLinkConversion ( )

Definition at line 60 of file cxIGTLinkConversion.cpp.

cx::IGTLinkConversion::~IGTLinkConversion ( )
virtual

Definition at line 64 of file cxIGTLinkConversion.cpp.

Member Function Documentation

ImagePtr cx::IGTLinkConversion::decode ( IGTLinkImageMessage::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 158 of file cxIGTLinkConversion.cpp.

ProbeDefinitionPtr cx::IGTLinkConversion::decode ( IGTLinkUSStatusMessage::Pointer  probeMessage,
IGTLinkImageMessage::Pointer  imageMessage,
ProbeDefinitionPtr  base 
)

Decode the input probe and image messages to create a ProbeData object based in the input base.

Each message contains part of the data, the parts that are missing are simply not filled in (i.e. keep the values already present in base.)

Some or all of the input messages can be NULL.

Definition at line 272 of file cxIGTLinkConversion.cpp.

ImagePtr cx::IGTLinkConversion::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 311 of file cxIGTLinkConversion.cpp.

ProbeDefinitionPtr cx::IGTLinkConversion::decode ( ProbeDefinitionPtr  msg)

Definition at line 327 of file cxIGTLinkConversion.cpp.

IGTLinkImageMessage::Pointer cx::IGTLinkConversion::encode ( ImagePtr  image)

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

Definition at line 70 of file cxIGTLinkConversion.cpp.

IGTLinkUSStatusMessage::Pointer cx::IGTLinkConversion::encode ( ProbeDefinitionPtr  input)

Encode the input probedata into an IGTLink message.

Definition at line 249 of file cxIGTLinkConversion.cpp.


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