25 BaseWidget(parent,
"tool_manual_calibration_widget",
"Tool Manual Calibrate"),
29 QVBoxLayout* mToptopLayout =
new QVBoxLayout(
this);
32 this->setToolTip(
"Edit tool calibration matrix sMt");
36 mToptopLayout->addWidget(
new QLabel(
"<font color=red>Caution: sMt is changed directly by this control.</font>"));
37 mGroup =
new QGroupBox(
this);
38 mGroup->setTitle(
"Calibration matrix sMt");
39 mToptopLayout->addWidget(mGroup);
40 QVBoxLayout* groupLayout =
new QVBoxLayout;
41 mGroup->setLayout(groupLayout);
42 groupLayout->setMargin(0);
44 groupLayout->addWidget(mMatrixWidget);
45 connect(mMatrixWidget, SIGNAL(changed()),
this, SLOT(matrixWidgetChanged()));
46 connect(mTool.get(), SIGNAL(changed()),
this, SLOT(toolCalibrationChanged()));
48 this->toolCalibrationChanged();
51 mToptopLayout->addStretch();
56 void ToolManualCalibrationWidget::toolCalibrationChanged()
58 ToolPtr tool = mTool->getTool();
62 mMatrixWidget->blockSignals(
true);
63 mMatrixWidget->
setMatrix(tool->getCalibration_sMt());
64 mMatrixWidget->blockSignals(
false);
67 void ToolManualCalibrationWidget::matrixWidgetChanged()
69 ToolPtr tool = mTool->getTool();
74 tool->setCalibration_sMt(M);
boost::shared_ptr< class VisServices > VisServicesPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr