|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
14 #include <QPushButton>
15 #include <QTableWidget>
36 QWidget* parent, QString objectName, QString windowTitle) :
38 mToolSampleButton(new QPushButton(
"Sample Tool", this))
78 void PatientLandMarksWidget::globalConfigurationFileChangedSlot(QString key)
80 if (key ==
"giveManualToolPhysicalProperties")
88 bool enabled = tool && tool->getVisible() && (!tool->hasType(
Tool::TOOL_MANUAL) ||
settings()->
value(
"giveManualToolPhysicalProperties").toBool());
91 if (
mServices->tracking()->getActiveTool())
108 Vector3D p_pr = lastTransform_prMt.coord(
Vector3D(0, 0, tool->getTooltipOffset()));
124 mServices->view()->setRegistrationMode(rsPATIENT_REGISTRATED);
161 return mServices->patient()->getPatientLandmarks()->getLandmarks();
175 mServices->patient()->getPatientLandmarks()->setLandmark(
Landmark(uid, p_target));
182 if (!
mServices->registration()->getFixedData())
183 mServices->registration()->setFixedData(activeData->getActive<
Image>());
185 if (
mServices->patient()->getPatientLandmarks()->getLandmarks().size() < 3)
188 mServices->registration()->doPatientRegistration();
203 CX_LOG_WARNING() <<
"PatientLandMarksWidget::pointSampled() Cannot get item from mLandmarkTableWidget";
206 QString uid = item->data(Qt::UserRole).toString();
209 Vector3D p_target = rMtarget.inv().coord(p_r);
void valueChangedFor(QString key)
QString qstring_cast(const T &val)
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
Namespace for all CustusX production code.
std::map< QString, class Landmark > LandmarkMap
One landmark, or fiducial, coordinate.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class RegServices > RegServicesPtr
boost::shared_ptr< class Tool > ToolPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
void reportError(QString msg)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Settings * settings()
Shortcut for accessing the settings instance.