diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2012-11-26 21:00:55 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2012-11-26 21:00:55 +0000 |
commit | acdb0aaf27e2ca623a9e32ea7efcc484aecde498 (patch) | |
tree | 0f38a797e564c827c35d0bc2f70b3f33edc423c6 /FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h | |
parent | bcd12abfc0474d489f5fd30358475086c60df1eb (diff) |
Reversed the numTracker tryout to accomodate the secondary Tracker: the user-interface was confusing.
Now, the 1st Tracker overwrites the values, if the same axis were selected in both trackers.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@196 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h')
-rw-r--r-- | FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h b/FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h index e62009f5..ce8f5511 100644 --- a/FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h +++ b/FTNoIR_Tracker_SM/FTNoIR_Tracker_SM.h @@ -40,7 +40,7 @@ public: FTNoIR_Tracker();
~FTNoIR_Tracker();
- void Initialize( QFrame *videoframe, int numTracker );
+ void Initialize( QFrame *videoframe );
void StartTracker( HWND parent_window );
void StopTracker( bool exit );
bool GiveHeadPoseData(THeadPoseData *data); // Returns true if confidence is good
@@ -56,7 +56,7 @@ private: HANDLE hSMMutex;
QProcess *faceAPI;
- int numTracker;
+// int numTracker;
bool bEnableRoll;
bool bEnablePitch;
bool bEnableYaw;
@@ -82,7 +82,7 @@ public: virtual ~TrackerControls();
void showEvent ( QShowEvent * event );
- void Initialize(QWidget *parent, int numTracker);
+ void Initialize(QWidget *parent);
void registerTracker(ITracker *tracker) {
theTracker = (FTNoIR_Tracker *) tracker; // Accept the pointer to the Tracker
};
@@ -93,7 +93,6 @@ public: private:
Ui::UICSMClientControls ui;
void loadSettings();
- void save();
bool SMCreateMapping();
void doCommand( int command );
void doCommand( int command, int value );
@@ -112,18 +111,11 @@ private: QTimer *timUpdateSettings; // Timer to display current settings
FTNoIR_Tracker *theTracker;
- int numTracker; // Primary (1) or secondary tracker (2)
-
- int numRoll; // Number of Tracker (1 or 2) which tracks this axis
- int numPitch;
- int numYaw;
- int numX;
- int numY;
- int numZ;
private slots:
void doOK();
void doCancel();
+ void save();
void settingChanged() { settingsDirty = true; };
void doTimUpdate();
void showSettings( int newState );
|