]> Creatis software - bbtk.git/commitdiff
#3535 RescaleSlopeIntercept recreate filter
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Thu, 17 Apr 2025 14:50:53 +0000 (16:50 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Thu, 17 Apr 2025 14:50:53 +0000 (16:50 +0200)
packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx
packages/wx/src/bbwxLayoutSplit.h
packages/wx/src/bbwxLayoutTab.h

index 5c7eb64165a54aa8bac28ee51f2683c66e7d6180..3b5535cd2e67ff533ddb67772d4af4b7db243cbc 100644 (file)
@@ -63,8 +63,19 @@ void RescaleSlopeIntercept::Process()
        double  A=bbGetInputA();
        double  B=bbGetInputB();
        
-       if (bbGetInputIn()!=0)
+       if (bbGetInputIn()!=NULL)
        {
+
+        if (filter1!=NULL){
+            mchange->Delete();
+            filter1->Delete();
+            filter2->Delete();
+            filter1    = vtkImageShiftScale::New();
+            filter2    = vtkImageShiftScale::New();
+            mchange = vtkImageChangeInformation::New();
+        }
+        
+        
                int outputformat = bbtkStaticLecture::GetTypeFormat( bbGetInputOutputFormat() , bbGetInputIn() );
                bbGetInputIn()->GetScalarRange(range);
                bbGetInputIn()->GetSpacing(spc);
index 02ac02c5c0dbe09faed7d3f9dc3d96721d140298..39c23e331e04ecddeb7f6362383eb10f0972df1b 100644 (file)
@@ -88,7 +88,7 @@ namespace bbwx
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutSplit,bbtk::WxBlackBox);
   BBTK_NAME("LayoutSplit");
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
-  BBTK_DESCRIPTION("(C++,Python) Widget which splits a window in two fixed size parts (wxSplitterWindow)");
+  BBTK_DESCRIPTION("(C++,Python,JavaScript) Widget which splits a window in two fixed size parts (wxSplitterWindow)");
   // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
   BBTK_INPUT(LayoutSplit,Widget1,"Upper or left widget",wxWindow*,"");
   BBTK_INPUT(LayoutSplit,Widget2,"Lower or right widget",wxWindow*,"");
index f00c62e4ecbb88dfb0a4d9980c5e70ecf2c2c43f..157a3e64c17db9479485ff33542a277406028949 100644 (file)
@@ -93,7 +93,7 @@ namespace bbwx
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(LayoutTab,bbtk::WxBlackBox);
   BBTK_NAME("LayoutTab");
   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
-  BBTK_DESCRIPTION("(C++, Python) LayoutTab widget (wxNotebook) The label of each 'note book'  will be the name of the object it contains");
+  BBTK_DESCRIPTION("(C++,Python,JavaScript) LayoutTab widget (wxNotebook) The label of each 'note book'  will be the name of the object it contains");
     // Already inserted for any WxBlackBox  BBTK_CATEGORY("widget");
     BBTK_INPUT(LayoutTab,Widget1,"widget 1",wxWindow*,"");
     BBTK_INPUT(LayoutTab,Widget2,"widget 2",wxWindow*,"");