From 20e0e96d324603fa00b1d4a3654210904ab164ea Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Feb 2019 15:33:46 +0100 Subject: cosmetic fixes only --- tracker-pt/ftnoir_tracker_pt.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'tracker-pt') 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 using pointer = pt_pointer; explicit Tracker_PT(pointer 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 traits; QMutex camera_mtx; @@ -74,7 +72,7 @@ private: pointer preview_frame; std::atomic point_count { 0 }; - std::atomic ever_success { false }; + std::atomic ever_success = false; mutable QMutex center_lock, data_lock; }; -- cgit v1.2.3