summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2012-09-23 23:55:33 +0000
committerStanislaw Halik <sthalik@misaki.pl>2012-09-23 23:55:33 +0000
commitcffb189eea0b04c23b69dd8e670a0126387cdf83 (patch)
treeebe80259508e15b500932e16f8b5076754b51c4e
parentab36e19107f40e362640b4424832615a293cb803 (diff)
Resize Accela window for precision
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@164 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
-rwxr-xr-xFTNoIR_Filter_Accela/FTNoIR_FilterControls.ui26
-rwxr-xr-x[-rw-r--r--]FTNoIR_Filter_Accela/ftnoir_filter_accela.cpp6
2 files changed, 17 insertions, 15 deletions
diff --git a/FTNoIR_Filter_Accela/FTNoIR_FilterControls.ui b/FTNoIR_Filter_Accela/FTNoIR_FilterControls.ui
index 51345de2..d5b08268 100755
--- a/FTNoIR_Filter_Accela/FTNoIR_FilterControls.ui
+++ b/FTNoIR_Filter_Accela/FTNoIR_FilterControls.ui
@@ -10,7 +10,7 @@
<x>0</x>
<y>0</y>
<width>880</width>
- <height>349</height>
+ <height>643</height>
</rect>
</property>
<property name="windowTitle">
@@ -44,13 +44,13 @@
<property name="minimumSize">
<size>
<width>850</width>
- <height>300</height>
+ <height>594</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>300</width>
- <height>300</height>
+ <height>594</height>
</size>
</property>
<property name="currentIndex">
@@ -60,7 +60,7 @@
<attribute name="title">
<string>Rotation</string>
</attribute>
- <widget class="QFunctionConfigurator" name="scalingConfig">
+ <widget class="QFunctionConfigurator" name="scalingConfig" native="true">
<property name="geometry">
<rect>
<x>20</x>
@@ -73,13 +73,13 @@
<number>4</number>
</property>
<property name="maxOutputEGU" stdset="0">
- <number>8</number>
+ <number>6</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
<number>191</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
- <number>23</number>
+ <number>75</number>
</property>
<property name="gridDistEGU_Input" stdset="0">
<number>1</number>
@@ -87,14 +87,14 @@
<property name="gridDistEGU_Output" stdset="0">
<number>1</number>
</property>
- <property name="colorBezier">
+ <property name="colorBezier" stdset="0">
<color>
<red>255</red>
<green>170</green>
<blue>0</blue>
</color>
</property>
- <property name="colorBackground">
+ <property name="colorBackground" stdset="0">
<color>
<red>192</red>
<green>192</green>
@@ -116,7 +116,7 @@
<attribute name="title">
<string>Translation</string>
</attribute>
- <widget class="QFunctionConfigurator" name="translationScalingConfig">
+ <widget class="QFunctionConfigurator" name="translationScalingConfig" native="true">
<property name="geometry">
<rect>
<x>20</x>
@@ -129,13 +129,13 @@
<number>4</number>
</property>
<property name="maxOutputEGU" stdset="0">
- <number>8</number>
+ <number>6</number>
</property>
<property name="pixPerEGU_Input" stdset="0">
<number>191</number>
</property>
<property name="pixPerEGU_Output" stdset="0">
- <number>23</number>
+ <number>75</number>
</property>
<property name="gridDistEGU_Input" stdset="0">
<number>1</number>
@@ -143,14 +143,14 @@
<property name="gridDistEGU_Output" stdset="0">
<number>1</number>
</property>
- <property name="colorBezier">
+ <property name="colorBezier" stdset="0">
<color>
<red>85</red>
<green>255</green>
<blue>0</blue>
</color>
</property>
- <property name="colorBackground">
+ <property name="colorBackground" stdset="0">
<color>
<red>192</red>
<green>192</green>
diff --git a/FTNoIR_Filter_Accela/ftnoir_filter_accela.cpp b/FTNoIR_Filter_Accela/ftnoir_filter_accela.cpp
index 60b895a4..c71469c4 100644..100755
--- a/FTNoIR_Filter_Accela/ftnoir_filter_accela.cpp
+++ b/FTNoIR_Filter_Accela/ftnoir_filter_accela.cpp
@@ -17,8 +17,8 @@
#include <float.h>
FTNoIR_Filter::FTNoIR_Filter() :
- functionConfig("Accela-Scaling-Rotation", 4, 8),
- translationFunctionConfig("Accela-Scaling-Translation", 4, 8)
+ functionConfig("Accela-Scaling-Rotation", 4, 6),
+ translationFunctionConfig("Accela-Scaling-Translation", 4, 6)
{
first_run = true;
loadSettings(); // Load the Settings
@@ -68,6 +68,8 @@ void FTNoIR_Filter::FilterHeadPoseData(THeadPoseData *current_camera_position, T
if (first_run)
{
+ functionConfig.setTrackingActive(true);
+ translationFunctionConfig.setTrackingActive(true);
new_camera_position->x=target[0];
new_camera_position->y=target[1];
new_camera_position->z=target[2];