1 #include "bbPackRecalageImageSwitcherBox.h"
2 #include "bbPackRecalagePackage.h"
3 namespace bbPackRecalage
5 MyTimer::MyTimer(ImageSwitcherBox *box): wxTimer()
14 void MyTimer::Notify()
17 _box->bbSignalOutputModification(std::string("Out"));
23 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,ImageSwitcherBox)
24 BBTK_BLACK_BOX_IMPLEMENTATION(ImageSwitcherBox,bbtk::WxBlackBox);
25 void ImageSwitcherBox::Process()
27 time = bbGetInputTime();
32 myTimer = new MyTimer(this);
37 if(oldTime != time && myTimer !=NULL)
46 bbSetOutputOut(bbGetInputIn1());
51 bbSetOutputOut(bbGetInputIn2());
55 void ImageSwitcherBox::CreateWidget(wxWindow* parent)
57 bbSetOutputWidget( new wxButton ( parent , -1 , _T("Start/Stop Image Change") ) );
59 void ImageSwitcherBox::bbUserSetDefaultValues()
67 void ImageSwitcherBox::bbUserInitializeProcessing()
71 void ImageSwitcherBox::bbUserFinalizeProcessing()
77 // EO namespace bbPackRecalage