16 #include <QPushButton> 17 #include <QFormLayout> 20 #include <QRadioButton> 21 #include <QMessageBox> 22 #include <QDoubleSpinBox> 28 : m_MainControl(nullptr)
29 , m_Initializing(false)
53 auto formLayout =
new QFormLayout;
54 formLayout->setHorizontalSpacing(8);
55 formLayout->setVerticalSpacing(24);
60 auto displayOptionsLayout =
new QVBoxLayout;
65 formLayout->addRow(
"2D display", displayOptionsLayout );
71 auto surfaceLayout =
new QFormLayout;
72 surfaceLayout->setSpacing(8);
82 m_SmoothingSpinBox->setToolTip(
"The Smoothing value is used as variance for a gaussian blur.");
90 m_DecimationSpinBox->setToolTip(
"Valid range is [0, 1). High values increase decimation, especially when very close to 1. A value of 0 disables decimation.");
98 m_ClosingSpinBox->setToolTip(
"Valid range is [0, 1]. Higher values increase closing. A value of 0 disables closing.");
102 m_SelectionModeCheckBox->setToolTip(
"If checked the segmentation plugin ensures that only one segmentation and the according greyvalue image are visible at one time.");
105 formLayout->addRow(
"Smoothed surface creation", surfaceLayout);
174 if ( state != Qt::Unchecked )
176 QMessageBox::information(
nullptr,
178 "Turning on volume rendering of segmentations will make the application more memory intensive (and potentially prone to crashes).\n\n" 179 "If you encounter out-of-memory problems, try turning off volume rendering again.");
185 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
~QmitkSegmentationPreferencePage() override
void OnSmoothingCheckboxChecked(int)
void OnVolumeRenderingCheckboxChecked(int)
QDoubleSpinBox * m_ClosingSpinBox
QCheckBox * m_SlimViewCheckBox
QmitkSegmentationPreferencePage()
bool PerformOk() override
QRadioButton * m_RadioOverlay
QDoubleSpinBox * m_SmoothingSpinBox
QCheckBox * m_SmoothingCheckBox
void PerformCancel() override
QCheckBox * m_SelectionModeCheckBox