summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/FaceTrackNoIR.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2012-09-21 09:06:33 +0000
committerWim Vriend <facetracknoir@gmail.com>2012-09-21 09:06:33 +0000
commitc2eac43ebb6f05fd88f2718e2de942d845e04c70 (patch)
tree1277c3bbf85f1a1b037f7731d01f301d09facf10 /FaceTrackNoIR/FaceTrackNoIR.cpp
parent79eaf20104496d1494a6150dd307feea9dac5195 (diff)
Removed obsolete Curve function.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@153 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FaceTrackNoIR.cpp')
-rw-r--r--FaceTrackNoIR/FaceTrackNoIR.cpp74
1 files changed, 0 insertions, 74 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp
index 7fced8c8..d6fa5ce4 100644
--- a/FaceTrackNoIR/FaceTrackNoIR.cpp
+++ b/FaceTrackNoIR/FaceTrackNoIR.cpp
@@ -43,7 +43,6 @@
*/
#include "FaceTrackNoIR.h"
#include "tracker.h"
-//#include "FunctionConfig.h"
//#define USE_VISAGE
@@ -77,7 +76,6 @@ QMainWindow(parent, flags)
QSettings settings("Abbequerque Inc.", "FaceTrackNoIR"); // Registry settings (in HK_USER)
if (settings.value ( "AutoStartTracking", 0 ).toBool()) {
startTracker();
-// showMinimized();
}
Q_INIT_RESOURCE(PoseWidget);
@@ -2119,75 +2117,3 @@ void CurveConfigurationDialog::save() {
//
mainApp->updateSettings();
}
-
-void getCurvePoints(QSettings *iniFile, QString prefix, QPointF *point1, QPointF *point2, QPointF *point3, QPointF *point4, int NeutralZone, int Sensitivity, int MaxInput, int MaxOutput) {
-bool setMax;
-float newMax;
-
- setMax = FALSE;
- newMax = MaxInput;
-
- //
- // If Point 1 exists, read it from the file.
- // If not: get the y-coord from the global (deprecated) NeutralZone setting.
- //
- if (iniFile->contains(prefix + "point1")) {
- *point1 = iniFile->value ( prefix + "point1", 0 ).toPoint();
- }
- else {
- point1->setY(NeutralZone);
- }
-
- //
- // If Point 4 exists, read it from the file.
- // If not: derive the x-coord from the (deprecated) 'Sensitivity' setting and set y to max.
- //
- if (iniFile->contains(prefix + "point4")) {
- *point4 = iniFile->value ( prefix + "point4", 0 ).toPoint();
- }
- else {
- point4->setY(MaxInput); // Max. Input for rotations
- point4->setX((Sensitivity/100.0f) * MaxInput);
- if (point4->x() > MaxOutput) {
- point4->setX(MaxOutput);
- setMax = TRUE;
- }
- else {
- newMax = (Sensitivity/100.0f) * MaxInput;
- }
- }
-
- //
- // If Point 2 exists, read it from the file.
- // If not: derive it from the (deprecated) 'Sensitivity' setting.
- //
- if (iniFile->contains(prefix + "point2")) {
- *point2 = iniFile->value ( prefix + "point2", 0 ).toPoint();
- }
- else {
- point2->setY(0.333f * MaxInput); // Set the Point at 1/3 of Max. Input
- if (!setMax) {
- point2->setX(0.333f * newMax);
- }
- else {
- point2->setX(0.333f * MaxOutput);
- }
- }
-
- //
- // If Point 3 exists, read it from the file.
- // If not: derive it from the (deprecated) 'Sensitivity' setting.
- //
- if (iniFile->contains(prefix + "point3")) {
- *point3 = iniFile->value ( prefix + "point3", 0 ).toPoint();
- }
- else {
- point3->setY(0.666f * MaxInput); // Set the Point at 2/3 of Max. Input
- if (!setMax) {
- point3->setX(0.666f * newMax);
- }
- else {
- point3->setX(0.666f * MaxOutput);
- }
- }
-}