summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-21 19:11:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-21 19:17:21 +0100
commitff38e35d832b7c7a3e189bee4a80271fd3a3c978 (patch)
treebb7c1cfee8a00acab1b455a2d5f211192ebc9ed9
parent9e077d8d72f377be85406d90354afcb83ad3faa9 (diff)
tracker/pt: don't `namespace pt_module' for core PT stuff
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp6
-rw-r--r--tracker-pt/ftnoir_tracker_pt.h10
-rw-r--r--tracker-pt/ftnoir_tracker_pt_dialog.cpp4
-rw-r--r--tracker-pt/ftnoir_tracker_pt_dialog.h6
-rw-r--r--tracker-pt/lang/nl_NL.ts94
-rw-r--r--tracker-pt/lang/ru_RU.ts94
-rw-r--r--tracker-pt/lang/stub.ts94
-rw-r--r--tracker-pt/lang/zh_CN.ts94
-rw-r--r--tracker-pt/point_tracker.cpp4
-rw-r--r--tracker-pt/point_tracker.h8
-rw-r--r--tracker-pt/pt-settings.hpp6
11 files changed, 216 insertions, 204 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index 75d7e5a6..4223da26 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -18,7 +18,9 @@
#include <QFile>
#include <QCoreApplication>
-namespace pt_module {
+using namespace options;
+
+namespace pt_impl {
Tracker_PT::Tracker_PT(pointer<pt_runtime_traits> const& traits) :
traits { traits },
@@ -212,4 +214,4 @@ Affine Tracker_PT::pose() const
return point_tracker.pose();
}
-} // ns pt_module
+} // ns pt_impl
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h
index 77835602..a53218df 100644
--- a/tracker-pt/ftnoir_tracker_pt.h
+++ b/tracker-pt/ftnoir_tracker_pt.h
@@ -12,6 +12,7 @@
#include "pt-api.hpp"
#include "point_tracker.h"
#include "cv/numeric.hpp"
+#include "video/video-widget.hpp"
#include <atomic>
#include <memory>
@@ -23,10 +24,9 @@
#include <QMutex>
#include <QLayout>
-class TrackerDialog_PT;
-class video_widget;
+namespace pt_impl {
-namespace pt_module {
+class TrackerDialog_PT;
using namespace numeric_types;
@@ -34,7 +34,7 @@ class Tracker_PT : public QThread, public ITracker
{
Q_OBJECT
- friend class ::TrackerDialog_PT;
+ friend class TrackerDialog_PT;
public:
template<typename t> using pointer = pt_pointer<t>;
@@ -80,4 +80,4 @@ private:
} // ns pt_impl
-using Tracker_PT = pt_module::Tracker_PT;
+using Tracker_PT = pt_impl::Tracker_PT;
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.cpp b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
index 51a5c74f..91d5d4e7 100644
--- a/tracker-pt/ftnoir_tracker_pt_dialog.cpp
+++ b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
@@ -19,6 +19,8 @@
using namespace options;
+namespace pt_impl {
+
TrackerDialog_PT::TrackerDialog_PT(const QString& module_name) :
s(module_name),
tracker(nullptr),
@@ -277,3 +279,5 @@ void TrackerDialog_PT::unregister_tracker()
poll_tracker_info();
timer.stop();
}
+
+} // ns pt_impl
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.h b/tracker-pt/ftnoir_tracker_pt_dialog.h
index 3bd1a561..66981ee6 100644
--- a/tracker-pt/ftnoir_tracker_pt_dialog.h
+++ b/tracker-pt/ftnoir_tracker_pt_dialog.h
@@ -17,6 +17,8 @@
#include <QTimer>
#include <QMutex>
+namespace pt_impl {
+
class TrackerDialog_PT : public ITrackerDialog
{
Q_OBJECT
@@ -47,3 +49,7 @@ protected:
Ui::UICPTClientControls ui;
};
+
+} // ns pt_impl
+
+using TrackerDialog_PT = pt_impl::TrackerDialog_PT;
diff --git a/tracker-pt/lang/nl_NL.ts b/tracker-pt/lang/nl_NL.ts
index c20f12d0..1456157c 100644
--- a/tracker-pt/lang/nl_NL.ts
+++ b/tracker-pt/lang/nl_NL.ts
@@ -2,53 +2,6 @@
<!DOCTYPE TS>
<TS version="2.1" language="nl_NL">
<context>
- <name>TrackerDialog_PT</name>
- <message>
- <source>Brightness %1/255</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>LED radius %1 pixels</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 yaw samples. Yaw more to %2 samples for stable calibration.</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 pitch samples. Pitch more to %2 samples for stable calibration.</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 samples. Over %2, good!</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Stop calibration</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Start calibration</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1x%2 @ %3 FPS</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 OK!</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 BAD!</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Tracker offline</source>
- <translation type="unfinished"></translation>
- </message>
-</context>
-<context>
<name>UICPTClientControls</name>
<message>
<source>PointTracker Settings</source>
@@ -281,6 +234,53 @@ Don&apos;t roll or change position.</source>
</message>
</context>
<context>
+ <name>pt_impl::TrackerDialog_PT</name>
+ <message>
+ <source>Brightness %1/255</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>LED radius %1 pixels</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 yaw samples. Yaw more to %2 samples for stable calibration.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 pitch samples. Pitch more to %2 samples for stable calibration.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 samples. Over %2, good!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Stop calibration</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Start calibration</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1x%2 @ %3 FPS</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 OK!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 BAD!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Tracker offline</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>pt_module::metadata_pt</name>
<message>
<source>PointTracker 1.1</source>
diff --git a/tracker-pt/lang/ru_RU.ts b/tracker-pt/lang/ru_RU.ts
index 494a5a17..c91dd087 100644
--- a/tracker-pt/lang/ru_RU.ts
+++ b/tracker-pt/lang/ru_RU.ts
@@ -2,53 +2,6 @@
<!DOCTYPE TS>
<TS version="2.1" language="ru_RU">
<context>
- <name>TrackerDialog_PT</name>
- <message>
- <source>%1 samples. Over %2, good!</source>
- <translation>Получено %1 образца(-ов). Больше %2, отлично!!</translation>
- </message>
- <message>
- <source>%1 yaw samples. Yaw more to %2 samples for stable calibration.</source>
- <translation>По оси YAW выполнено: %1 замер(а/ов). Для стабильного результата необходимо не меньше %2</translation>
- </message>
- <message>
- <source>Brightness %1/255</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>LED radius %1 pixels</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 pitch samples. Pitch more to %2 samples for stable calibration.</source>
- <translation>По оси Pitch выполнено: %1 замер(а/ов). Для стабильного результата необходимо не меньше %2</translation>
- </message>
- <message>
- <source>Stop calibration</source>
- <translation>Остановить калибровку</translation>
- </message>
- <message>
- <source>Start calibration</source>
- <translation>Начать калибровку</translation>
- </message>
- <message>
- <source>%1x%2 @ %3 FPS</source>
- <translation></translation>
- </message>
- <message>
- <source>%1 OK!</source>
- <translation></translation>
- </message>
- <message>
- <source>%1 BAD!</source>
- <translation></translation>
- </message>
- <message>
- <source>Tracker offline</source>
- <translation>Отслеживание отключено</translation>
- </message>
-</context>
-<context>
<name>UICPTClientControls</name>
<message>
<source>PointTracker Settings</source>
@@ -286,6 +239,53 @@ ROLL или X/Y-смещения.</translation>
</message>
</context>
<context>
+ <name>pt_impl::TrackerDialog_PT</name>
+ <message>
+ <source>Brightness %1/255</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>LED radius %1 pixels</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 yaw samples. Yaw more to %2 samples for stable calibration.</source>
+ <translation type="unfinished">По оси YAW выполнено: %1 замер(а/ов). Для стабильного результата необходимо не меньше %2</translation>
+ </message>
+ <message>
+ <source>%1 pitch samples. Pitch more to %2 samples for stable calibration.</source>
+ <translation type="unfinished">По оси Pitch выполнено: %1 замер(а/ов). Для стабильного результата необходимо не меньше %2</translation>
+ </message>
+ <message>
+ <source>%1 samples. Over %2, good!</source>
+ <translation type="unfinished">Получено %1 образца(-ов). Больше %2, отлично!!</translation>
+ </message>
+ <message>
+ <source>Stop calibration</source>
+ <translation type="unfinished">Остановить калибровку</translation>
+ </message>
+ <message>
+ <source>Start calibration</source>
+ <translation type="unfinished">Начать калибровку</translation>
+ </message>
+ <message>
+ <source>%1x%2 @ %3 FPS</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 OK!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 BAD!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Tracker offline</source>
+ <translation type="unfinished">Отслеживание отключено</translation>
+ </message>
+</context>
+<context>
<name>pt_module::metadata_pt</name>
<message>
<source>PointTracker 1.1</source>
diff --git a/tracker-pt/lang/stub.ts b/tracker-pt/lang/stub.ts
index a1b9819f..36090e5e 100644
--- a/tracker-pt/lang/stub.ts
+++ b/tracker-pt/lang/stub.ts
@@ -2,53 +2,6 @@
<!DOCTYPE TS>
<TS version="2.1">
<context>
- <name>TrackerDialog_PT</name>
- <message>
- <source>Brightness %1/255</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>LED radius %1 pixels</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 yaw samples. Yaw more to %2 samples for stable calibration.</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 pitch samples. Pitch more to %2 samples for stable calibration.</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 samples. Over %2, good!</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Stop calibration</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Start calibration</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1x%2 @ %3 FPS</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 OK!</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 BAD!</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Tracker offline</source>
- <translation type="unfinished"></translation>
- </message>
-</context>
-<context>
<name>UICPTClientControls</name>
<message>
<source>PointTracker Settings</source>
@@ -281,6 +234,53 @@ Don&apos;t roll or change position.</source>
</message>
</context>
<context>
+ <name>pt_impl::TrackerDialog_PT</name>
+ <message>
+ <source>Brightness %1/255</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>LED radius %1 pixels</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 yaw samples. Yaw more to %2 samples for stable calibration.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 pitch samples. Pitch more to %2 samples for stable calibration.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 samples. Over %2, good!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Stop calibration</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Start calibration</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1x%2 @ %3 FPS</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 OK!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 BAD!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Tracker offline</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>pt_module::metadata_pt</name>
<message>
<source>PointTracker 1.1</source>
diff --git a/tracker-pt/lang/zh_CN.ts b/tracker-pt/lang/zh_CN.ts
index 38fd40b1..667c2811 100644
--- a/tracker-pt/lang/zh_CN.ts
+++ b/tracker-pt/lang/zh_CN.ts
@@ -2,53 +2,6 @@
<!DOCTYPE TS>
<TS version="2.1" language="zh_CN">
<context>
- <name>TrackerDialog_PT</name>
- <message>
- <source>Brightness %1/255</source>
- <translation>亮度 %1/255</translation>
- </message>
- <message>
- <source>LED radius %1 pixels</source>
- <translation>光源半径 %1 像素</translation>
- </message>
- <message>
- <source>%1 yaw samples. Yaw more to %2 samples for stable calibration.</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 pitch samples. Pitch more to %2 samples for stable calibration.</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>%1 samples. Over %2, good!</source>
- <translation>%1 样本。%2 正常</translation>
- </message>
- <message>
- <source>Stop calibration</source>
- <translation>停止校准</translation>
- </message>
- <message>
- <source>Start calibration</source>
- <translation>开始校准</translation>
- </message>
- <message>
- <source>%1x%2 @ %3 FPS</source>
- <translation>%1x%2 @ %3 帧</translation>
- </message>
- <message>
- <source>%1 OK!</source>
- <translation>%1 正常</translation>
- </message>
- <message>
- <source>%1 BAD!</source>
- <translation>%1 异常</translation>
- </message>
- <message>
- <source>Tracker offline</source>
- <translation>跟踪器脱机</translation>
- </message>
-</context>
-<context>
<name>UICPTClientControls</name>
<message>
<source>PointTracker Settings</source>
@@ -281,6 +234,53 @@ Don&apos;t roll or change position.</source>
</message>
</context>
<context>
+ <name>pt_impl::TrackerDialog_PT</name>
+ <message>
+ <source>Brightness %1/255</source>
+ <translation type="unfinished">亮度 %1/255</translation>
+ </message>
+ <message>
+ <source>LED radius %1 pixels</source>
+ <translation type="unfinished">光源半径 %1 像素</translation>
+ </message>
+ <message>
+ <source>%1 yaw samples. Yaw more to %2 samples for stable calibration.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 pitch samples. Pitch more to %2 samples for stable calibration.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>%1 samples. Over %2, good!</source>
+ <translation type="unfinished">%1 样本。%2 正常</translation>
+ </message>
+ <message>
+ <source>Stop calibration</source>
+ <translation type="unfinished">停止校准</translation>
+ </message>
+ <message>
+ <source>Start calibration</source>
+ <translation type="unfinished">开始校准</translation>
+ </message>
+ <message>
+ <source>%1x%2 @ %3 FPS</source>
+ <translation type="unfinished">%1x%2 @ %3 帧</translation>
+ </message>
+ <message>
+ <source>%1 OK!</source>
+ <translation type="unfinished">%1 正常</translation>
+ </message>
+ <message>
+ <source>%1 BAD!</source>
+ <translation type="unfinished">%1 异常</translation>
+ </message>
+ <message>
+ <source>Tracker offline</source>
+ <translation type="unfinished">跟踪器脱机</translation>
+ </message>
+</context>
+<context>
<name>pt_module::metadata_pt</name>
<message>
<source>PointTracker 1.1</source>
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp
index bda412e2..ef70789a 100644
--- a/tracker-pt/point_tracker.cpp
+++ b/tracker-pt/point_tracker.cpp
@@ -14,7 +14,7 @@
#include <QDebug>
-namespace pt_module {
+namespace pt_impl {
using namespace numeric_types;
@@ -363,4 +363,4 @@ void PointTracker::reset_state()
X_CM_expected = {};
}
-} // ns pt_module
+} // ns pt_impl
diff --git a/tracker-pt/point_tracker.h b/tracker-pt/point_tracker.h
index 6f3e0cee..70c7a9fc 100644
--- a/tracker-pt/point_tracker.h
+++ b/tracker-pt/point_tracker.h
@@ -21,7 +21,7 @@
#include <QObject>
-namespace pt_module {
+namespace pt_impl {
// ----------------------------------------------------------------------------
// Describes a 3-point model
@@ -82,7 +82,7 @@ private:
bool init_phase = true;
};
-} // ns pt_module
+} // ns pt_impl
-using PointTracker = pt_module::PointTracker;
-using PointModel = pt_module::PointModel;
+using PointTracker = pt_impl::PointTracker;
+using PointModel = pt_impl::PointModel;
diff --git a/tracker-pt/pt-settings.hpp b/tracker-pt/pt-settings.hpp
index df45b499..723ee08d 100644
--- a/tracker-pt/pt-settings.hpp
+++ b/tracker-pt/pt-settings.hpp
@@ -15,7 +15,7 @@ enum pt_color_type
pt_color_green_only = 7,
};
-namespace pt_settings_detail {
+namespace pt_impl {
using namespace options;
@@ -68,6 +68,6 @@ struct pt_settings final : options::opts
# pragma clang diagnostic pop
#endif
-} // ns pt_settings_detail
+} // ns pt_impl
-using pt_settings = pt_settings_detail::pt_settings;
+using pt_settings = pt_impl::pt_settings;