14 #include <QPushButton> 15 #include <QTableWidget> 35 QWidget* parent, QString objectName, QString windowTitle) :
37 mToolSampleButton(new QPushButton(
"Sample Tool", this))
71 void PatientLandMarksWidget::globalConfigurationFileChangedSlot(QString key)
73 if (key ==
"giveManualToolPhysicalProperties")
81 bool enabled = tool && tool->getVisible() && (!tool->hasType(
Tool::TOOL_MANUAL) ||
settings()->
value(
"giveManualToolPhysicalProperties").toBool());
84 if (
mServices->tracking()->getActiveTool())
101 Vector3D p_pr = lastTransform_prMt.coord(
Vector3D(0, 0, tool->getTooltipOffset()));
117 mServices->view()->setRegistrationMode(rsPATIENT_REGISTRATED);
153 return mServices->patient()->getPatientLandmarks()->getLandmarks();
167 mServices->patient()->getPatientLandmarks()->setLandmark(
Landmark(uid, p_target));
174 if (!
mServices->registration()->getFixedData())
175 mServices->registration()->setFixedData(activeData->getActive<
Image>());
177 if (
mServices->patient()->getPatientLandmarks()->getLandmarks().size() < 3)
180 mServices->registration()->doPatientRegistration();
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