summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-06-16 08:50:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-06-16 09:19:38 +0200
commit4c5c3904a55a748f3453f5b067e2d6d0f0a11848 (patch)
tree523bf9f2129d523366555437c220b5878082b28a /ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
parent7e3f2ec7b38d547e39d667b9ab188f90775dd3bf (diff)
pt: rename for consistency with trackhat
We're going to merge to trackhat often so let's not introduce needless conflicts. PT headers need to be include-able.
Diffstat (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.cpp')
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
index b7138f25..4c0913e7 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
@@ -19,7 +19,7 @@ using namespace cv;
//#define PT_PERF_LOG //log performance
//-----------------------------------------------------------------------------
-Tracker::Tracker()
+Tracker_PT::Tracker_PT()
: mutex(QMutex::Recursive),
commands(0),
video_widget(NULL),
@@ -29,7 +29,7 @@ Tracker::Tracker()
connect(s.b.get(), SIGNAL(saving()), this, SLOT(apply_settings()));
}
-Tracker::~Tracker()
+Tracker_PT::~Tracker_PT()
{
set_command(ABORT);
wait();
@@ -38,26 +38,26 @@ Tracker::~Tracker()
if (video_frame->layout()) delete video_frame->layout();
}
-void Tracker::set_command(Command command)
+void Tracker_PT::set_command(Command command)
{
//QMutexLocker lock(&mutex);
commands |= command;
}
-void Tracker::reset_command(Command command)
+void Tracker_PT::reset_command(Command command)
{
//QMutexLocker lock(&mutex);
commands &= ~command;
}
-float Tracker::get_focal_length()
+float Tracker_PT::get_focal_length()
{
static constexpr float pi = 3.1415926f;
const float fov = static_cast<int>(s.fov) * pi / 180.f;
return 0.5f / tan(0.5f * fov);
}
-void Tracker::run()
+void Tracker_PT::run()
{
#ifdef PT_PERF_LOG
QFile log_file(QCoreApplication::applicationDirPath() + "/PointTrackerPerformance.txt");
@@ -130,7 +130,7 @@ void Tracker::run()
int camera_name_to_index(const QString &name);
-void Tracker::apply_settings()
+void Tracker_PT::apply_settings()
{
qDebug()<<"Tracker:: Applying settings";
QMutexLocker lock(&mutex);
@@ -140,7 +140,7 @@ void Tracker::apply_settings()
qDebug()<<"Tracker::apply ends";
}
-void Tracker::start_tracker(QFrame *parent_window)
+void Tracker_PT::start_tracker(QFrame *parent_window)
{
this->video_frame = parent_window;
video_frame->setAttribute(Qt::WA_NativeWindow);
@@ -167,7 +167,7 @@ void Tracker::StopTracker(bool exit)
#define THeadPoseData double
#endif
-void Tracker::data(THeadPoseData *data)
+void Tracker_PT::data(THeadPoseData *data)
{
if (ever_success)
{
@@ -211,5 +211,5 @@ extern "C" OPENTRACK_EXPORT ITracker* GetConstructor()
OPENTRACK_EXPORT ITrackerPtr __stdcall GetTracker()
#endif
{
- return new Tracker;
+ return new Tracker_PT;
}