#include "vtkImageData.h"
#include <wx/timer.h>
+#include <wx/wx.h>
namespace bbPackRecalage
{
BBTK_DECLARE_INPUT(In1,vtkImageData*);
BBTK_DECLARE_INPUT(In2,vtkImageData*);
BBTK_DECLARE_INPUT(Time,int);
+ BBTK_DECLARE_INPUT(On,bool);
BBTK_PROCESS(Process);
BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
void Process();
BBTK_CREATE_WIDGET(CreateWidget);
void CreateWidget(wxWindow*);
+ public:
+ void Change();
+
private:
bool change;
MyTimer *myTimer;
int time;
int oldTime;
+ bool _on;
+ bool firstTime;
};
BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageSwitcherBox,bbtk::WxBlackBox);
BBTK_INPUT(ImageSwitcherBox,In1,"First Image",vtkImageData*,"");
BBTK_INPUT(ImageSwitcherBox,In2,"Second Image",vtkImageData*,"");
BBTK_INPUT(ImageSwitcherBox,Time,"Time between image change",int,"");
+BBTK_INPUT(ImageSwitcherBox,On,"Defines if the switcher is turned on. ON = True.",bool,"");
BBTK_OUTPUT(ImageSwitcherBox,Out,"Image to be placed",vtkImageData*,"");
BBTK_END_DESCRIBE_BLACK_BOX(ImageSwitcherBox);
}