1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/All3/creatools_source/bbtk/packages/toolsbbtk/bbs/boxes/SaveMHD_infoCrop-Button.bbs
4 # ----------------------------------
12 define SaveMHD_infoCrop-Button toolsbbtk
15 description "Description ??"
19 new CommandButton Box00
20 set Box00.Label "Save Image (*.mhd and *.mhd_infoCrop)"
22 new MetaImageWriter Box01
24 new FileSelector Box02
25 set Box02.OpenSave Save
27 new StringWriter Box03
29 new ConcatStrings Box04
30 set Box04.In1 "Index "
32 new ConcatStrings Box05
33 set Box05.In2 "_infoCrop"
35 new ConcatStrings Box06
38 new ConcatStrings Box07
39 set Box07.In1 "FileName "
42 connect Box00.BoxChange Box01.BoxExecute
43 connect Box04.Out Box03.In0
44 connect Box05.Out Box03.FileName
45 connect Box00.BoxChange Box03.BoxExecute
46 connect Box00.BoxChange Box02.BoxExecute
47 connect Box06.Out Box03.In1
48 connect Box02.Out Box05.In1
49 connect Box07.Out Box03.In2
50 connect Box02.Out Box01.Filename
51 connect Box02.Out Box07.In2
56 input Size Box06.In2 " "
57 input Index Box04.In2 " "
59 # Complex output ports
60 output Widget Box00.Widget " "