Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkBinaryThresholdToolGUI.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 QmitkBinaryThresholdToolGUI_h_Included
14 #define QmitkBinaryThresholdToolGUI_h_Included
15 
16 #include "QmitkToolGUI.h"
19 
20 #include <QDoubleSpinBox>
21 
22 class QSlider;
37 {
38  Q_OBJECT
39 
40 public:
42  itkFactorylessNewMacro(Self);
43  itkCloneMacro(Self);
44 
45  void OnThresholdingIntervalBordersChanged(double lower, double upper, bool isFloat);
46  void OnThresholdingValueChanged(double current);
47 
48 signals:
49 
51  void thresholdAccepted();
52 
54  void thresholdCanceled();
55 
56 public slots:
57 
58 protected slots:
59 
60  void OnNewToolAssociated(mitk::Tool *);
61  void OnAcceptThresholdPreview();
62 
64  void OnSpinnerValueChanged();
65 
67  void OnSliderValueChanged(int value);
68 
69 protected:
71  ~QmitkBinaryThresholdToolGUI() override;
72 
74  double SliderIntToDouble(int val);
75 
77  int DoubleToSliderInt(double val);
78 
79  QSlider *m_Slider;
80  QDoubleSpinBox *m_Spinner;
81 
83  bool m_isFloat;
84 
85  double m_RangeMin;
86  double m_RangeMax;
87  double m_Range;
88 
90  bool m_ChangingSlider, m_ChangingSpinner;
91 
93 };
94 
95 #endif
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:86
bool m_isFloat
is image float or int?
mitk::BinaryThresholdTool::Pointer m_BinaryThresholdTool
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Base class for GUIs belonging to mitk::Tool classes.
Definition: QmitkToolGUI.h:32
GUI for mitk::BinaryThresholdTool.
#define MITKSEGMENTATIONUI_EXPORT