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);
cxResource_EXPORT ProfilePtr profile()
QDomElement getElement()
return the current element
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class Filter > FilterPtr
boost::shared_ptr< FilterGroup > FilterGroupPtr
boost::shared_ptr< class RegServices > RegServicesPtr
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
Namespace for all CustusX production code.