20 #include <QPushButton>
21 #include <QFormLayout>
24 #include <QRadioButton>
25 #include <QMessageBox>
26 #include <QDoubleSpinBox>
33 , m_Initializing(false)
58 QVBoxLayout* displayOptionsLayout =
new QVBoxLayout;
64 QFormLayout *formLayout =
new QFormLayout;
65 formLayout->setHorizontalSpacing(8);
66 formLayout->setVerticalSpacing(24);
67 formLayout->addRow(
"2D display", displayOptionsLayout );
73 QFormLayout* surfaceLayout =
new QFormLayout;
74 surfaceLayout->setSpacing(8);
80 m_SmoothingSpinBox->setToolTip(
"The Smoothing value is used as Sigma for a gaussian blur.");
88 m_DecimationSpinBox->setToolTip(
"Valid range is [0, 1). High values increase decimation, especially when very close to 1. A value of 0 disables decimation.");
92 m_SelectionModeCheckBox->setToolTip(
"If checked the segmentation plugin ensures that only one segmentation and the according greyvalue image are visible at one time.");
95 formLayout->addRow(
"Smoothed surface creation", surfaceLayout);
155 if ( state != Qt::Unchecked )
157 QMessageBox::information(NULL,
159 "Turning on volume rendering of segmentations will make the application more memory intensive (and potentially prone to crashes).\n\n"
160 "If you encounter out-of-memory problems, try turning off volume rendering again.");
166 if (state != Qt::Unchecked)
QRadioButton * m_RadioOverlay
QDoubleSpinBox * m_DecimationSpinBox
QCheckBox * m_SelectionModeCheckBox
QmitkMultiLabelSegmentationPreferencePage()
virtual SmartPointer< IPreferences > GetSystemPreferences()=0
void OnSmoothingCheckboxChecked(int)
void Init(berry::IWorkbench::Pointer workbench)
QRadioButton * m_RadioOutline
berry::IPreferences::Pointer m_SegmentationPreferencesNode
QDoubleSpinBox * m_SmoothingSpinBox
QCheckBox * m_VolumeRenderingCheckBox
~QmitkMultiLabelSegmentationPreferencePage()
void CreateQtControl(QWidget *widget)
QWidget * GetQtControl() const
void OnVolumeRenderingCheckboxChecked(int)
virtual void PerformCancel()