]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/crop.bbs
65114bd87e29d2c42c816efa18e5a3b492cc32f2
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / crop.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script
3 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/crop.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaMaracasVisu
12 include wx
13 include creaImageIO
14 include vtk
15 include std
16
17 author "Author ??"
18 description "Description ??"
19 category "<VOID>"
20
21 new ViewerNV Box03
22   set Box03.nTypeView "6 1 2 -1"
23
24 new ContourVOI Box05
25
26 new LayoutSplit Box06
27   set Box06.Proportion 15
28
29 new LayoutLine Box07
30
31 new CommandButton Box08
32   set Box08.Label "Run Crop"
33
34 new ViewerNV Box09
35
36 new ImageChangeInformation Box10
37
38 new LayoutSplit Box11
39   set Box11.Proportion 15
40
41 new ImagesChooserDialogBox Box13
42
43 new OutputText Box14
44   set Box14.Title "Index"
45
46 new OutputText Box15
47   set Box15.Title "Size"
48
49 new LayoutLine Box16
50
51 new CommandButton Box17
52   set Box17.Label "Save Image (*.mhd)"
53
54 new MetaImageWriter Box18
55
56 new FileSelector Box19
57   set Box19.OpenSave Save
58
59 new StringWriter Box20
60
61 new ConcatStrings Box21
62   set Box21.In1 "Index "
63
64 new ConcatStrings Box22
65   set Box22.In2 "_infoCrop"
66
67 new ConcatStrings Box23
68   set Box23.In1 "Size "
69
70 new ConcatStrings Box24
71   set Box24.In1 "FileName "
72
73
74 connect Box03.Widget Box06.Widget2
75 connect Box05.Widget Box07.Widget1
76 connect Box08.Widget Box07.Widget2
77 connect Box07.Widget Box06.Widget1
78 connect Box08.BoxChange Box05.BoxExecute
79 connect Box05.VOI Box10.In
80 connect Box10.Out Box09.In
81 connect Box09.Widget Box11.Widget2
82 connect Box08.BoxChange Box11.BoxExecute
83 connect Box13.Out Box05.In
84 connect Box13.Out Box03.In
85 connect Box03.wxVtkBaseView4 Box05.wxVtkBaseView
86 connect Box05.Index Box14.In
87 connect Box05.Size Box15.In
88 connect Box14.Widget Box16.Widget1
89 connect Box15.Widget Box16.Widget2
90 connect Box16.Widget Box11.Widget1
91 connect Box17.Widget Box16.Widget3
92 connect Box17.BoxChange Box18.BoxExecute
93 connect Box10.Out Box18.In
94 connect Box21.Out Box20.In0
95 connect Box22.Out Box20.FileName
96 connect Box17.BoxChange Box20.BoxExecute
97 connect Box17.BoxChange Box19.BoxExecute
98 connect Box05.Index Box21.In2
99 connect Box05.Size Box23.In2
100 connect Box23.Out Box20.In1
101 connect Box19.Out Box22.In1
102 connect Box22.Out Box24.In2
103 connect Box24.Out Box20.In2
104 connect Box19.Out Box18.Filename
105
106 exec Box06