46 BaseWidget(parent,
"ToolManualCalibrationWidget",
"Tool Manual Calibrate"),
50 QVBoxLayout* mToptopLayout =
new QVBoxLayout(
this);
53 this->setToolTip(
"Edit tool calibration matrix sMt");
57 mToptopLayout->addWidget(
new QLabel(
"<font color=red>Caution: sMt is changed directly by this control.</font>"));
58 mGroup =
new QGroupBox(
this);
59 mGroup->setTitle(
"Calibration matrix sMt");
60 mToptopLayout->addWidget(mGroup);
61 QVBoxLayout* groupLayout =
new QVBoxLayout;
62 mGroup->setLayout(groupLayout);
63 groupLayout->setMargin(0);
65 groupLayout->addWidget(mMatrixWidget);
66 connect(mMatrixWidget, SIGNAL(changed()),
this, SLOT(matrixWidgetChanged()));
67 connect(mTool.get(), SIGNAL(changed()),
this, SLOT(toolCalibrationChanged()));
69 this->toolCalibrationChanged();
72 mToptopLayout->addStretch();
77 void ToolManualCalibrationWidget::toolCalibrationChanged()
79 ToolPtr tool = mTool->getTool();
83 mMatrixWidget->blockSignals(
true);
84 mMatrixWidget->
setMatrix(tool->getCalibration_sMt());
85 mMatrixWidget->blockSignals(
false);
88 void ToolManualCalibrationWidget::matrixWidgetChanged()
90 ToolPtr tool = mTool->getTool();
95 tool->setCalibration_sMt(M);
boost::shared_ptr< class VisServices > VisServicesPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class Tool > ToolPtr