summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt_dialog.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-30 07:37:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-10-30 08:39:32 +0100
commitaa066bdd4622d4f6824fee864f6be6806813f04d (patch)
tree3df328b8b364cba2373a85827191b259bd78d546 /tracker-pt/ftnoir_tracker_pt_dialog.h
parentd6a54431d178632a2bf466c9904f74abd143afe6 (diff)
move to subdirectory-based build system
Closes #224
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt_dialog.h')
-rw-r--r--tracker-pt/ftnoir_tracker_pt_dialog.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.h b/tracker-pt/ftnoir_tracker_pt_dialog.h
new file mode 100644
index 00000000..3502e227
--- /dev/null
+++ b/tracker-pt/ftnoir_tracker_pt_dialog.h
@@ -0,0 +1,51 @@
+/* Copyright (c) 2012 Patrick Ruoff
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ */
+
+#ifndef FTNOIR_TRACKER_PT_DIALOG_H
+#define FTNOIR_TRACKER_PT_DIALOG_H
+
+#include "opentrack/plugin-api.hpp"
+#include "ftnoir_tracker_pt_settings.h"
+#include "ftnoir_tracker_pt.h"
+#include "trans_calib.h"
+#include "pt_video_widget.h"
+#include "ui_FTNoIR_PT_Controls.h"
+#include "opentrack/opencv-camera-dialog.hpp"
+
+#include <QTimer>
+
+//-----------------------------------------------------------------------------
+// The dialog that shows up when the user presses "Settings"
+class TrackerDialog_PT : public ITrackerDialog, protected camera_dialog<Tracker_PT>
+{
+ Q_OBJECT
+public:
+ TrackerDialog_PT();
+ void register_tracker(ITracker *tracker) override;
+ void unregister_tracker() override;
+ void save();
+ void trans_calib_step();
+
+public slots:
+ void doOK();
+ void doCancel();
+
+ void startstop_trans_calib(bool start);
+ void poll_tracker_info();
+ void camera_settings();
+private:
+ settings_pt s;
+ Tracker_PT* tracker;
+ QTimer timer;
+
+ TranslationCalibrator trans_calib;
+ bool trans_calib_running;
+
+ Ui::UICPTClientControls ui;
+};
+
+#endif //FTNOIR_TRACKER_PT_DIALOG_H