Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkIGTLStreamingConnector.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QMITKIGTLSTREAMINGCONNECTOR_H
18 #define QMITKIGTLSTREAMINGCONNECTOR_H
19 
20 //QT headers
21 #include <QTimer>
22 
23 //mitk headers
24 #include "MitkOpenIGTLinkUIExports.h"
25 #include "mitkIGTLMessageSource.h"
27 
39 class MITKOPENIGTLINKUI_EXPORT QmitkIGTLStreamingConnector : public QObject
40 {
41  Q_OBJECT
42 
43  public:
44  static const std::string VIEW_ID;
45 
46  QmitkIGTLStreamingConnector(QObject* parent = 0);
48 
52  void Initialize(mitk::IGTLMessageSource::Pointer msgSource,
54 
55  protected slots:
59  void OnCheckFPS();
63  void OnUpdateSource();
64 
65  protected:
68 
73 
79 
84 
85  static const unsigned int MILISECONDS_BETWEEN_FPS_CHECK;
86 };
87 #endif
This class is used to stream messages from a IGTL message source into the sending queue of a message ...
itk::SmartPointer< Self > Pointer
mitk::IGTLMessageProvider::Pointer m_IGTLMessageProvider
holds the message provider that will send the stream data from the source
mitk::IGTLMessageSource::Pointer m_IGTLMessageSource
holds the message source that has to stream its data
static const unsigned int MILISECONDS_BETWEEN_FPS_CHECK
QTimer m_CheckFPSTimer
Everytime this timer is fired the fps of the message source are checked and the streaming is started ...
QTimer m_StreamingTimer
the timer that is configured depending on the fps, if it is fired the pipeline is updated and the IGT...