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