diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-22 15:33:46 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-22 15:33:46 +0100 |
commit | 20e0e96d324603fa00b1d4a3654210904ab164ea (patch) | |
tree | 0ec9714208fd11eee74a49c271116c38106ec17d /tracker-pt/ftnoir_tracker_pt.h | |
parent | f5c005d713cdc1c4741f675f2ef939567a23b6f1 (diff) |
cosmetic fixes only
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h index a53218df..210c6a01 100644 --- a/tracker-pt/ftnoir_tracker_pt.h +++ b/tracker-pt/ftnoir_tracker_pt.h @@ -30,13 +30,10 @@ class TrackerDialog_PT; using namespace numeric_types; -class Tracker_PT : public QThread, public ITracker +struct Tracker_PT : QThread, ITracker { - Q_OBJECT - friend class TrackerDialog_PT; -public: template<typename t> using pointer = pt_pointer<t>; explicit Tracker_PT(pointer<pt_runtime_traits> const& pt_runtime_traits); @@ -48,12 +45,13 @@ public: int get_n_points(); [[nodiscard]] bool get_cam_info(pt_camera_info& info); Affine pose() const; -public slots: + +private: + void run() override; + bool maybe_reopen_camera(); void set_fov(int value); -protected: - void run() override; -private: + pointer<pt_runtime_traits> traits; QMutex camera_mtx; @@ -74,7 +72,7 @@ private: pointer<pt_preview> preview_frame; std::atomic<unsigned> point_count { 0 }; - std::atomic<bool> ever_success { false }; + std::atomic<bool> ever_success = false; mutable QMutex center_lock, data_lock; }; |