Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkLevelWindowRangeChangeDialog.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 QmitkLevelWindowRangeChangeDialog_h
14 #define QmitkLevelWindowRangeChangeDialog_h
15 
16 #include <MitkQtWidgetsExports.h>
17 
18 #include <QDialog>
19 #include <memory>
20 
21 namespace Ui
22 {
23  class QmitkLevelWindowRangeChange;
24 }
25 
35 {
36  Q_OBJECT
37 
38 public:
43  QmitkLevelWindowRangeChangeDialog(QWidget *parent = nullptr, Qt::WindowFlags f = {});
45 
49  double getLowerLimit();
50 
54  double getUpperLimit();
55 
59  void setLowerLimit(double rangeMin);
60 
64  void setUpperLimit(double rangeMax);
65 
66 protected slots:
67 
69 
70 private:
71  std::unique_ptr<Ui::QmitkLevelWindowRangeChange> m_Controls;
72 };
73 
74 #endif
#define MITKQTWIDGETS_EXPORT
Dialog for changing the level window range limits.
void setLowerLimit(double rangeMin)
Set the initial lower range limit shown in the dialog.
void setUpperLimit(double rangeMax)
Set the initial upper range limit shown in the dialog.
double getUpperLimit()
Get the upper range limit entered by the user.
double getLowerLimit()
Get the lower range limit entered by the user.
QmitkLevelWindowRangeChangeDialog(QWidget *parent=nullptr, Qt::WindowFlags f={})
Construct the range change dialog.