]> Creatis software - creaRigidRegistration.git/commitdiff
ImageSwitcherBox default values
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 27 Apr 2016 08:09:58 +0000 (10:09 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 27 Apr 2016 08:09:58 +0000 (10:09 +0200)
PackRecalage/src/bbPackRecalageImageSwitcherBox.cxx
PackRecalage/src/bbPackRecalageImageSwitcherBox.h

index 0279f475ef5d5f760a92eded775a15a34ba2fe0d..dda210b5eb67a20a8f616254c59cd75220021c99 100644 (file)
@@ -112,8 +112,9 @@ void ImageSwitcherBox::bbUserSetDefaultValues()
 {
        myTimer         = NULL;
        change          = false;
 {
        myTimer         = NULL;
        change          = false;
-       time            = 500;
-       oldTime         = 500;
+       time            = 150;
+       oldTime         = 150;
+       bbSetInputTime(time);
        firstTime       = true;
        _on             = false;
 }
        firstTime       = true;
        _on             = false;
 }
index 2c58b5d80c2eb0e342d2788d72f81072fd1f52af..dbbf1eabd89e8bae6eab58dfbafb43b296de6791 100644 (file)
@@ -85,7 +85,7 @@ BBTK_CATEGORY("__CategoryBlackBox__");
 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,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,Time,"Time between image change (default 50)",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);
 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);