]> Creatis software - bbtk.git/commitdiff
#3536 Bug StringTo vtk9itk5wx3-macos
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 17 Jun 2025 13:03:38 +0000 (15:03 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 17 Jun 2025 13:03:38 +0000 (15:03 +0200)
packages/std/src/bbstdStringTo.cxx
packages/vtk/src/bbvtkCreateImage.h
packages/wx/src/bbwxCommandButton.h

index 09de441616111e90457c5d55a1d67f89a2368dce..055e60ee7f416f085947701a6d0e4a63c16cea8f 100644 (file)
@@ -49,24 +49,25 @@ namespace bbstd
   // Template specialization of DoIt
   template <> void StringTo<bool> ::DoIt()
   {
   // Template specialization of DoIt
   template <> void StringTo<bool> ::DoIt()
   {
-    if ( (bbGetInputIn()=="true") || 
+    if ( (bbGetInputIn()=="true") ||
          (bbGetInputIn()=="TRUE") || 
          (bbGetInputIn()=="True") || 
          (bbGetInputIn()=="1")     )  
     {
          (bbGetInputIn()=="TRUE") || 
          (bbGetInputIn()=="True") || 
          (bbGetInputIn()=="1")     )  
     {
-       bbSetOutputOut(true);
-    }
-    else if ( (bbGetInputIn()=="false") || 
-              (bbGetInputIn()=="FALSE") ||
-              (bbGetInputIn()=="False") ||
-              (bbGetInputIn()=="0") )  
+        bbSetOutputOut(true);
+    } else if ( (bbGetInputIn()=="false") ||
+              (bbGetInputIn()=="FALSE")   ||
+              (bbGetInputIn()=="False")   ||
+              (bbGetInputIn()=="0") )
     {   
     {   
-       bbSetOutputOut(false); 
-    }
-    else 
-    {
-       bbtkError("cannot convert '"<<bbGetInputIn()<<"' to a bool");
+        bbSetOutputOut(false);
+    } else {
+        printf("EED StringTo box  cannot convert  >>%s<<\n", bbGetInputIn().c_str() );
+//        bbtkError("cannot convert '"<<bbGetInputIn()<<"' to a bool");
+        bbSetOutputOut(true);
+
     }
     }
+        printf("EED StringTo 5\n");
   }
   
   // Template specialization of DoIt
   }
   
   // Template specialization of DoIt
index 59de7670dfb893bef6e2f05335620008c99e32fd..385dcf5e7d98b3a92340a50c169b47c37b48dcb5 100644 (file)
@@ -72,7 +72,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(CreateImage,bbtk::AtomicBlackBox);
        
        BBTK_NAME("CreateImage");
        BBTK_AUTHOR("Info-Dev");
        
        BBTK_NAME("CreateImage");
        BBTK_AUTHOR("Info-Dev");
-       BBTK_DESCRIPTION("(C++,Python)Create a new vtkImageData");
+       BBTK_DESCRIPTION("(C++,Python,JavaScript) Create a new vtkImageData");
        BBTK_CATEGORY("Filter");
        
        BBTK_INPUT(CreateImage,Dimensions,"[SizeX SizeY SizeZ] of the image ([250 250 250] default)",std::vector<int>,"");
        BBTK_CATEGORY("Filter");
        
        BBTK_INPUT(CreateImage,Dimensions,"[SizeX SizeY SizeZ] of the image ([250 250 250] default)",std::vector<int>,"");
index aa4ac32c26fa24d1a9e7e73c0c71159548aef2dc..eb4b68e7e8788669dfc2877a296032815120db83 100644 (file)
@@ -88,7 +88,7 @@ namespace bbwx
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(CommandButton,bbtk::WxBlackBox); 
   BBTK_NAME("CommandButton"); 
   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr"); 
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(CommandButton,bbtk::WxBlackBox); 
   BBTK_NAME("CommandButton"); 
   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr"); 
-  BBTK_DESCRIPTION("Button which executes bbi commands"); 
+  BBTK_DESCRIPTION("(C++,JavaScript) Button which executes bbi commands"); 
   
   typedef std::vector<double> vectorcolour;
   
   
   typedef std::vector<double> vectorcolour;