Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxIGTLinkConversion.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXIGTLINKCONVERSION_H_
13 #define CXIGTLINKCONVERSION_H_
14 
15 #include "cxOpenIGTLinkUtilitiesExport.h"
16 
17 #include "igtlStringMessage.h"
18 #include "igtlStatusMessage.h"
19 #include "igtlImageMessage.h"
20 #include "igtlTransformMessage.h"
21 
23 
24 //TODO remove
25 #include "cxIGTLinkImageMessage.h"
26 
27 #include "cxImage.h"
28 #include "cxTransform3D.h"
29 #include "cxTool.h"
30 
31 #include "cxLogger.h"
32 
33 namespace cx
34 {
35 
42 class cxOpenIGTLinkUtilities_EXPORT IGTLinkConversion
43 {
44 public:
45  //Standard openigtlink messages
46  igtl::StringMessage::Pointer encode(QString msg);
47  QString decode(igtl::StringMessage::Pointer msg);
48  QString decode(igtl::StatusMessage::Pointer msg);
49  ImagePtr decode(igtl::ImageMessage::Pointer msg);
50  Transform3D decode(igtl::TransformMessage::Pointer msg);
51 
64  ProbeDefinitionPtr decode(IGTLinkUSStatusMessage::Pointer probeMessage, igtl::ImageMessage::Pointer imageMsg, ProbeDefinitionPtr base);
65 
66 private:
67  QString convertIGTLinkStatusCodes(const int code);
68 };
69 
70 } //namespace cx
71 
72 #endif /* CXIGTLINKCONVERSION_H_ */
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< class ProbeDefinition > ProbeDefinitionPtr
Namespace for all CustusX production code.