NorMIT-nav  18.04
An IGT application
cxIGTLinkConversionSonixCXLegacy.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 #ifndef CXIGTLINKCONVERSIONSONIXCXLEGACY_H
12 #define CXIGTLINKCONVERSIONSONIXCXLEGACY_H
13 
14 
15 #include "igtlStringMessage.h"
16 #include "igtlStatusMessage.h"
17 #include "igtlImageMessage.h"
18 #include "igtlTransformMessage.h"
19 
20 #include "cxIGTLinkImageMessage.h"
22 
23 #include "cxImage.h"
24 #include "cxTransform3D.h"
25 #include "cxTool.h"
26 #include "cxOpenIGTLinkUtilitiesExport.h"
27 
28 namespace cx
29 {
30 
31 class cxOpenIGTLinkUtilities_EXPORT IGTLinkConversionSonixCXLegacy
32 {
33 public:
38  igtl::ImageMessage::Pointer encode(ImagePtr image);
44 // ImagePtr decode(IGTLinkImageMessage::Pointer msg);
45  ImagePtr decode(igtl::ImageMessage::Pointer msg);
46 
55  ImagePtr decode(ImagePtr msg);
56 
58 
62  bool guessIsSonixLegacyFormat(QString deviceName);
63 
64 private:
68  QString extractColorFormat(QString deviceName, QString* cleanedDeviceName);
73  vtkImageDataPtr createFilterFormat2RGB(QString format, vtkImageDataPtr input);
78  vtkImageDataPtr createFilterAny2RGB(int R, int G, int B, vtkImageDataPtr input);
79 
80 };
81 
82 } //namespace cx
83 
84 #endif // CXIGTLINKCONVERSIONSONIXCXLEGACY_H
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
boost::shared_ptr< class ProbeDefinition > ProbeDefinitionPtr
Namespace for all CustusX production code.