diff options
Diffstat (limited to 'FaceTrackNoIR/FaceTrackNoIR.cpp')
-rw-r--r-- | FaceTrackNoIR/FaceTrackNoIR.cpp | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp index ae05a9b6..65793ba7 100644 --- a/FaceTrackNoIR/FaceTrackNoIR.cpp +++ b/FaceTrackNoIR/FaceTrackNoIR.cpp @@ -659,24 +659,19 @@ void FaceTrackNoIR::startTracker( ) { tracker->start( QThread::TimeCriticalPriority );
+ //
+ // Register the Tracker instance with the Tracker Dialog (if open)
+ //
+ if (pTrackerDialog) {
+ pTrackerDialog->registerTracker( tracker->getTrackerPtr() );
+ }
+
ui.headPoseWidget->show();
//
ui.btnStartTracker->setEnabled ( false );
ui.btnStopTracker->setEnabled ( true );
- //// Engine controls
- //switch (ui.iconcomboTrackerSource->currentIndex()) {
- //case FT_SM_FACEAPI: // Face API
- // ui.btnShowEngineControls->setEnabled ( true ); // Active only when started!
- // break;
- //case FT_FTNOIR: // FTNoir server
- // ui.btnShowEngineControls->setEnabled ( false );
- // break;
- //default:
- // break;
- //}
-
// Enable/disable Protocol-server Settings
ui.iconcomboTrackerSource->setEnabled ( false );
ui.iconcomboProtocol->setEnabled ( false );
@@ -756,6 +751,13 @@ void FaceTrackNoIR::stopTracker( ) { ui.txtAxisReverse->setVisible(false);
//
+ // UnRegister the Tracker instance with the Tracker Dialog (if open)
+ //
+ if (pTrackerDialog) {
+ pTrackerDialog->unRegisterTracker();
+ }
+
+ //
// Delete the tracker (after stopping things and all).
//
if ( tracker ) {
@@ -939,7 +941,7 @@ QString libName; getIT = (importGetTrackerDialog) trackerLib->resolve("GetTrackerDialog");
- qDebug() << "FaceTrackNoIR::showEngineControls resolved?." << getIT;
+ qDebug() << "FaceTrackNoIR::showEngineControls resolved." << getIT;
if (getIT) {
ITrackerDialog *ptrXyz(getIT());
@@ -948,6 +950,10 @@ QString libName; pTrackerDialog = ptrXyz;
pTrackerDialog->Initialize( this );
qDebug() << "FaceTrackNoIR::showEngineControls GetTrackerDialog Function Resolved!";
+ if (tracker) {
+ pTrackerDialog->registerTracker( tracker->getTrackerPtr() );
+ qDebug() << "FaceTrackNoIR::showEngineControls RegisterTracker Function Executed";
+ }
}
}
else {
|