Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkSegmentationPreferencePage.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 
14 #ifndef QmitkSegmentationPreferencePage_h_included
15 #define QmitkSegmentationPreferencePage_h_included
16 
18 #include <berryIPreferences.h>
19 #include "berryIQtPreferencePage.h"
20 
21 class QWidget;
22 class QCheckBox;
23 class QRadioButton;
24 class QDoubleSpinBox;
25 
27 {
28  Q_OBJECT
29  Q_INTERFACES(berry::IPreferencePage)
30 
31 public:
32 
35 
36  void Init(berry::IWorkbench::Pointer workbench) override;
37 
38  void CreateQtControl(QWidget* widget) override;
39 
40  QWidget* GetQtControl() const override;
41 
45  bool PerformOk() override;
46 
50  void PerformCancel() override;
51 
55  void Update() override;
56 
57 protected slots:
58 
59  void OnVolumeRenderingCheckboxChecked(int);
60  void OnSmoothingCheckboxChecked(int);
61 
62 protected:
63 
64  QWidget* m_MainControl;
65  QCheckBox* m_SlimViewCheckBox;
66  QRadioButton* m_RadioOutline;
67  QRadioButton* m_RadioOverlay;
69  QCheckBox* m_SmoothingCheckBox;
70  QDoubleSpinBox* m_SmoothingSpinBox;
71  QDoubleSpinBox* m_DecimationSpinBox;
72  QDoubleSpinBox* m_ClosingSpinBox;
74 
76 
78 };
79 
80 #endif /* QMITKDATAMANAGERPREFERENCEPAGE_H_ */
81 
virtual void Init(IWorkbench::Pointer workbench)=0
virtual void Update()=0
virtual bool PerformOk()=0
virtual QWidget * GetQtControl() const =0
berry::IPreferences::Pointer m_SegmentationPreferencesNode
virtual void PerformCancel()=0
virtual void CreateQtControl(QWidget *parent)=0