summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/tracker.h
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2010-09-28 20:37:14 +0000
committerWim Vriend <facetracknoir@gmail.com>2010-09-28 20:37:14 +0000
commit9a573dbf66f8baddf1aabe79960c8658cbb0ee9e (patch)
treea76130ca3c25127975db1533db4191a2449c1060 /FaceTrackNoIR/tracker.h
parent35824a2b7c5771dff12b94b27d5be3495bf3bb8a (diff)
UpdateSettings after change of INI-file.
Added curve to tracker git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@21 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.h')
-rw-r--r--FaceTrackNoIR/tracker.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/FaceTrackNoIR/tracker.h b/FaceTrackNoIR/tracker.h
index 0b0abe7f..51d83f41 100644
--- a/FaceTrackNoIR/tracker.h
+++ b/FaceTrackNoIR/tracker.h
@@ -31,6 +31,7 @@
#include <QPoint>
#include <QWaitCondition>
#include <QList>
+#include <QPainterPath>
#define DIRECTINPUT_VERSION 0x0800
#include <Dinput.h>
@@ -81,6 +82,7 @@ struct THeadPoseDOF {
float newPos; // New Position (used locally)
float prevPos; // Previous Position
float prevRawPos; // Previous Raw Position
+ QPainterPath curve; // Bezier curve to translate input -> output
};
//
@@ -217,6 +219,7 @@ public:
float getSmoothFromList ( QList<float> *rawList );
float getDegreesFromRads ( float rads ) { return (rads * 57.295781f); }
+ float getOutputFromCurve ( QPainterPath *curve, float input );
// For now, use one slider for all
void setSmoothing(int x) {