35 #include <QPushButton> 36 #include <QTableWidget> 56 QWidget* parent, QString objectName, QString windowTitle) :
58 mToolSampleButton(new QPushButton(
"Sample Tool", this))
92 void PatientLandMarksWidget::globalConfigurationFileChangedSlot(QString key)
94 if (key ==
"giveManualToolPhysicalProperties")
102 bool enabled = tool && tool->getVisible() && (!tool->hasType(
Tool::TOOL_MANUAL) ||
settings()->
value(
"giveManualToolPhysicalProperties").toBool());
105 if (
mServices->tracking()->getActiveTool())
122 Vector3D p_pr = lastTransform_prMt.coord(
Vector3D(0, 0, tool->getTooltipOffset()));
138 mServices->view()->setRegistrationMode(rsPATIENT_REGISTRATED);
174 return mServices->patient()->getPatientLandmarks()->getLandmarks();
188 mServices->patient()->getPatientLandmarks()->setLandmark(
Landmark(uid, p_target));
195 if (!
mServices->registration()->getFixedData())
196 mServices->registration()->setFixedData(activeData->getActive<
Image>());
198 if (
mServices->patient()->getPatientLandmarks()->getLandmarks().size() < 3)
201 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