Medical Imaging Interaction Toolkit  2016.11.0
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,
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 QMITKNAVIGATIONDATAPLAYERCONTROLWIDGET_H
18 #define QMITKNAVIGATIONDATAPLAYERCONTROLWIDGET_H
19 
20 #include <QWidget>
22 #include "MitkIGTUIExports.h"
23 
24 class QTimer;
25 
26 namespace Ui {
28 }
29 
30 class MITKIGTUI_EXPORT QmitkNavigationDataPlayerControlWidget : public QWidget
31 {
32  Q_OBJECT
33 
34 signals:
35  void SignalUpdate();
36  void SignalEndReached();
37 
38 public slots:
39  void OnStop();
40  void OnPlayPause();
41  void OnRestart();
42 
43 protected slots:
44  void OnUpdate();
45 
46 public:
47  explicit QmitkNavigationDataPlayerControlWidget(QWidget *parent = 0);
49 
50  void SetPlayer(mitk::NavigationDataPlayer::Pointer player);
51 
52 private:
53  void ResetPlayerDisplay();
54 
56 
57  QTimer* m_UpdateTimer;
58 
59  Ui::QmitkNavigationDataPlayerControlWidget *ui;
60 };
61 
62 #endif // QMITKNAVIGATIONDATAPLAYERCONTROLWIDGET_H
itk::SmartPointer< Self > Pointer