]> Creatis software - creaMiniTools.git/blobdiff - bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs
#3071 CreaMiniTools Feature New Normal - imageWriterExample with compress option
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / imageWriterExample.bbs
index 95b97b1e581b28f2d7edf3b26f198356cf7da8e1..4a2ec8b44ed0a59bc55b2c8dd7c91bc7909e11d7 100755 (executable)
@@ -1,6 +1,6 @@
 # ----------------------------------
-# - BBTKGEditor v 1.2 BBS BlackBox Script
-# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - imageWriterExample.bbs
 # ----------------------------------
 
 # BBTK GEditor Script
@@ -10,34 +10,56 @@ include std
 include itkvtk
 include creaMaracasVisu
 include wx
-include vtk
 include creaImageIO
+include vtk
 
 author "Author ??"
 description "Description ??"
 category "<VOID>"
 
-new ViewerNV Box03
+new creaMaracasVisu:ViewerNV Box03
 
-new CommandButton Box04
+new wx:CommandButton Box04
   set Box04.Label "Save   (Don't forget the .mhd extension)"
 
-new MetaImageWriter Box05
-
-new FileSelector Box06
+new wx:FileSelector Box06
+  set Box06.BoxProcessMode "Reactive"
   set Box06.OpenSave "Save"
 
-new LayoutSplit Box07
+new wx:LayoutSplit Box07
   set Box07.Proportion 85
 
-new ImagesChooserDialogBox Box08
+new creaImageIO:ImagesChooserDialogBox Box08
+
+new wx:LayoutLine Box10
+  set Box10.Orientation "H"
+
+new wx:CheckBox Box11
+  set Box11.In "false"
+  set Box11.Title "Compress"
+
+new vtk:MetaImageWriter Box12
 
 
-connect Box06.Out Box05.Filename
 connect Box03.Widget Box07.Widget1
-connect Box04.Widget Box07.Widget2
-connect Box04.BoxChange Box05.BoxExecute
+
 connect Box08.Out Box03.In
-connect Box08.Out Box05.In
 
+connect Box04.Widget Box10.Widget2
+
+connect Box10.Widget Box07.Widget2
+
+connect Box11.Widget Box10.Widget1
+
+connect Box06.Out Box12.Filename
+
+connect Box08.Out Box12.In
+
+connect Box11.Out Box12.Compression
+
+connect Box04.BoxChange Box12.BoxExecute
+
+
+
+# Complex input ports
 exec Box07