Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkNavigationDataSequentialPlayerControlWidget.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkNavigationDataSequentialPlayerControlWidget_h
14 #define QmitkNavigationDataSequentialPlayerControlWidget_h
15 
16 #include <QWidget>
18 #include "MitkIGTUIExports.h"
19 
20 class QTimer;
21 
22 namespace Ui {
24 }
25 
26 class MITKIGTUI_EXPORT QmitkNavigationDataSequentialPlayerControlWidget : public QWidget
27 {
28  Q_OBJECT
29 
30 signals:
31  void SignalUpdate();
32  void SignalEndReached();
33 
34 public slots:
35  void OnStop();
36  void OnPlayPause();
37  void OnRestart();
38 
39 protected slots:
40  void OnUpdate();
41  void OnUpdateIntervalChanged(int);
42 
43 public:
44  explicit QmitkNavigationDataSequentialPlayerControlWidget(QWidget *parent = nullptr);
46 
47  void SetPlayer(mitk::NavigationDataSequentialPlayer::Pointer player);
48 
49 protected:
50  void UpdatePlayerDisplay();
51 
52 private:
53  mitk::NavigationDataSequentialPlayer::Pointer m_Player;
54 
55  QTimer* m_UpdateTimer;
56 
57  Ui::QmitkNavigationDataSequentialPlayerControlWidget *ui;
58 };
59 
60 #endif
QmitkNavigationDataSequentialPlayerControlWidget
Definition: QmitkNavigationDataSequentialPlayerControlWidget.h:26
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
mitkNavigationDataSequentialPlayer.h