X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=PackRecalage%2Fsrc%2FbbPackRecalageImageSwitcherBox.h;h=0d3c18ffc47e6542fcc3dedec8bbd99da2934735;hb=4b3375d0842a53375e79e35e0b0e690f485534bf;hp=7bb5cdfcfc6323e9c30d8980913e56c141e1646d;hpb=056c44ebcefce5a0c1d0b5cd162a63d5805df456;p=creaRigidRegistration.git diff --git a/PackRecalage/src/bbPackRecalageImageSwitcherBox.h b/PackRecalage/src/bbPackRecalageImageSwitcherBox.h index 7bb5cdf..0d3c18f 100644 --- a/PackRecalage/src/bbPackRecalageImageSwitcherBox.h +++ b/PackRecalage/src/bbPackRecalageImageSwitcherBox.h @@ -7,6 +7,7 @@ #include "vtkImageData.h" #include +#include 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); }