16 #include <QPushButton> 17 #include <QFormLayout> 20 #include <QRadioButton> 21 #include <QMessageBox> 22 #include <QDoubleSpinBox> 28 : m_MainControl(nullptr)
29 , m_Initializing(false)
54 QVBoxLayout* displayOptionsLayout =
new QVBoxLayout;
60 QFormLayout *formLayout =
new QFormLayout;
61 formLayout->setHorizontalSpacing(8);
62 formLayout->setVerticalSpacing(24);
63 formLayout->addRow(
"2D display", displayOptionsLayout );
69 QFormLayout* surfaceLayout =
new QFormLayout;
70 surfaceLayout->setSpacing(8);
76 m_SmoothingSpinBox->setToolTip(
"The Smoothing value is used as Sigma for a gaussian blur.");
84 m_DecimationSpinBox->setToolTip(
"Valid range is [0, 1). High values increase decimation, especially when very close to 1. A value of 0 disables decimation.");
88 m_SelectionModeCheckBox->setToolTip(
"If checked the segmentation plugin ensures that only one segmentation and the according greyvalue image are visible at one time.");
91 formLayout->addRow(
"Smoothed surface creation", surfaceLayout);
151 if ( state != Qt::Unchecked )
153 QMessageBox::information(
nullptr,
155 "Turning on volume rendering of segmentations will make the application more memory intensive (and potentially prone to crashes).\n\n" 156 "If you encounter out-of-memory problems, try turning off volume rendering again.");
162 if (state != Qt::Unchecked)
QRadioButton * m_RadioOverlay
bool PerformOk() override
QDoubleSpinBox * m_DecimationSpinBox
QCheckBox * m_SelectionModeCheckBox
QmitkMultiLabelSegmentationPreferencePage()
void Init(berry::IWorkbench::Pointer workbench) override
virtual SmartPointer< IPreferences > GetSystemPreferences()=0
void OnSmoothingCheckboxChecked(int)
QRadioButton * m_RadioOutline
~QmitkMultiLabelSegmentationPreferencePage() override
berry::IPreferences::Pointer m_SegmentationPreferencesNode
QDoubleSpinBox * m_SmoothingSpinBox
void CreateQtControl(QWidget *widget) override
QWidget * GetQtControl() const override
void PerformCancel() override
QCheckBox * m_VolumeRenderingCheckBox
void OnVolumeRenderingCheckboxChecked(int)