Medical Imaging Interaction Toolkit  2024.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkStepperAdapter.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 QmitkStepperAdapter_h
14 #define QmitkStepperAdapter_h
15 
16 #include "MitkQtWidgetsExports.h"
17 #include "mitkStepper.h"
18 #include <QObject>
19 
20 
21 //##Documentation
22 //## @brief Helper class to connect Qt-based navigators to instances of Stepper
23 //##
24 //## The constructor has to be provided with the navigation widget
25 //## that wants to use the Stepper. The navigation widget has to define the
26 //## slots \a Refetch() and \a SetStepper(mitk::Stepper *). \a SetStepper will be
27 //## called only once to pass the Stepper to the navigation widget. When the values of
28 //## the Stepper changes, \a Refetch() will be called. The navigation widget can then
29 //## ask the \a Stepper for its new values.
30 //## \warning The navigation widget has to be aware that it might have caused the changes
31 //## of the \a Stepper itself. So take care that no infinite recursion is created!
33 {
34  Q_OBJECT
35 
36 public:
37 
38  QmitkStepperAdapter(QObject* navigationWidget, mitk::Stepper* stepper);
39  ~QmitkStepperAdapter() override;
40 
41  void SetStepper(mitk::Stepper* stepper);
42 
43 signals:
44 
45  void Refetch();
46  void SendStepper(mitk::Stepper *);
47 
48 protected:
49 
52 
53 };
54 
55 #endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
QmitkStepperAdapter
Helper class to connect Qt-based navigators to instances of Stepper.
Definition: QmitkStepperAdapter.h:32
QmitkStepperAdapter::m_Stepper
mitk::Stepper::Pointer m_Stepper
Definition: QmitkStepperAdapter.h:50
itk::SmartPointer< Self >
mitk::Stepper
Helper class to step through a list.
Definition: mitkStepper.h:47
MitkQtWidgetsExports.h
QmitkStepperAdapter::m_ObserverTag
long m_ObserverTag
Definition: QmitkStepperAdapter.h:51
mitkStepper.h