X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=PackRecalage%2Fsrc%2FbbPackRecalageImageSwitcherBox.cxx;h=919e32cbf505fb7d5248e5402c92ef77bdad00bb;hb=9c2347c406ff902952cad52796523e6524b210cf;hp=c5eee38fd2f570b769e6fc72512dd6737a57d11b;hpb=7c0413065745f2cd119bbb1f352770d61be6b21c;p=creaRigidRegistration.git diff --git a/PackRecalage/src/bbPackRecalageImageSwitcherBox.cxx b/PackRecalage/src/bbPackRecalageImageSwitcherBox.cxx index c5eee38..919e32c 100644 --- a/PackRecalage/src/bbPackRecalageImageSwitcherBox.cxx +++ b/PackRecalage/src/bbPackRecalageImageSwitcherBox.cxx @@ -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() {