![]() |
CustusX
15.4.0-beta
An IGT application
|
#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) |
Encode and decode IGTLink image and status messages to and from CustusX classes
Definition at line 55 of file cxIGTLinkConversion.h.
cx::IGTLinkConversion::IGTLinkConversion | ( | ) |
Definition at line 60 of file cxIGTLinkConversion.cpp.
|
virtual |
Definition at line 64 of file cxIGTLinkConversion.cpp.
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.
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.