14 #include <QVBoxLayout>
15 #include <QPushButton>
36 RegistrationBaseWidget(services, parent,
"org_custusx_registration_method_vessel_prepare_widget",
"PrepareVesselsWidget")
38 this->setToolTip(
"Prepare data for vessel I2I registration");
40 XmlOptionFile options =
profile()->getXmlSettings().descend(
"registration").descend(
"PrepareVesselsWidget");
52 mPipeline->setOption(
"Color", QVariant(QColor(
"red")));
54 mLayout =
new QVBoxLayout(
this);
60 "Color of all generated data.",
62 connect(
mColorProperty.get(), SIGNAL(changed()),
this, SLOT(setColorSlot()));
64 QPushButton* fixedButton =
new QPushButton(
"Set as Fixed");
65 fixedButton->setToolTip(
"Set output of centerline generation as the Fixed Data in Registration");
66 connect(fixedButton, SIGNAL(clicked()),
this, SLOT(toFixedSlot()));
67 QPushButton* movingButton =
new QPushButton(
"Set as Moving");
68 movingButton->setToolTip(
"Set output of centerline generation as the Moving Data in Registration");
69 connect(movingButton, SIGNAL(clicked()),
this, SLOT(toMovingSlot()));
71 QLayout* buttonsLayout =
new QHBoxLayout;
72 buttonsLayout->addWidget(fixedButton);
73 buttonsLayout->addWidget(movingButton);
78 mLayout->addLayout(buttonsLayout);
85 void PrepareVesselsWidget::setColorSlot()
90 void PrepareVesselsWidget::toMovingSlot()
94 mServices->registration()->setMovingData(data);
97 void PrepareVesselsWidget::toFixedSlot()
101 mServices->registration()->setFixedData(data);