NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkMorphologicalSegmentorGUI.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 niftkMorphologicalSegmentorGUI_h
16 #define niftkMorphologicalSegmentorGUI_h
17 
18 #include "ui_niftkMorphologicalSegmentorWidget.h"
19 #include "niftkBaseSegmentorGUI.h"
20 
22 
23 class QAbstractButton;
24 
25 namespace niftk
26 {
27 
32  : public BaseSegmentorGUI,
33  private Ui_niftkMorphologicalSegmentorWidget
34 {
35  Q_OBJECT
36 
37 public:
38 
40  MorphologicalSegmentorGUI(QWidget* parent = nullptr);
41 
44 
47  virtual void EnableSegmentationWidgets(bool enabled) override;
48 
50  int GetTabIndex() const;
51 
54  void SetTabIndex(int tabIndex);
55 
57  void SetEnabled(bool enabled);
58 
60  void SetControlsByReferenceImage(double lowestValue, double highestValue, int numberOfAxialSlices, int upDirection);
61 
64 
65 signals:
66 
67  void ThresholdingValuesChanged(double lowerThreshold, double upperThreshold, int axialSlicerNumber);
68  void ErosionsValuesChanged(double upperThreshold, int numberOfErosions);
69  void DilationsValuesChanged(double lowerPercentage, double upperPercentage, int numberOfDilations);
70  void RethresholdingValuesChanged(int boxSize);
71  void TabChanged(int tabIndex);
72  void OKButtonClicked();
73  void CancelButtonClicked();
74  void RestartButtonClicked();
75 
76 protected slots:
77 
81  void OnBackButtonClicked();
82  void OnNextButtonClicked();
90 
91 private:
92 
93  void EmitThresholdingValues();
94  void EmitErosionValues();
95  void EmitDilationValues();
96  void EmitRethresholdingValues();
97 
98 };
99 
100 }
101 
102 #endif
void OnAxialCutOffSliderChanged()
Definition: niftkMorphologicalSegmentorGUI.cxx:342
void SetTabIndex(int tabIndex)
Set the current tab index. No TabChanged(int) signal is emitted.
Definition: niftkMorphologicalSegmentorGUI.cxx:262
virtual ~MorphologicalSegmentorGUI()
Destructor.
Definition: niftkMorphologicalSegmentorGUI.cxx:138
GLenum GLsizei const GLuint GLboolean enabled
Definition: glew.h:2537
void OnRestartButtonClicked()
Definition: niftkMorphologicalSegmentorGUI.cxx:453
void ErosionsValuesChanged(double upperThreshold, int numberOfErosions)
const GLfloat * params
Definition: glew.h:1515
Implements a few Qt specific things that are of no interest to the MITK view class.
Definition: niftkMorphologicalSegmentorGUI.h:31
void SetEnabled(bool enabled)
Enables/disables all controls.
Definition: niftkMorphologicalSegmentorGUI.cxx:144
virtual void EnableSegmentationWidgets(bool enabled) override
Method to enable to turn widgets off/on.
Definition: niftkMorphologicalSegmentorGUI.cxx:162
void OnDilationsLowerThresholdChanged()
Definition: niftkMorphologicalSegmentorGUI.cxx:409
void OnDilationsIterationsChanged()
Definition: niftkMorphologicalSegmentorGUI.cxx:439
void OnThresholdLowerValueChanged()
Definition: niftkMorphologicalSegmentorGUI.cxx:312
void OnErosionsIterationsChanged()
Definition: niftkMorphologicalSegmentorGUI.cxx:395
void RethresholdingValuesChanged(int boxSize)
void OnRethresholdingSliderChanged()
Definition: niftkMorphologicalSegmentorGUI.cxx:446
MorphologicalSegmentorGUI(QWidget *parent=nullptr)
Constructor.
Definition: niftkMorphologicalSegmentorGUI.cxx:23
int GetTabIndex() const
Get the current tab index.
Definition: niftkMorphologicalSegmentorGUI.cxx:255
void OnErosionsUpperThresholdChanged()
Definition: niftkMorphologicalSegmentorGUI.cxx:402
Base class for GUI controls on MIDAS segmentor views.
Definition: niftkBaseSegmentorGUI.h:36
void OnNextButtonClicked()
Definition: niftkMorphologicalSegmentorGUI.cxx:363
The parameters for the MorphologicalSegmentorPipeline, which closely resemble the GUI controls...
Definition: MorphologicalSegmentorPipelineParams.h:25
void DilationsValuesChanged(double lowerPercentage, double upperPercentage, int numberOfDilations)
void OnThresholdUpperValueChanged()
Definition: niftkMorphologicalSegmentorGUI.cxx:327
void OnBackButtonClicked()
Definition: niftkMorphologicalSegmentorGUI.cxx:349
Definition: niftkExceptionObject.h:21
void SetControlsByPipelineParams(MorphologicalSegmentorPipelineParams &params)
Set the dialog according to current parameter values.
Definition: niftkMorphologicalSegmentorGUI.cxx:231
void OnDilationsUpperThresholdChanged()
Definition: niftkMorphologicalSegmentorGUI.cxx:424
void ThresholdingValuesChanged(double lowerThreshold, double upperThreshold, int axialSlicerNumber)
void SetControlsByReferenceImage(double lowestValue, double highestValue, int numberOfAxialSlices, int upDirection)
Set the dialog according to relevant image data.
Definition: niftkMorphologicalSegmentorGUI.cxx:173