From 0dcc0fab8a9c088840c5e7ff4b2dc1b64b08ea97 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 14 Jul 2015 11:16:14 +0200 Subject: some initial wizard stuff --- facetracknoir/wizard.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'facetracknoir/wizard.cpp') diff --git a/facetracknoir/wizard.cpp b/facetracknoir/wizard.cpp index 1c7ab5b3..e432ddf5 100644 --- a/facetracknoir/wizard.cpp +++ b/facetracknoir/wizard.cpp @@ -6,6 +6,39 @@ Wizard::Wizard() : QWizard(nullptr) connect(this, SIGNAL(accepted()), this, SLOT(set_data())); } +static constexpr double tz[][2] = { + { 16.5327205657959, 13.0232553482056 }, + { 55.4535026550293, 100 }, + { 56.8312301635742, 100 }, + { -1, -1 }, +}; + +static constexpr double yaw[][2] = { + { 10.7462686567164, 20.9302325581395 }, + { 41.9517784118652, 180 }, + { -1, -1 }, +}; + +static constexpr double pitch[][2] = { + { 10.1262916188289, 27.6279069767442 }, + { 32.4454649827784, 180 }, + { -1, -1 }, +}; + +static constexpr double roll[][2] = { + { 12.3995409011841, 25.9534893035889 }, + { 54.3513221740723, 180 }, + { -1, -1 }, +}; + +static void set_mapping(Mapping& m, double* spline[2]) +{ + m.opts.altp = false; + m.curve.removeAllPoints(); + for (int i = 0; spline[i][0] >= 0; i++) + m.curve.addPoint(QPointF(spline[i][0], spline[i][1])); +} + void Wizard::set_data() { Model m; @@ -22,5 +55,7 @@ void Wizard::set_data() settings_pt pt; main_settings s; + pt.threshold = 31; + qDebug() << "wizard done" << "model" << m << "camera-mode" << camera_mode; } -- cgit v1.2.3