]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbs
5780777b162c4a6103a38e3983daf39c89a6f3ee
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / PlaneViewer-MHD.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include wx
12 include creaMaracasVisu
13 include creaVtk
14 include std
15
16 author "Author ??"
17 description "Description ??"
18 category "<VOID>"
19
20 new wx:FileSelector Box00
21   set Box00.Message "mhd file"
22   set Box00.Title "mhd file"
23
24 new creaMaracasVisu:ViewerNV Box01
25   set Box01.nTypeView "0"
26
27 new creaVtk:ReadMHDPlane Box02
28
29 new wx:Slider Box03
30   set Box03.Label "true"
31   set Box03.ReactiveOnTrack "true"
32   set Box03.Title "Slice Z"
33
34 new wx:LayoutSplit Box04
35   set Box04.Orientation "H"
36
37 new wx:LayoutTab Box05
38
39 new std:ConcatStrings Box07
40
41 new creaVtk:MHDFileInfo Box08
42
43 new std:GetVectorIntElement Box09
44   set Box09.I "2"
45
46 new std:MathOperation Box10
47   set Box10.In2 "-1"
48
49 new wx:LayoutLine Box16
50   set Box16.WinTitle "Image XY (.mhd)"
51
52 new wx:OutputText Box14
53   set Box14.Title "Spacing"
54
55 new wx:OutputText Box15
56   set Box15.Title "Dim"
57
58 new wx:OutputText Box17
59   set Box17.Title "DimSize"
60
61 new wx:OutputText Box18
62   set Box18.Title "FileName"
63
64 new wx:OutputText Box19
65   set Box19.Title "Format"
66
67
68 connect Box02.Out Box01.In
69
70 connect Box01.Widget Box04.Widget2
71
72 connect Box05.Widget Box04.Widget1
73
74 connect Box07.Out Box02.FileName
75
76 connect Box07.Out Box08.FileName
77
78 connect Box08.DimSize Box09.In
79
80 connect Box09.Out Box10.In1
81
82 connect Box10.Out Box03.Max
83
84 connect Box03.BoxChange Box01.BoxExecute
85
86 connect Box03.Widget Box16.Widget1
87
88 connect Box16.Widget Box05.Widget1
89
90 connect Box03.Out Box02.Slice
91
92 connect Box00.Out Box07.In1
93
94 connect Box08.ElementSpacing Box14.In
95
96 connect Box08.Dim Box15.In
97
98 connect Box08.DimSize Box17.In
99
100 connect Box00.Out Box18.In
101
102 connect Box08.ElementType Box19.In
103
104 connect Box15.Widget Box16.Widget2
105
106 connect Box17.Widget Box16.Widget3
107
108 connect Box14.Widget Box16.Widget4
109
110 connect Box19.Widget Box16.Widget5
111
112 connect Box18.Widget Box16.Widget6
113
114
115
116 # Complex input ports
117 exec Box04