1 #include "bbPackRecalageImageSwitcherBox.h"
2 #include "bbPackRecalagePackage.h"
3 namespace bbPackRecalage
5 MyTimer::MyTimer(ImageSwitcherBox *box): wxTimer()
15 void MyTimer::Notify()
18 _box->bbSignalOutputModification(std::string("Out"));
21 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,ImageSwitcherBox)
22 BBTK_BLACK_BOX_IMPLEMENTATION(ImageSwitcherBox,bbtk::WxBlackBox);
24 void ImageSwitcherBox::Change()
28 bbSetOutputOut(bbGetInputIn2());
33 bbSetOutputOut(bbGetInputIn1());
38 void ImageSwitcherBox::Process()
40 time = bbGetInputTime();
45 if(bbGetInputIn1() != NULL)
47 bbSetOutputOut(bbGetInputIn1());
50 else if(bbGetInputIn2() != NULL)
52 bbSetOutputOut(bbGetInputIn2());
59 myTimer = new MyTimer(this);
64 if(oldTime != time && myTimer !=NULL)
75 else if(!myTimer->IsRunning())
80 else if(oldTime != time)
87 void ImageSwitcherBox::CreateWidget(wxWindow* parent)
89 bbSetOutputWidget( new wxStaticText(parent, -1, _T("Image Switcher")) );
91 void ImageSwitcherBox::bbUserSetDefaultValues()
100 void ImageSwitcherBox::bbUserInitializeProcessing()
104 void ImageSwitcherBox::bbUserFinalizeProcessing()
110 // EO namespace bbPackRecalage