NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkGeneralSegmentorGUI.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkGeneralSegmentorGUI_h
16 #define niftkGeneralSegmentorGUI_h
17 
18 #include <QWidget>
19 #include "ui_niftkGeneralSegmentorWidget.h"
20 #include "niftkBaseSegmentorGUI.h"
21 
22 namespace niftk
23 {
24 
28  : public BaseSegmentorGUI,
29  private Ui::niftkGeneralSegmentorWidget
30 {
31  Q_OBJECT
32 
33 public:
34 
36  GeneralSegmentorGUI(QWidget *parent);
37 
40 
43  virtual void EnableSegmentationWidgets(bool checked) override;
44 
46  void SetLowerAndUpperIntensityRanges(double lower, double upper);
47 
49  void SetSeedMinAndMaxValues(double min, double max);
50 
52  void SetAllWidgetsEnabled(bool enabled);
53 
55  void SetThresholdingCheckBoxEnabled(bool enabled);
56 
58  void SetThresholdingWidgetsEnabled(bool enabled);
59 
61  void SetOKCancelResetWidgetsEnabled(bool enabled);
62 
64  bool IsThresholdingCheckBoxChecked() const;
65 
67  void SetThresholdingCheckBoxChecked(bool checked);
68 
70  bool IsSeePriorCheckBoxChecked() const;
71 
73  void SetSeePriorCheckBoxChecked(bool checked);
74 
76  bool IsSeeNextCheckBoxChecked() const;
77 
79  void SetSeeNextCheckBoxChecked(bool checked);
80 
82  bool IsRetainMarksCheckBoxChecked() const;
83 
85  void SetRetainMarksCheckBoxChecked(bool checked);
86 
89  double GetLowerThreshold() const;
90 
93  double GetUpperThreshold() const;
94 
95 signals:
96 
97  void CleanButtonClicked();
98  void WipeButtonClicked();
99  void WipePlusButtonClicked();
100  void WipeMinusButtonClicked();
104  void OKButtonClicked();
105  void CancelButtonClicked();
106  void RestartButtonClicked();
107  void ResetButtonClicked();
109  void ThresholdingCheckBoxToggled(bool);
110  void SeePriorCheckBoxToggled(bool);
111  void SeeNextCheckBoxToggled(bool);
112  void ThresholdValueChanged();
113 
114 private:
115 
116  GeneralSegmentorGUI(const GeneralSegmentorGUI&); // Purposefully not implemented.
117  void operator=(const GeneralSegmentorGUI&); // Purposefully not implemented.
118 
119 };
120 
121 }
122 
123 #endif
124 
GLenum GLsizei const GLuint GLboolean enabled
Definition: glew.h:2537
void SetSeeNextCheckBoxChecked(bool checked)
Checks in/out the 'see next' checkbox.
Definition: niftkGeneralSegmentorGUI.cxx:151
void SetSeePriorCheckBoxChecked(bool checked)
Checks in/out the 'see prior' checkbox.
Definition: niftkGeneralSegmentorGUI.cxx:137
GeneralSegmentorGUI(QWidget *parent)
Constructor.
Definition: niftkGeneralSegmentorGUI.cxx:23
bool IsSeeNextCheckBoxChecked() const
Tells if the 'see next' checkbox is checked.
Definition: niftkGeneralSegmentorGUI.cxx:144
Implements the Qt/Widget specific functionality pertaining to the General Segmentor View...
Definition: niftkGeneralSegmentorGUI.h:27
void ThresholdingCheckBoxToggled(bool)
void SetOKCancelResetWidgetsEnabled(bool enabled)
Turns the OK, Cancel and reset buttons on/off.
Definition: niftkGeneralSegmentorGUI.cxx:172
double GetLowerThreshold() const
Returns that lower threshold. The lower threshould is the minimum value of the threshold slider...
Definition: niftkGeneralSegmentorGUI.cxx:220
void SetThresholdingCheckBoxEnabled(bool enabled)
Enable the checkbox that controls all the thresholding widgets.
Definition: niftkGeneralSegmentorGUI.cxx:87
void SetThresholdingCheckBoxChecked(bool checked)
Checks in/out the checkbox that controls all the thresholding widgets.
Definition: niftkGeneralSegmentorGUI.cxx:121
void SetLowerAndUpperIntensityRanges(double lower, double upper)
Sets the min and max values on the lower and upper sliders.
Definition: niftkGeneralSegmentorGUI.cxx:198
void SetThresholdingWidgetsEnabled(bool enabled)
Turns thresholding widgets on/off.
Definition: niftkGeneralSegmentorGUI.cxx:94
Base class for GUI controls on MIDAS segmentor views.
Definition: niftkBaseSegmentorGUI.h:36
void SetAllWidgetsEnabled(bool enabled)
Turns all widgets on/off.
Definition: niftkGeneralSegmentorGUI.cxx:182
bool IsRetainMarksCheckBoxChecked() const
Tells if the 'retain marks' checkbox is checked.
Definition: niftkGeneralSegmentorGUI.cxx:158
bool IsThresholdingCheckBoxChecked() const
Tells if the checkbox that controls all the thresholding widgets is checked in/out.
Definition: niftkGeneralSegmentorGUI.cxx:114
virtual void EnableSegmentationWidgets(bool checked) override
Method to enable to turn widgets off/on.
Definition: niftkGeneralSegmentorGUI.cxx:78
void SeePriorCheckBoxToggled(bool)
void SetSeedMinAndMaxValues(double min, double max)
Sets the seed min and max values on the labels.
Definition: niftkGeneralSegmentorGUI.cxx:206
bool IsSeePriorCheckBoxChecked() const
Tells if the 'see prior' checkbox is checked.
Definition: niftkGeneralSegmentorGUI.cxx:130
~GeneralSegmentorGUI()
Destructor.
Definition: niftkGeneralSegmentorGUI.cxx:72
Definition: niftkExceptionObject.h:21
void SetRetainMarksCheckBoxChecked(bool checked)
Checks in/out the 'retain marks' checkbox.
Definition: niftkGeneralSegmentorGUI.cxx:165
double GetUpperThreshold() const
Returns that upper threshold. The upper threshold is the maximum value of the threshold slider...
Definition: niftkGeneralSegmentorGUI.cxx:227