X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_package_creaMiniTools%2Fbbs%2Fappli%2FimageWriterExample.bbs;h=4a2ec8b44ed0a59bc55b2c8dd7c91bc7909e11d7;hb=080c44f5065f1ca512e8b20a065460c4fffd9c7b;hp=95b97b1e581b28f2d7edf3b26f198356cf7da8e1;hpb=83be06b29318074dc1e29d49bb12939648c6c997;p=creaMiniTools.git diff --git a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs index 95b97b1..4a2ec8b 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs @@ -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 "" -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