Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef QmitkSegmentationPreferencePage_h_included
19 #define QmitkSegmentationPreferencePage_h_included
20 
22 #include <berryIPreferences.h>
23 #include "berryIQtPreferencePage.h"
24 
25 class QWidget;
26 class QCheckBox;
27 class QRadioButton;
28 class QDoubleSpinBox;
29 
31 {
32  Q_OBJECT
33  Q_INTERFACES(berry::IPreferencePage)
34 
35 public:
36 
39 
40  void Init(berry::IWorkbench::Pointer workbench) override;
41 
42  void CreateQtControl(QWidget* widget) override;
43 
44  QWidget* GetQtControl() const override;
45 
49  virtual bool PerformOk() override;
50 
54  virtual void PerformCancel() override;
55 
59  virtual void Update() override;
60 
61 protected slots:
62 
63  void OnVolumeRenderingCheckboxChecked(int);
64  void OnSmoothingCheckboxChecked(int);
65 
66 protected:
67 
68  QWidget* m_MainControl;
69  QCheckBox* m_SlimViewCheckBox;
70  QRadioButton* m_RadioOutline;
71  QRadioButton* m_RadioOverlay;
73  QCheckBox* m_SmoothingCheckBox;
74  QDoubleSpinBox* m_SmoothingSpinBox;
75  QDoubleSpinBox* m_DecimationSpinBox;
76  QDoubleSpinBox* m_ClosingSpinBox;
78 
80 
82 };
83 
84 #endif /* QMITKDATAMANAGERPREFERENCEPAGE_H_ */
85 
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