diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-01 21:10:53 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
commit | f20687d2d5f9b0542fedf0f45291024846d30d28 (patch) | |
tree | a0a420531d5ed55004128ff141a8680609cdf9dd /tracker-easy/tracker-easy-dialog.h | |
parent | 90fa6c8ee4485f0217ce86feba9eb4408baa67ff (diff) |
Easy Tracker: Renaming some files
Diffstat (limited to 'tracker-easy/tracker-easy-dialog.h')
-rw-r--r-- | tracker-easy/tracker-easy-dialog.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/tracker-easy/tracker-easy-dialog.h b/tracker-easy/tracker-easy-dialog.h new file mode 100644 index 00000000..24f1ff84 --- /dev/null +++ b/tracker-easy/tracker-easy-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 "tracker-easy-api.h" + +#include "tracker-easy.h" +#include "ui_FTNoIR_PT_Controls.h" +#include "cv/translation-calibrator.hpp" +#include "video/video-widget.hpp" + +#include <QTimer> +#include <QMutex> + +namespace pt_impl { + +class EasyTrackerDialog : public ITrackerDialog +{ + Q_OBJECT +public: + EasyTrackerDialog(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; + EasyTracker* tracker; + QTimer timer, calib_timer; + TranslationCalibrator trans_calib; + QMutex calibrator_mutex; + + Ui::UICPTClientControls ui; +}; + +} // ns pt_impl + +using TrackerDialog_PT = pt_impl::EasyTrackerDialog; |