NorMIT-nav  18.04
An IGT application
cxDirectlyLinkedSender.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 CXDirectlyLinkedSender_H_
13 #define CXDirectlyLinkedSender_H_
14 
15 #include "cxGrabberExport.h"
16 
17 #include "cxSenderImpl.h"
18 
19 #include <QObject>
20 #include <boost/shared_ptr.hpp>
21 #include "cxImage.h"
22 #include "cxTool.h"
23 #include "cxIGTLinkImageMessage.h"
25 
26 namespace cx
27 {
28 
33 class cxGrabber_EXPORT DirectlyLinkedSender : public SenderImpl
34 {
35  Q_OBJECT
36 
37 public:
39  virtual ~DirectlyLinkedSender() {}
40 
41  bool isReady() const;
42  virtual void send(ImagePtr msg);
43  virtual void send(ProbeDefinitionPtr msg);
44 
45  ImagePtr popImage();
46  ProbeDefinitionPtr popUSStatus();
47 
48 signals:
49  void newImage();
50  void newUSStatus();
51 
52 private:
53  ImagePtr mImage;
54  ProbeDefinitionPtr mUSStatus;
55 
56 };
57 typedef boost::shared_ptr<DirectlyLinkedSender> DirectlyLinkedSenderPtr;
58 
59 }//namespace cx
60 #endif /* CXDirectlyLinkedSender_H_ */
boost::shared_ptr< class DirectlyLinkedSender > DirectlyLinkedSenderPtr
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< class ProbeDefinition > ProbeDefinitionPtr
Namespace for all CustusX production code.