35 #include <QVBoxLayout>
36 #include <QPushButton>
57 RegistrationBaseWidget(services, parent,
"org_custusx_registration_method_vessel_prepare_widget",
"PrepareVesselsWidget")
60 this->setToolTip(
"Prepare data for vessel I2I registration");
62 XmlOptionFile options =
profile()->getXmlSettings().descend(
"registration").descend(
"PrepareVesselsWidget");
74 mPipeline->setOption(
"Color", QVariant(QColor(
"red")));
76 mLayout =
new QVBoxLayout(
this);
82 "Color of all generated data.",
84 connect(
mColorProperty.get(), SIGNAL(changed()),
this, SLOT(setColorSlot()));
86 QPushButton* fixedButton =
new QPushButton(
"Set as Fixed");
87 fixedButton->setToolTip(
"Set output of centerline generation as the Fixed Volume in Registration");
88 connect(fixedButton, SIGNAL(clicked()),
this, SLOT(toFixedSlot()));
89 QPushButton* movingButton =
new QPushButton(
"Set as Moving");
90 movingButton->setToolTip(
"Set output of centerline generation as the Moving Volume in Registration");
91 connect(movingButton, SIGNAL(clicked()),
this, SLOT(toMovingSlot()));
93 QLayout* buttonsLayout =
new QHBoxLayout;
94 buttonsLayout->addWidget(fixedButton);
95 buttonsLayout->addWidget(movingButton);
100 mLayout->addLayout(buttonsLayout);
103 this->setColorSlot();
107 void PrepareVesselsWidget::setColorSlot()
112 void PrepareVesselsWidget::toMovingSlot()
119 void PrepareVesselsWidget::toFixedSlot()
cxResource_EXPORT ProfilePtr profile()
boost::shared_ptr< class VisServices > VisServicesPtr
QDomElement getElement()
return the current element
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class Filter > FilterPtr
boost::shared_ptr< FilterGroup > FilterGroupPtr
VisualizationServicePtr visualizationService
static ColorPropertyPtr initialize(const QString &uid, QString name, QString help, QColor value, QDomNode root=QDomNode())
PatientModelServicePtr patientModelService
Helper class for xml files used to store ssc/cx data.
RegistrationServicePtr registrationService
XmlOptionFile descend(QString element) const
step one level down in the xml tree