]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/Crop2.bbs
d54476dc8e1558e76c6bb723306bb6c7baf29bd1
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / Crop2.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /home/davila/Borrame/eraseme/lea/Crop2.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaImageIO
12 include wx
13 include toolsbbtk
14 include creaMaracasVisu
15 include vtk
16
17 author "Author ??"
18 description "Description ??"
19 category "<VOID>"
20
21 new creaImageIO:ImagesChooserDialogBox Box00
22
23 new wx:InputText Box05
24   set Box05.In "0 0 0"
25   set Box05.ReactiveOnKeystroke "true"
26   set Box05.Title "Index"
27
28 new wx:InputText Box06
29   set Box06.In "100 100 100"
30   set Box06.Title "Size"
31
32 new toolsbbtk:SaveMHD_infoCrop-Button Box08
33
34 new wx:LayoutLine Box09
35
36 new creaMaracasVisu:ViewerNV Box14
37   set Box14.nTypeView "6 1 2 0"
38
39 new wx:LayoutSplit Box15
40   set Box15.Orientation "H"
41
42 new vtk:ExtractVtkImageFilter Box16
43
44
45 connect Box08.Widget Box09.Widget3
46
47 connect Box05.Widget Box09.Widget1
48
49 connect Box06.Widget Box09.Widget2
50
51 connect Box06.Out Box08.Size
52
53 connect Box05.Out Box08.Index
54
55 connect Box00.Out Box14.In
56
57 connect Box14.Widget Box15.Widget2
58
59 connect Box09.Widget Box15.Widget1
60
61 connect Box05.Out Box16.Index
62
63 connect Box00.Out Box16.In
64
65 connect Box06.Out Box16.Size
66
67 connect Box16.Out Box08.In
68
69
70
71 # Complex input ports
72 exec Box15