diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-11 18:10:42 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-12 12:04:27 +0100 |
commit | e5d2902e11ae6ea2e26e0caa6588384225e018f6 (patch) | |
tree | 6b9660910daf250290c339780d5b2ef062646130 /tracker-pt/ftnoir_tracker_pt.h | |
parent | 049044f181414991a103ace961214c78171c284d (diff) |
tracker/pt: refactor
- separate .{cpp,hpp} for few classes
- don't include namespaces globally; harmless but looks bad
anyway
- class with all public members to struct
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h index 3b93eaf4..020694ae 100644 --- a/tracker-pt/ftnoir_tracker_pt.h +++ b/tracker-pt/ftnoir_tracker_pt.h @@ -6,12 +6,12 @@ * copyright notice and this permission notice appear in all copies. */ -#ifndef FTNOIR_TRACKER_PT_H -#define FTNOIR_TRACKER_PT_H +#pragma once #include "api/plugin-api.hpp" #include "ftnoir_tracker_pt_settings.h" -using namespace pt_types; + +#include "numeric.hpp" #include "camera.h" #include "point_extractor.h" @@ -28,10 +28,12 @@ using namespace pt_types; #include <memory> #include <vector> +namespace impl { + +using namespace types; + class TrackerDialog_PT; -//----------------------------------------------------------------------------- -// Constantly processes the tracking chain in a separate thread class Tracker_PT : public QThread, public ITracker { Q_OBJECT @@ -83,10 +85,13 @@ private: //static constexpr float deg2rad = float(M_PI/180); }; +} // ns impl + class PT_metadata : public Metadata { QString name() { return QString(QCoreApplication::translate("PT_metadata", "PointTracker 1.1")); } QIcon icon() { return QIcon(":/Resources/Logo_IR.png"); } }; -#endif // FTNOIR_TRACKER_PT_H +using impl::Tracker_PT; +using impl::TrackerDialog_PT; |