]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/src/bbPackRecalageImageSwitcherBox.cxx
Added Switch and Convolution Visualizations
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageImageSwitcherBox.cxx
index c5eee38fd2f570b769e6fc72512dd6737a57d11b..919e32cbf505fb7d5248e5402c92ef77bdad00bb 100644 (file)
@@ -14,8 +14,10 @@ namespace bbPackRecalage
        void MyTimer::Notify()
        {
                _box->Process();
+               _box->bbSignalOutputModification(std::string("Out")); 
        }
 
+
        
 
 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,ImageSwitcherBox)
@@ -30,8 +32,9 @@ void ImageSwitcherBox::Process()
                myTimer->Start(time);
                oldTime = time;
        }
-       else if(oldTime != time)
+       else if(oldTime != time && myTimer != NULL)
        {
+               myTimer->Stop();
                myTimer->Start(time);
                oldTime = time;
        }
@@ -55,8 +58,8 @@ void ImageSwitcherBox::bbUserSetDefaultValues()
 {
        myTimer = NULL;
        change = false;
-       time = -1;
-       oldTime = -1;
+       time = 500;
+       oldTime = 500;
 }
 void ImageSwitcherBox::bbUserInitializeProcessing()
 {