summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-10-18 18:17:21 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-10-19 14:46:31 +0200
commit88125b68dfae2dd6a913b8b84ae2c5ee0f6682ed (patch)
treec920c091ec776cc9bd57f7302eb27c310ed4a74d /tracker-pt
parent17ff32c097eeb9ad786039c83e6845444957468f (diff)
tracker/pt: simplify state display
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/ftnoir_tracker_pt_dialog.cpp26
1 files changed, 8 insertions, 18 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.cpp b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
index 6d49f1c2..749ea1ff 100644
--- a/tracker-pt/ftnoir_tracker_pt_dialog.cpp
+++ b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
@@ -86,7 +86,7 @@ void TrackerDialog_PT::startstop_trans_calib(bool start)
{
if (start)
{
- qDebug()<<"TrackerDialog:: Starting translation calibration";
+ qDebug() << "pt: starting translation calibration";
calib_timer.start();
trans_calib.reset();
s.t_MH_x = 0;
@@ -96,7 +96,7 @@ void TrackerDialog_PT::startstop_trans_calib(bool start)
else
{
calib_timer.stop();
- qDebug()<<"TrackerDialog:: Stopping translation calibration";
+ qDebug() << "pt: stopping translation calibration";
{
auto tmp = trans_calib.get_estimate();
s.t_MH_x = int(tmp[0]);
@@ -115,26 +115,16 @@ void TrackerDialog_PT::startstop_trans_calib(bool start)
));
}
-void TrackerDialog_PT::poll_tracker_info()
+void TrackerDialog_PT::poll_tracker_info_impl()
{
CamInfo info;
if (tracker && tracker->get_cam_info(&info))
{
- QString to_print;
- {
- // display caminfo
- to_print = QString::number(info.res_x)+"x"+QString::number(info.res_y)+" @ "+QString::number(info.fps)+" FPS";
- }
- ui.caminfo_label->setText(to_print);
-
- // display pointinfo
- int n_points = tracker->get_n_points();
- to_print = QString::number(n_points);
- if (n_points == 3)
- to_print += " OK!";
- else
- to_print += " BAD!";
- ui.pointinfo_label->setText(to_print);
+ ui.caminfo_label->setText(QStringLiteral("%1x%2 @ %3 FPS").arg(info.res_x).arg(info.res_y).arg(info.fps));
+
+ // display point info
+ const int n_points = tracker->get_n_points();
+ ui.pointinfo_label->setText((n_points == 3 ? QStringLiteral("%1 OK!") : QStringLiteral("%1 BAD!")).arg(n_points));
}
else
{