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);
QString qstring_cast(const T &val)
void reportError(QString msg)
One landmark, or fiducial, coordinate.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class ActiveData > ActiveDataPtr
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
void valueChangedFor(QString key)
boost::shared_ptr< class RegServices > RegServicesPtr
Settings * settings()
Shortcut for accessing the settings instance.
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
std::map< QString, class Landmark > LandmarkMap
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr