]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/src/bbPackRecalageImageSwitcherBox.h
*** empty log message ***
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageImageSwitcherBox.h
index 7bb5cdfcfc6323e9c30d8980913e56c141e1646d..0d3c18ffc47e6542fcc3dedec8bbd99da2934735 100644 (file)
@@ -7,6 +7,7 @@
 #include "vtkImageData.h"
 
 #include <wx/timer.h>
+#include <wx/wx.h>
 
 namespace bbPackRecalage
 {
@@ -38,12 +39,16 @@ class bbPackRecalage_EXPORT ImageSwitcherBox
   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);
@@ -55,7 +60,7 @@ BBTK_INPUT(ImageSwitcherBox,Title,"Title prepended to the Widget",std::string,""
 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,"Timer status. True = On.",bool,"");
+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);
 }