35 #include <QVBoxLayout>
36 #include <QPushButton>
57 RegistrationBaseWidget(services, parent,
"org_custusx_registration_method_vessel_prepare_widget",
"PrepareVesselsWidget")
59 this->setToolTip(
"Prepare data for vessel I2I registration");
61 XmlOptionFile options =
profile()->getXmlSettings().descend(
"registration").descend(
"PrepareVesselsWidget");
73 mPipeline->setOption(
"Color", QVariant(QColor(
"red")));
75 mLayout =
new QVBoxLayout(
this);
81 "Color of all generated data.",
83 connect(
mColorProperty.get(), SIGNAL(changed()),
this, SLOT(setColorSlot()));
85 QPushButton* fixedButton =
new QPushButton(
"Set as Fixed");
86 fixedButton->setToolTip(
"Set output of centerline generation as the Fixed Data in Registration");
87 connect(fixedButton, SIGNAL(clicked()),
this, SLOT(toFixedSlot()));
88 QPushButton* movingButton =
new QPushButton(
"Set as Moving");
89 movingButton->setToolTip(
"Set output of centerline generation as the Moving Data in Registration");
90 connect(movingButton, SIGNAL(clicked()),
this, SLOT(toMovingSlot()));
92 QLayout* buttonsLayout =
new QHBoxLayout;
93 buttonsLayout->addWidget(fixedButton);
94 buttonsLayout->addWidget(movingButton);
99 mLayout->addLayout(buttonsLayout);
102 this->setColorSlot();
106 void PrepareVesselsWidget::setColorSlot()
111 void PrepareVesselsWidget::toMovingSlot()
115 mServices->registration()->setMovingData(data);
118 void PrepareVesselsWidget::toFixedSlot()
122 mServices->registration()->setFixedData(data);
cxResource_EXPORT ProfilePtr profile()
boost::shared_ptr< class RegServices > RegServicesPtr
QDomElement getElement()
return the current element
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class Filter > FilterPtr
boost::shared_ptr< FilterGroup > FilterGroupPtr
static ColorPropertyPtr initialize(const QString &uid, QString name, QString help, QColor value, QDomNode root=QDomNode())
Helper class for xml files used to store ssc/cx data.
XmlOptionFile descend(QString element) const
step one level down in the xml tree