Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkPrimitiveMovieNavigatorWidget.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 QmitkPrimitiveMovieNavigatorWidget_h
14 #define QmitkPrimitiveMovieNavigatorWidget_h
15 
17 
18 #include <mitkStepper.h>
19 
20 #include <QTimer>
21 #include <QWidget>
22 #include <memory>
23 
24 namespace Ui
25 {
26  class QmitkPrimitiveMovieNavigator;
27 }
28 
39 {
40  Q_OBJECT
41 
42 public:
48  QmitkPrimitiveMovieNavigatorWidget(QWidget *parent = nullptr, Qt::WindowFlags fl = {});
49 
52 
57  virtual int getTimerInterval();
58 
59 public slots:
61  virtual void Refetch();
62 
67  virtual void SetStepper(mitk::Stepper *stepper);
68 
70  virtual void goButton_clicked();
71 
73  virtual void stopButton_clicked();
74 
79  virtual void spinBoxValueChanged(int value);
80 
85  virtual void setTimerInterval(int timerIntervalInMS);
86 
87 protected:
88  std::unique_ptr<Ui::QmitkPrimitiveMovieNavigator> m_Controls;
89  mitk::Stepper::Pointer m_Stepper;
91  QTimer *m_Timer;
93 
94 private slots:
95  virtual void next();
96 };
97 
98 #endif
#define MITKQTWIDGETSEXT_EXPORT
Simple widget for movie-style navigation through time steps or slices.
virtual void stopButton_clicked()
Stop the movie playback.
virtual void goButton_clicked()
Start the movie playback (looping through steps).
std::unique_ptr< Ui::QmitkPrimitiveMovieNavigator > m_Controls
virtual void spinBoxValueChanged(int value)
Handle spin box value changes by updating the stepper position.
QmitkPrimitiveMovieNavigatorWidget(QWidget *parent=nullptr, Qt::WindowFlags fl={})
Construct the movie navigator widget.
~QmitkPrimitiveMovieNavigatorWidget() override
Destructor.
virtual int getTimerInterval()
Get the current timer interval.
virtual void SetStepper(mitk::Stepper *stepper)
Set the stepper to drive.
virtual void setTimerInterval(int timerIntervalInMS)
Set the timer interval for playback speed.
virtual void Refetch()
Refresh the spin box range and value from the stepper.
Helper class to step through a list.
Definition: mitkStepper.h:48