11 #ifndef CXLANDMARKREGISTRATIONWIDGET_H_
12 #define CXLANDMARKREGISTRATIONWIDGET_H_
14 #include "org_custusx_registration_method_landmarkExport.h"
27 class QTableWidgetItem;
51 QString windowTitle,
bool showAccuracy =
true);
55 virtual void cellClickedSlot(
int row,
int column);
57 void cellChangedSlot(
int row,
int column);
58 void landmarkUpdatedSlot();
59 void updateAverageAccuracyLabel();
60 void mouseClickSampleStateChanged();
64 virtual void showEvent(QShowEvent* event);
65 virtual void hideEvent(QHideEvent* event);
66 virtual void prePaintEvent();
68 virtual void performRegistration() = 0;
70 virtual void setTargetLandmark(QString uid,
Vector3D p_target) = 0;
71 virtual QString getTargetName()
const = 0;
72 void setManualToolPosition(
Vector3D p_r);
73 QString getNextLandmark();
74 void activateLandmark(QString uid);
75 void selectFirstLandmarkIfUnselected();
77 std::vector<Landmark> getAllLandmarks()
const;
78 QString getLandmarkName(QString uid);
79 double getAccuracy(QString uid);
80 double getAverageAccuracy();
81 QTableWidgetItem * getLandmarkTableItem();
97 bool isAverageAccuracyValid();
98 double getAverageAccuracy(
int &numActiveLandmarks);