]> Creatis software - bbtk.git/blob - packages/toolsbbtk/bbs/boxes/SaveMHD_infoCrop-Button.bbs
b3fe485e04dbb460569f317635c94b3ca76ed1af
[bbtk.git] / packages / toolsbbtk / bbs / boxes / SaveMHD_infoCrop-Button.bbs
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 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include vtk
10 include std
11
12 define SaveMHD_infoCrop-Button toolsbbtk
13
14 author "Author ??"
15 description "Description ??"
16
17 category "<VOID>"
18
19 new CommandButton Box00
20   set Box00.Label "Save Image (*.mhd and *.mhd_infoCrop)"
21
22 new MetaImageWriter Box01
23
24 new FileSelector Box02
25   set Box02.OpenSave Save
26
27 new StringWriter Box03
28
29 new ConcatStrings Box04
30   set Box04.In1 "Index "
31
32 new ConcatStrings Box05
33   set Box05.In2 "_infoCrop"
34
35 new ConcatStrings Box06
36   set Box06.In1 "Size "
37
38 new ConcatStrings Box07
39   set Box07.In1 "FileName "
40
41
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
52
53
54 # Complex input ports
55 input In Box01.In " "
56 input Size Box06.In2 " "
57 input Index Box04.In2 " "
58
59 # Complex output ports
60 output Widget Box00.Widget " "
61
62 endefine