Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkNavigationDataPlayerControlWidget.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 QmitkNavigationDataPlayerControlWidget_h
14 #define QmitkNavigationDataPlayerControlWidget_h
15 
16 #include <QWidget>
18 #include "MitkIGTUIExports.h"
19 
20 class QTimer;
21 
22 namespace Ui {
24 }
25 
26 class MITKIGTUI_EXPORT QmitkNavigationDataPlayerControlWidget : 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 
42 public:
43  explicit QmitkNavigationDataPlayerControlWidget(QWidget *parent = nullptr);
45 
46  void SetPlayer(mitk::NavigationDataPlayer::Pointer player);
47 
48 private:
49  void ResetPlayerDisplay();
50 
51  mitk::NavigationDataPlayer::Pointer m_Player;
52 
53  QTimer* m_UpdateTimer;
54 
55  Ui::QmitkNavigationDataPlayerControlWidget *ui;
56 };
57 
58 #endif
mitkNavigationDataPlayer.h
QmitkNavigationDataPlayerControlWidget
Definition: QmitkNavigationDataPlayerControlWidget.h:26
Ui
Definition: BlueBerryExampleLauncherDialog.h:21