13 #include <QPushButton> 18 #include <vtkCellArray.h> 40 QHBoxLayout * buttonLayout =
new QHBoxLayout;
42 mRegisterButton =
new QPushButton(
"Register");
43 mRegisterButton->setEnabled(
false);
45 buttonLayout->addWidget(mRegisterButton, 1, 0);
47 mMetricValue =
new QLineEdit(
this);
48 mMetricValue->setReadOnly(
true);
49 mMetricValue->setToolTip(
"Current RMS deviation between data sets");
50 buttonLayout->addWidget(mMetricValue);
53 QIcon(
":/icons/open_icon_library/system-run-5.png"),
55 "Options for controlling ICP algorithm",
57 mVesselRegOptionsButton->setCheckable(
true);
60 mOptionsWidget =
new QWidget(
this);
61 mVesselRegOptionsWidget = this->
wrapInGroupBox(mOptionsWidget,
"ICP options");
62 connect(mVesselRegOptionsButton, &QAction::toggled, mVesselRegOptionsWidget, &QWidget::setVisible);
64 QVBoxLayout* layout =
new QVBoxLayout(
this);
65 layout->addLayout(buttonLayout);
66 layout->addWidget(mVesselRegOptionsWidget);
77 QGridLayout* layout =
new QGridLayout(mOptionsWidget);
80 for (
unsigned i=0; i< properties.size(); ++i)
86 mRegisterButton->setEnabled(on);
87 mVesselRegOptionsButton->setEnabled(
true);
88 mVesselRegOptionsWidget->setVisible(mVesselRegOptionsButton->isChecked());
95 mMetricValue->setText(QString(
"%1mm").arg(val, 0,
'f', 3));
Namespace for all CustusX production code.