Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
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 QMITKNAVIGATIONDATASEQUENTIALPLAYERCONTROLWIDGET_H
18 #define QMITKNAVIGATIONDATASEQUENTIALPLAYERCONTROLWIDGET_H
19 
20 #include <QWidget>
22 #include "MitkIGTUIExports.h"
23 
24 class QTimer;
25 
26 namespace Ui {
28 }
29 
30 class MITKIGTUI_EXPORT QmitkNavigationDataSequentialPlayerControlWidget : 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  void OnUpdateIntervalChanged(int);
46 
47 public:
48  explicit QmitkNavigationDataSequentialPlayerControlWidget(QWidget *parent = 0);
50 
51  void SetPlayer(mitk::NavigationDataSequentialPlayer::Pointer player);
52 
53 protected:
54  void UpdatePlayerDisplay();
55 
56 private:
58 
59  QTimer* m_UpdateTimer;
60 
61  Ui::QmitkNavigationDataSequentialPlayerControlWidget *ui;
62 };
63 
64 #endif // QMITKNAVIGATIONDATASEQUENTIALPLAYERCONTROLWIDGET_H
itk::SmartPointer< Self > Pointer