13 #include <boost/bind.hpp>
14 #include <ctkPluginContext.h>
26 mVerticalLayout(new QVBoxLayout(this)),
29 this->setToolTip(
"Set image position directly");
31 mLabel =
new QLabel(
"Data matrix rMd");
35 connect(mMatrixWidget, SIGNAL(changed()),
this, SLOT(matrixWidgetChanged()));
40 connect(
mServices->registration().get(), SIGNAL(movingDataChanged(QString)),
this, SLOT(movingDataChanged()));
45 this->imageMatrixChanged();
46 this->movingDataChanged();
52 void ManualImageRegistrationWidget::movingDataChanged()
55 disconnect(
mConnectedMovingImage.get(), SIGNAL(transformChanged()),
this, SLOT(imageMatrixChanged()));
62 mLabel->setText(this->getDescription());
65 this->imageMatrixChanged();
72 void ManualImageRegistrationWidget::matrixWidgetChanged()
76 this->setMatrixFromWidget(mMatrixWidget->
getMatrix());
82 void ManualImageRegistrationWidget::imageMatrixChanged()
84 mMatrixWidget->blockSignals(
true);
86 mMatrixWidget->
setMatrix(this->getMatrixFromBackend());
88 mMatrixWidget->
setMatrix(Transform3D::Identity());
89 mMatrixWidget->blockSignals(
false);