CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::IGTLinkConversion Class Reference

#include <cxIGTLinkConversion.h>

Public Member Functions

igtl::StringMessage::Pointer encode (QString msg)
 
QString decode (igtl::StringMessage::Pointer msg)
 
QString decode (igtl::StatusMessage::Pointer msg)
 
ImagePtr decode (igtl::ImageMessage::Pointer msg)
 
Transform3D decode (igtl::TransformMessage::Pointer msg)
 
IGTLinkUSStatusMessage::Pointer encode (ProbeDefinitionPtr)
 
ProbeDefinitionPtr decode (IGTLinkUSStatusMessage::Pointer probeMessage, igtl::ImageMessage::Pointer imageMsg, ProbeDefinitionPtr base)
 

Detailed Description

Encode and decode OpenIGTLink messages

Definition at line 42 of file cxIGTLinkConversion.h.

Member Function Documentation

QString cx::IGTLinkConversion::decode ( igtl::StringMessage::Pointer  msg)

Definition at line 38 of file cxIGTLinkConversion.cpp.

QString cx::IGTLinkConversion::decode ( igtl::StatusMessage::Pointer  msg)

Definition at line 46 of file cxIGTLinkConversion.cpp.

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

Definition at line 53 of file cxIGTLinkConversion.cpp.

Transform3D cx::IGTLinkConversion::decode ( igtl::TransformMessage::Pointer  msg)

Definition at line 59 of file cxIGTLinkConversion.cpp.

ProbeDefinitionPtr cx::IGTLinkConversion::decode ( IGTLinkUSStatusMessage::Pointer  probeMessage,
igtl::ImageMessage::Pointer  imageMsg,
ProbeDefinitionPtr  base 
)

Decode the input probe and image messages to create a ProbeDefinition 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 86 of file cxIGTLinkConversion.cpp.

igtl::StringMessage::Pointer cx::IGTLinkConversion::encode ( QString  msg)

Definition at line 29 of file cxIGTLinkConversion.cpp.

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

Encode the input ProbeDefinition into an IGTLink message.

Definition at line 69 of file cxIGTLinkConversion.cpp.


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