20 #include <QPushButton>
21 #include <QFormLayout>
24 #include <QRadioButton>
25 #include <QMessageBox>
26 #include <QDoubleSpinBox>
32 : m_MainControl(nullptr)
33 , m_Initializing(false)
57 auto formLayout =
new QFormLayout;
58 formLayout->setHorizontalSpacing(8);
59 formLayout->setVerticalSpacing(24);
64 auto displayOptionsLayout =
new QVBoxLayout;
69 formLayout->addRow(
"2D display", displayOptionsLayout );
75 auto surfaceLayout =
new QFormLayout;
76 surfaceLayout->setSpacing(8);
86 m_SmoothingSpinBox->setToolTip(
"The Smoothing value is used as variance for a gaussian blur.");
94 m_DecimationSpinBox->setToolTip(
"Valid range is [0, 1). High values increase decimation, especially when very close to 1. A value of 0 disables decimation.");
102 m_ClosingSpinBox->setToolTip(
"Valid range is [0, 1]. Higher values increase closing. A value of 0 disables closing.");
106 m_SelectionModeCheckBox->setToolTip(
"If checked the segmentation plugin ensures that only one segmentation and the according greyvalue image are visible at one time.");
109 formLayout->addRow(
"Smoothed surface creation", surfaceLayout);
178 if ( state != Qt::Unchecked )
180 QMessageBox::information(
nullptr,
182 "Turning on volume rendering of segmentations will make the application more memory intensive (and potentially prone to crashes).\n\n"
183 "If you encounter out-of-memory problems, try turning off volume rendering again.");
189 if (state != Qt::Unchecked)
void CreateQtControl(QWidget *widget) override
QCheckBox * m_VolumeRenderingCheckBox
void Init(berry::IWorkbench::Pointer workbench) override
QWidget * GetQtControl() const override
QDoubleSpinBox * m_DecimationSpinBox
QRadioButton * m_RadioOutline
virtual SmartPointer< IPreferences > GetSystemPreferences()=0
berry::IPreferences::Pointer m_SegmentationPreferencesNode
void OnSmoothingCheckboxChecked(int)
void OnVolumeRenderingCheckboxChecked(int)
QDoubleSpinBox * m_ClosingSpinBox
~QmitkSegmentationPreferencePage()
QCheckBox * m_SlimViewCheckBox
QmitkSegmentationPreferencePage()
virtual bool PerformOk() override
QRadioButton * m_RadioOverlay
QDoubleSpinBox * m_SmoothingSpinBox
QCheckBox * m_SmoothingCheckBox
virtual void PerformCancel() override
virtual void Update() override
QCheckBox * m_SelectionModeCheckBox