From 54ae60ffc0f16c982f625b246faa068297678a2b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 11 Jan 2018 19:06:23 +0100 Subject: tracker/pt: also pass module name to camera class --- tracker-pt/camera.cpp | 2 +- tracker-pt/camera.h | 2 +- tracker-pt/module.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tracker-pt/camera.cpp b/tracker-pt/camera.cpp index 4784c51a..bbc37cb1 100644 --- a/tracker-pt/camera.cpp +++ b/tracker-pt/camera.cpp @@ -14,7 +14,7 @@ constexpr double Camera::dt_eps; -Camera::Camera() : dt_mean(0), fov(0), s("tracker-pt") {} +Camera::Camera(const QString& module_name) : dt_mean(0), fov(0), s(module_name) {} QString Camera::get_desired_name() const { diff --git a/tracker-pt/camera.h b/tracker-pt/camera.h index 7a4f75c4..f5fd8f81 100644 --- a/tracker-pt/camera.h +++ b/tracker-pt/camera.h @@ -22,7 +22,7 @@ struct Camera final : pt_camera { - Camera(); + Camera(const QString& module_name); pt_camera_open_status start(int idx, int fps, int res_x, int res_y) override; void stop() override; diff --git a/tracker-pt/module.cpp b/tracker-pt/module.cpp index 0d96c351..d0f097b9 100644 --- a/tracker-pt/module.cpp +++ b/tracker-pt/module.cpp @@ -15,7 +15,7 @@ struct pt_module_traits final : pt_runtime_traits { std::unique_ptr make_camera() const override { - return std::unique_ptr(new Camera); + return std::unique_ptr(new Camera(module_name)); } std::unique_ptr make_point_extractor() const override -- cgit v1.2.3