]> Creatis software - creaMiniTools.git/blobdiff - bbtk_package_creaMiniTools/bbs/appli/resampling.bbs
#2847 CreaMiniTools Bug New Normal - Not show the VTK OutputWindow (with warnings...
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / resampling.bbs
index 3d238a7e62feb8bfb6f8b9feeb792591be64d55c..1f0fa47dd746ecd5d0887a61f102fb4dc869ace0 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
-# - BBTKGEditor v 1.2 BBS BlackBox Script
-# - /Users/davila/Desktop/tmpBBTK-BBS/resampling.bbs
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/resampling.bbs
 # ----------------------------------
 
 # BBTK GEditor Script
 
 include std
 include itkvtk
-include wx
 include itk
 include creaMaracasVisu
-include creaMiniTools
+include wx
 include std
+include creaImageIO
+include toolsbbtk
+include creaVtk
 
 author "Author ??"
 description "Description ??"
 category "<VOID>"
 
-new FileSelector Box00
-
-new ImageReader Box01
-
-new ResampleImageFilter Box02
+new itk:ResampleImageFilter Box02
   set Box02.Spacing "0.097 0.097 0.097"
 
-new ViewerNV Box03
+new creaMaracasVisu:ViewerNV Box03
 
-new CommandButton Box04
+new wx:CommandButton Box04
   set Box04.Label "Write mhd image"
 
-new LayoutSplit Box05
+new wx:LayoutSplit Box05
   set Box05.Proportion 15
 
-new ImageWriter Box06
+new itk:ImageWriter Box06
 
-new FileSelector Box07
+new wx:FileSelector Box07
   set Box07.OpenSave Save
 
-new ImagePropertiesWidget Box08
-
-new CommandButton Box09
+new wx:CommandButton Box09
   set Box09.Label "Run resampling"
 
-new LayoutSplit Box11
-  set Box11.Orientation H
-
-new LayoutSplit Box12
-  set Box12.Proportion 90
-
-new LayoutLine Box13
+new wx:LayoutLine Box13
   set Box13.Orientation V
 
-new InputText Box14
-  set Box14.In 1
-  set Box14.Title "NewSpacing X"
-
-new InputText Box16
-  set Box16.In 1
-  set Box16.Title "NewSpacing Y"
-
-new InputText Box17
-  set Box17.In 1
-  set Box17.Title "NewSpacing Z"
-
-new ConcatStrings Box18
-  set Box18.In2 " "
-  set Box18.In4 " "
+new wx:InputText Box14
+  set Box14.In "1 1 1"
+  set Box14.Title "NewSpacing"
 
-new RadioButton Box19
+new wx:RadioButton Box19
   set Box19.In 0
   set Box19.In0 Linear
   set Box19.In1 BSpline
   set Box19.In2 NearestNeighbor
   set Box19.Title Interpolation
 
-new StringSelect Box20
-  set Box20.In1 Linear
-  set Box20.In2 BSpline
-  set Box20.In3 NearestNeighbor
+new std:StringSelect Box20
+  set Box20.In0 "Linear"
+  set Box20.In1 "BSpline"
+  set Box20.In2 "NearestNeighbor"
+
+new creaImageIO:ImagesChooserDialogBox Box21
+
+new wx:LayoutSplit Box22
+  set Box22.Proportion 20
+
+new creaMaracasVisu:ViewerNV Box23
+  set Box23.nTypeView "0"
+
+new toolsbbtk:ImageVtkPropertiesWidget Box24
+
+new creaVtk:OutputWindow Box25
+
+new wx:LayoutSplit Box26
+  set Box26.Orientation H
+  set Box26.Proportion 75
 
 
-connect Box00.Out Box01.In
-connect Box01.Out Box02.In
 connect Box02.Out Box03.In
+
 connect Box03.Widget Box05.Widget2
+
 connect Box04.Widget Box05.Widget1
+
 connect Box07.Out Box06.Filename
+
 connect Box02.Out Box06.In
+
 connect Box04.BoxChange Box06.BoxExecute
-connect Box01.Out Box08.in
-connect Box09.Widget Box12.Widget2
-connect Box11.Widget Box12.Widget1
+
 connect Box14.Widget Box13.Widget1
-connect Box08.widget Box11.Widget1
-connect Box13.Widget Box11.Widget2
-connect Box16.Widget Box13.Widget2
-connect Box17.Widget Box13.Widget3
-connect Box14.Out Box18.In1
-connect Box18.Out Box02.Spacing
+
 connect Box19.Out Box20.In
+
 connect Box19.Widget Box13.Widget4
+
 connect Box20.Out Box02.Interpolation
+
 connect Box09.BoxChange Box05.BoxExecute
-connect Box16.Out Box18.In3
-connect Box17.Out Box18.In5
 
-exec Box12
+connect Box21.Out Box02.In
+
+connect Box23.Widget Box22.Widget2
+
+connect Box21.Out Box23.In
+
+connect Box21.Out Box24.in
+
+connect Box24.widget Box22.Widget1
+
+connect Box14.Out Box02.Spacing
+
+connect Box24.Spacing Box14.In
+
+connect Box09.Widget Box13.Widget5
+
+connect Box21.FileName Box24.FileName
+
+connect Box22.Widget Box26.Widget1
+
+connect Box13.Widget Box26.Widget2
+
+
+
+# Complex input ports
+exec Box25
+exec Box26