35 #include <QVBoxLayout>
36 #include <QPushButton>
37 #include <QTableWidget>
38 #include <QTableWidgetItem>
39 #include <QHeaderView>
42 #include <QGridLayout>
44 #include <vtkDoubleArray.h>
62 LandmarkPatientRegistrationWidget::LandmarkPatientRegistrationWidget(
RegServices services,
63 QWidget* parent, QString objectName, QString windowTitle) :
99 QHBoxLayout* buttonsLayout =
new QHBoxLayout;
114 "<h3>Landmark based patient registration.</h3>"
115 "<p>Sample points on the patient that corresponds to 3 or more landmarks already sampled in the data set. </p>"
116 "<p><i>Point on the patient using a tool and click the Sample button.</i></p>"
117 "<p>Landmark patient registration will move the patient into the global coordinate system (r).</p>"
121 void LandmarkPatientRegistrationWidget::globalConfigurationFileChangedSlot(QString key)
123 if (key ==
"giveManualToolPhysicalProperties")
141 bool enabled =
false;
162 Vector3D p_pr = lastTransform_prMt.coord(
Vector3D(0, 0, tool->getTooltipOffset()));
190 rep->setSecondaryColor(QColor::fromRgbF(0, 0.6, 0.8));
QString qstring_cast(const T &val)
void reportError(QString msg)
static ImageLandmarksSourcePtr New()
One landmark, or fiducial, coordinate.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
void fixedDataChanged(QString uid)
void valueChangedFor(QString key)
static PatientLandmarksSourcePtr New(PatientModelServicePtr dataManager)
void setPrimarySource(LandmarksSourcePtr primary)
Settings * settings()
Shortcut for accessing the settings instance.
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
VisualizationServicePtr visualizationService
boost::shared_ptr< LandmarksSource > LandmarksSourcePtr
std::map< QString, class Landmark > LandmarkMap
TrackingServicePtr trackingService
PatientModelServicePtr patientModelService
boost::shared_ptr< class LandmarkRep > LandmarkRepPtr
RegistrationServicePtr registrationService
boost::shared_ptr< class Tool > ToolPtr