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