46 BaseWidget(parent,
"ToolManualCalibrationWidget",
"Tool Manual Calibrate"),
50 QVBoxLayout* mToptopLayout =
new QVBoxLayout(
this);
56 mToptopLayout->addWidget(
new QLabel(
"<font color=red>Caution: sMt is changed directly by this control.</font>"));
57 mGroup =
new QGroupBox(
this);
58 mGroup->setTitle(
"Calibration matrix sMt");
59 mToptopLayout->addWidget(mGroup);
60 QVBoxLayout* groupLayout =
new QVBoxLayout;
61 mGroup->setLayout(groupLayout);
62 groupLayout->setMargin(0);
64 groupLayout->addWidget(mMatrixWidget);
65 connect(mMatrixWidget, SIGNAL(changed()),
this, SLOT(matrixWidgetChanged()));
66 connect(mTool.get(), SIGNAL(changed()),
this, SLOT(toolCalibrationChanged()));
68 this->toolCalibrationChanged();
71 mToptopLayout->addStretch();
80 "<h3>Tool Manual Calibration.</h3>"
81 "<p><i>Manipulate the tool calibration matrix sMt directly, using the matrix manipulation interface.</i></br>"
86 void ToolManualCalibrationWidget::toolCalibrationChanged()
88 ToolPtr tool = mTool->getTool();
93 mMatrixWidget->blockSignals(
true);
94 mMatrixWidget->
setMatrix(tool->getCalibration_sMt());
95 mMatrixWidget->blockSignals(
false);
98 void ToolManualCalibrationWidget::matrixWidgetChanged()
100 ToolPtr tool = mTool->getTool();
105 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