NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
SurfaceExtractorPreferencePage.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 SurfaceExtractorPreferencePage_h
16 #define SurfaceExtractorPreferencePage_h
17 
18 #include <QObject>
19 #include <berryIQtPreferencePage.h>
20 
21 class QWidget;
22 
24 
31 class SurfaceExtractorPreferencePage : public QObject, public berry::IQtPreferencePage
32 {
33  Q_OBJECT
34  Q_INTERFACES(berry::IPreferencePage)
35 
36 public:
37 
40 
41  static const QString GAUSSIAN_SMOOTH_NAME;
42  static const bool GAUSSIAN_SMOOTH_DEFAULT;
43  static const QString GAUSSIAN_STDDEV_NAME;
44  static const double GAUSSIAN_STDDEV_DEFAULT;
45  static const QString THRESHOLD_NAME;
46  static const double THRESHOLD_DEFAULT;
47  static const QString TARGET_REDUCTION_NAME;
48  static const double TARGET_REDUCTION_DEFAULT;
49  static const QString MAX_NUMBER_OF_POLYGONS_NAME;
50  static const long MAX_NUMBER_OF_POLYGONS_DEFAULT;
51 
52  virtual void Init(berry::IWorkbench::Pointer workbench) override;
53 
54  void CreateQtControl(QWidget* widget) override;
55 
56  QWidget* GetQtControl() const override;
57 
61  virtual bool PerformOk() override;
62 
66  virtual void PerformCancel() override;
67 
71  virtual void Update() override;
72 
73 private slots:
74  void on_cbxGaussianSmooth_toggled(bool);
75 
76 private:
77  QWidget* ui;
78  QScopedPointer<SurfaceExtractorPreferencePagePrivate> d_ptr;
79 
80  Q_DECLARE_PRIVATE(SurfaceExtractorPreferencePage);
81  Q_DISABLE_COPY(SurfaceExtractorPreferencePage);
82 };
83 
84 #endif /* _SurfaceExtractorPreferencePage_h */
static const double GAUSSIAN_STDDEV_DEFAULT
Definition: SurfaceExtractorPreferencePage.h:44
static const long MAX_NUMBER_OF_POLYGONS_DEFAULT
Definition: SurfaceExtractorPreferencePage.h:50
Definition: SurfaceExtractorPreferencePage.cxx:28
virtual bool PerformOk() override
Definition: SurfaceExtractorPreferencePage.cxx:148
Preferences page for this plugin, to set defaults for the Surface Extractor view. ...
Definition: SurfaceExtractorPreferencePage.h:31
static const QString MAX_NUMBER_OF_POLYGONS_NAME
Definition: SurfaceExtractorPreferencePage.h:49
static const QString GAUSSIAN_STDDEV_NAME
Definition: SurfaceExtractorPreferencePage.h:43
SurfaceExtractorPreferencePage()
Definition: SurfaceExtractorPreferencePage.cxx:62
static const double TARGET_REDUCTION_DEFAULT
Definition: SurfaceExtractorPreferencePage.h:48
~SurfaceExtractorPreferencePage()
Definition: SurfaceExtractorPreferencePage.cxx:74
static const QString THRESHOLD_NAME
Definition: SurfaceExtractorPreferencePage.h:45
virtual void Init(berry::IWorkbench::Pointer workbench) override
Definition: SurfaceExtractorPreferencePage.cxx:82
static const QString GAUSSIAN_SMOOTH_NAME
Definition: SurfaceExtractorPreferencePage.h:41
QWidget * GetQtControl() const override
Definition: SurfaceExtractorPreferencePage.cxx:143
static const QString TARGET_REDUCTION_NAME
Definition: SurfaceExtractorPreferencePage.h:47
void CreateQtControl(QWidget *widget) override
Definition: SurfaceExtractorPreferencePage.cxx:86
virtual void PerformCancel() override
Definition: SurfaceExtractorPreferencePage.cxx:167
virtual void Update() override
Definition: SurfaceExtractorPreferencePage.cxx:171
static const bool GAUSSIAN_SMOOTH_DEFAULT
Definition: SurfaceExtractorPreferencePage.h:42
static const double THRESHOLD_DEFAULT
Definition: SurfaceExtractorPreferencePage.h:46