NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
SurfaceRegViewPreferencePage.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 SurfaceRegViewPreferencePage_h
16 #define SurfaceRegViewPreferencePage_h
17 
18 #include <berryIQtPreferencePage.h>
19 #include <berryIPreferences.h>
20 
21 class QWidget;
22 class QCheckBox;
23 class QSpinBox;
24 
31 class SurfaceRegViewPreferencePage : public QObject, public berry::IQtPreferencePage
32 {
33  Q_OBJECT
34  Q_INTERFACES(berry::IPreferencePage)
35 
36 public:
37 
39  static const QString PREFERENCES_NODE_NAME;
40 
44  static const QString MAXIMUM_NUMBER_OF_ITERATIONS;
45 
49  static const QString MAXIMUM_NUMBER_OF_POINTS;
50 
54  static const QString TLS_ITERATIONS;
55 
59  static const QString TLS_PERCENTAGE;
60 
64 
65  void Init(berry::IWorkbench::Pointer workbench) override;
66 
67  void CreateQtControl(QWidget* widget) override;
68 
69  QWidget* GetQtControl() const override;
70 
74  virtual bool PerformOk() override;
75 
79  virtual void PerformCancel() override;
80 
84  virtual void Update() override;
85 
86 private slots:
87 
88 private:
89 
90  QWidget *m_MainControl;
91  QSpinBox *m_MaximumIterations;
92  QSpinBox *m_MaximumPoints;
93  QSpinBox *m_TLSIterations;
94  QSpinBox *m_TLSPercentage;
95  bool m_Initializing;
96 
97  berry::IPreferences::Pointer m_SurfaceRegViewPreferencesNode;
98 };
99 
100 #endif // SurfaceRegViewPreferencePage_h
101 
void CreateQtControl(QWidget *widget) override
Definition: SurfaceRegViewPreferencePage.cxx:71
static const QString MAXIMUM_NUMBER_OF_ITERATIONS
Stores the name of the preference node that contains the maximum iterations preference.
Definition: SurfaceRegViewPreferencePage.h:44
SurfaceRegViewPreferencePage()
Definition: SurfaceRegViewPreferencePage.cxx:36
static const QString TLS_PERCENTAGE
Stored the name of the preference node that contains the percentage to use in Trimmed Least Squares...
Definition: SurfaceRegViewPreferencePage.h:59
QWidget * GetQtControl() const override
Definition: SurfaceRegViewPreferencePage.cxx:111
virtual void Update() override
Definition: SurfaceRegViewPreferencePage.cxx:137
~SurfaceRegViewPreferencePage()
Definition: SurfaceRegViewPreferencePage.cxx:58
static const QString MAXIMUM_NUMBER_OF_POINTS
Stored the name of the preference node that contains the maximum number of points to use...
Definition: SurfaceRegViewPreferencePage.h:49
static const QString TLS_ITERATIONS
Stored the name of the preference node that contains the maximum number of iterations to use in Trimm...
Definition: SurfaceRegViewPreferencePage.h:54
void Init(berry::IWorkbench::Pointer workbench) override
Definition: SurfaceRegViewPreferencePage.cxx:64
Preferences page for the Surface Based Registration View plugin.
Definition: SurfaceRegViewPreferencePage.h:31
virtual void PerformCancel() override
Definition: SurfaceRegViewPreferencePage.cxx:130
static const QString PREFERENCES_NODE_NAME
Stores the name of the preferences node.
Definition: SurfaceRegViewPreferencePage.h:39
virtual bool PerformOk() override
Definition: SurfaceRegViewPreferencePage.cxx:118