18 #include <qpushbutton.h> 26 QBoxLayout *mainLayout =
new QVBoxLayout(
this);
28 QLabel *label =
new QLabel(
"Threshold :",
this);
29 QFont f = label->font();
32 mainLayout->addWidget(label);
34 QBoxLayout *layout =
new QHBoxLayout();
36 m_DoubleThresholdSlider =
new ctkRangeWidget();
38 m_DoubleThresholdSlider, SIGNAL(valuesChanged(
double,
double)),
this, SLOT(OnThresholdsChanged(
double,
double)));
39 layout->addWidget(m_DoubleThresholdSlider);
40 mainLayout->addLayout(layout);
41 m_DoubleThresholdSlider->setSingleStep(0.01);
43 QPushButton *okButton =
new QPushButton(
"Confirm Segmentation",
this);
44 connect(okButton, SIGNAL(clicked()),
this, SLOT(OnAcceptThresholdPreview()));
46 mainLayout->addWidget(okButton);
48 connect(
this, SIGNAL(NewToolAssociated(
mitk::Tool *)),
this, SLOT(OnNewToolAssociated(
mitk::Tool *)));
79 if (m_BinaryThresholdULTool.IsNotNull())
81 m_BinaryThresholdULTool->IntervalBordersChanged +=
84 m_BinaryThresholdULTool->ThresholdingValuesChanged +=
96 int result = dialog.exec();
void SetSegmentationName(QString name)
#define MITKSEGMENTATIONUI_EXPORT