diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-03-27 21:18:39 +0100 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-12 21:04:35 +0200 |
commit | 85988a0e190788c1ee58debc8f07c8fa3375bf5b (patch) | |
tree | c4b9521f680f4fb981025cccd58992ccfb080c90 /tracker-points/ftnoir_tracker_pt_dialog.h | |
parent | 7e21dd631a766155ee4d6a5b24fb05dd691cf39f (diff) |
Create Points Tracker based on original Point Tracker.
Diffstat (limited to 'tracker-points/ftnoir_tracker_pt_dialog.h')
-rw-r--r-- | tracker-points/ftnoir_tracker_pt_dialog.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/tracker-points/ftnoir_tracker_pt_dialog.h b/tracker-points/ftnoir_tracker_pt_dialog.h new file mode 100644 index 00000000..66981ee6 --- /dev/null +++ b/tracker-points/ftnoir_tracker_pt_dialog.h @@ -0,0 +1,55 @@ +/* Copyright (c) 2012 Patrick Ruoff + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + */ + +#pragma once + +#include "pt-api.hpp" + +#include "ftnoir_tracker_pt.h" +#include "tracker-pt/ui_FTNoIR_PT_Controls.h" +#include "cv/translation-calibrator.hpp" +#include "video/video-widget.hpp" + +#include <QTimer> +#include <QMutex> + +namespace pt_impl { + +class TrackerDialog_PT : public ITrackerDialog +{ + Q_OBJECT +public: + TrackerDialog_PT(const QString& module_name); + void register_tracker(ITracker *tracker) override; + void unregister_tracker() override; + void save(); +public slots: + void doOK(); + void doCancel(); + + void startstop_trans_calib(bool start); + void trans_calib_step(); + void poll_tracker_info_impl(); + void set_camera_settings_available(const QString& camera_name); + void show_camera_settings(); +signals: + void poll_tracker_info(); +protected: + QString threshold_display_text(int threshold_value); + + pt_settings s; + Tracker_PT* tracker; + QTimer timer, calib_timer; + TranslationCalibrator trans_calib; + QMutex calibrator_mutex; + + Ui::UICPTClientControls ui; +}; + +} // ns pt_impl + +using TrackerDialog_PT = pt_impl::TrackerDialog_PT; |