34 #include <QPushButton>
39 #include <vtkCellArray.h>
61 QHBoxLayout * buttonLayout =
new QHBoxLayout;
63 mRegisterButton =
new QPushButton(
"Register");
64 mRegisterButton->setEnabled(
false);
66 buttonLayout->addWidget(mRegisterButton, 1, 0);
68 mMetricValue =
new QLineEdit(
this);
69 mMetricValue->setReadOnly(
true);
70 mMetricValue->setToolTip(
"Current RMS deviation between data sets");
71 buttonLayout->addWidget(mMetricValue);
74 QIcon(
":/icons/open_icon_library/system-run-5.png"),
76 "Options for controlling ICP algorithm",
78 mVesselRegOptionsButton->setCheckable(
true);
81 mOptionsWidget =
new QWidget(
this);
82 mVesselRegOptionsWidget = this->
wrapInGroupBox(mOptionsWidget,
"ICP options");
83 connect(mVesselRegOptionsButton, &QAction::toggled, mVesselRegOptionsWidget, &QWidget::setVisible);
85 QVBoxLayout* layout =
new QVBoxLayout(
this);
86 layout->addLayout(buttonLayout);
87 layout->addWidget(mVesselRegOptionsWidget);
98 QGridLayout* layout =
new QGridLayout(mOptionsWidget);
101 for (
unsigned i=0; i< properties.size(); ++i)
107 mRegisterButton->setEnabled(on);
108 mVesselRegOptionsButton->setEnabled(
true);
109 mVesselRegOptionsWidget->setVisible(mVesselRegOptionsButton->isChecked());
116 mMetricValue->setText(QString(
"%1mm").arg(val, 0,
'f', 3));