]> Creatis software - creaMiniTools.git/blob - appli/template_creaPatientsSystem/scripts/00500_Validate.bbs
815ad6ddfdc6773c5a939c9b741441fc2d1cc6a4
[creaMiniTools.git] / appli / template_creaPatientsSystem / scripts / 00500_Validate.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00500_Validate.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaMaracasVisu
12 include wx
13 include vtk
14 include creaVtk
15 include std
16
17 author "Author ??"
18 description "Description ??"
19 category "<VOID>"
20
21 new creaMaracasVisu:ViewerNV Box02
22
23 new wx:LayoutSplit Box03
24   set Box03.Orientation "H"
25
26 new vtk:vtkImageDataPointerRelay Box05
27
28 new creaVtk:OutputWindow Box08
29
30 new wx:LayoutLine Box09
31   set Box09.WinTitle "00500_Validate.bbs"
32
33 new vtk:MarchingCubes Box13
34   set Box13.Value "128"
35
36 new vtk:PolyDataToActor Box14
37   set Box14.Colour "1 1 1"
38
39 new wx:LayoutLine Box17
40
41 new std:Div Box18
42   set Box18.In2 "100"
43
44 new std:MultipleInputs Box19
45
46 new vtk:UpdateRender Box20
47   set Box20.Active "true"
48
49 new vtk:MetaImageReader Box21
50
51 new std:ConcatStrings Box34
52
53 new std:ConcatStrings Box36
54
55 new std:ConcatStrings Box37
56
57 new std:ConcatStrings Box38
58   set Box38.In1 "/<CORE>/davila/<ALGO>/Test_01/<PATIENT>/Condition_01"
59
60 new std:ReplaceCleanString Box39
61   set Box39.Search "<CORE>"
62
63 new std:ReplaceCleanString Box40
64   set Box40.Search "<PATIENT>"
65
66 new std:ConcatStrings Box41
67   set Box41.In2 "/results/"
68
69 new std:ConcatStrings Box42
70   set Box42.In2 "/image.mha"
71
72 new std:ReplaceCleanString Box44
73   set Box44.Replace "00100_OriginalImages"
74   set Box44.Search "<ALGO>"
75
76 new std:ConcatStrings Box45
77   set Box45.In2 "/image.mha"
78
79 new std:ReplaceCleanString Box46
80   set Box46.Replace "00300_Filter"
81   set Box46.Search "<ALGO>"
82
83 new vtk:vtkImageDataPointerRelay Box47
84
85 new vtk:MetaImageReader Box48
86
87 new wx:CommandButton Box58
88   set Box58.Label "Validate & Exit"
89
90 new std:MultipleInputs Box59
91
92 new std:Exit Box60
93
94 new wx:OutputText Box62
95   set Box62.Title "Patient"
96
97 new std:ConcatStrings Box66
98   set Box66.In2 ".final.mha"
99
100 new creaMaracasVisu:ColorLayerImageView Box69
101   set Box69.ColorBarPosition "-100 -100"
102   set Box69.TypeControlsInterface "2"
103   set Box69.lstTransparenceBoundaries "0"
104
105
106 connect Box02.Widget Box03.Widget2
107
108 connect Box05.Out Box02.In
109
110 connect Box03.Widget Box09.Widget1
111
112 connect Box13.Out Box14.In
113
114 connect Box17.Widget Box03.Widget1
115
116 connect Box18.Out Box14.Opacity
117
118 connect Box19.BoxChange Box14.BoxExecute
119
120 connect Box14.BoxChange Box20.BoxExecute
121
122 connect Box02.Renderer1 Box14.Renderer
123
124 connect Box02.Renderer1 Box20.Renderer
125
126 connect Box13.BoxChange Box19.In4
127
128 connect Box02.BoxChange Box13.BoxExecute
129
130
131
132
133 connect Box38.Out Box39.In
134
135 connect Box36.Out Box39.Replace
136
137 connect Box39.Out Box40.In
138
139 connect Box37.Out Box40.Replace
140
141 connect Box34.Out Box41.In1
142
143 connect Box40.Out Box41.In3
144
145 connect Box42.Out Box21.In
146
147 connect Box21.Out Box05.In
148
149 connect Box41.Out Box44.In
150
151 connect Box44.Out Box42.In1
152
153 connect Box46.Out Box45.In1
154
155 connect Box41.Out Box46.In
156
157 connect Box48.Out Box47.In
158
159 connect Box47.Out Box13.In
160
161 connect Box60.BoxChange Box59.In9
162
163 connect Box58.BoxChange Box59.BoxExecute
164
165 connect Box42.Out Box62.In
166
167 connect Box58.Widget Box17.Widget8
168
169 connect Box62.Widget Box17.Widget1
170
171 connect Box45.Out Box66.In1
172
173 connect Box66.Out Box48.In
174
175 connect Box47.Out Box69.In
176
177 connect Box02.wxVtkBaseView2 Box69.WxVtkBaseView
178
179 connect Box02.wxVtkBaseView3 Box69.WxVtkBaseView1
180
181 connect Box02.wxVtkBaseView4 Box69.WxVtkBaseView2
182
183 connect Box69.Widget Box17.Widget5
184
185 connect Box69.OutOpacity Box18.In1
186
187
188
189 # Complex input ports
190 input BaseDir Box34.In1 " "
191 input CoreID Box36.In1 " "
192 input PatientID Box37.In1 " "
193 exec Box08
194 exec Box09