Fraxinus  22.04-rc5
An IGT application
cxOpenIGTLinkStreamer.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 CXOPENIGTLINKSTREAMER_H
12 #define CXOPENIGTLINKSTREAMER_H
13 
14 #include "org_custusx_core_openigtlink3_Export.h"
15 #include "cxStreamer.h"
16 
17 #include "cxImage.h"
18 #include "cxProbeDefinition.h"
20 #include "cxIGTLinkImageMessage.h"
21 
22 namespace cx
23 {
24 
33 class org_custusx_core_openigtlink3_EXPORT OpenIGTLinkStreamer : public Streamer
34 {
35  Q_OBJECT
36 
37 public:
39  virtual ~OpenIGTLinkStreamer();
40 
41  virtual void startStreaming(SenderPtr sender);
42  virtual void stopStreaming();
43  virtual bool isStreaming();
44  virtual QString getType();
45 
46 signals:
47  void stoppedStreaming();
48 
49 public slots:
50  void receivedConnected();
51  void receivedDisconnected();
52  void receivedError();
53  void receivedImage(ImagePtr image);
54  void receiveProbedefinition(QString not_used, ProbeDefinitionPtr probedef);
55 
56 protected slots:
57  virtual void streamSlot();
58 
59 private:
60  SenderPtr mSender;
61 
62 };
63 typedef boost::shared_ptr<OpenIGTLinkStreamer> OpenIGTLinkStreamerPtr;
64 
65 } // namespace cx
66 
67 #endif // CXOPENIGTLINKSTREAMER_H
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< OpenIGTLinkStreamer > OpenIGTLinkStreamerPtr
boost::shared_ptr< Sender > SenderPtr
Definition: cxSender.h:64
boost::shared_ptr< class ProbeDefinition > ProbeDefinitionPtr
Namespace for all CustusX production code.