1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_creaGM/scripts/00010_Menu.bbs
4 # ----------------------------------
7 # ----------------------
15 description "Description ??"
18 new wx:LayoutLine Box00
19 set Box00.WinTitle "B. Segmentation"
21 new wx:CommandButton Box01
22 set Box01.Label "Step 2. Initial Parameters"
26 set Box03.Selection "0"
27 set Box03.Title "Patient"
29 new std:FilesFromDirectory Box05
30 set Box05.Recursive "false"
33 new std:ConcatStrings Box06
34 set Box06.In2 "/results"
36 new std:ExecSystemCommand Box07
38 new std:ExecSystemCommand Box09
40 new std:ConcatStrings Box10
41 set Box10.In2 "results"
43 new std:ConcatStrings Box11
45 new std:ConcatStrings Box12
46 set Box12.In1 "mkdir "
48 new wx:CommandButton Box18
49 set Box18.Label "Step 5. Validation"
51 new std:ExecSystemCommand Box19
53 new std:ConcatStrings Box20
54 set Box20.In1 "bbi 00500_Validate.bbs "
57 new wx:CommandButton Box21
58 set Box21.Label "Step 3. Filter"
60 new std:ExecSystemCommand Box22
62 new wx:CommandButton Box26
63 set Box26.Label "Report"
65 new std:ExecSystemCommand Box27
67 new std:ConcatStrings Box28
68 set Box28.In1 "bbi Report.bbs "
69 set Box28.In2 "BaseDir="
72 new wx:CommandButton Box29
73 set Box29.Label "Comments"
75 new std:ExecSystemCommand Box30
77 new std:ConcatStrings Box31
78 set Box31.In1 "bbi Comments.bbs "
81 new wx:LayoutLine Box32
82 set Box32.WinTitle "C. Summary"
84 new wx:LayoutTab Box33
85 set Box33.WinTitle "B. Segmentation"
87 new wx:OutputText Box35
89 new wx:CommandButton Box39
90 set Box39.Label "Step 4. Correction"
92 new std:ExecSystemCommand Box43
94 new std:StringSelect Box45
97 new std:Configuration Box47
99 new std:StringSelect Box50
101 new std:ConcatStrings Box51
102 set Box51.In1 "start /b "
104 new std:ConcatStrings Box52
105 set Box52.In1 "start /b "
107 new std:StringSelect Box53
109 new std:ConcatStrings Box54
110 set Box54.In1 "start /b "
112 new std:StringSelect Box55
114 new std:ConcatStrings Box56
115 set Box56.In1 "start /b "
117 new std:StringSelect Box57
119 new std:ConcatStrings Box58
120 set Box58.In1 "start /b "
122 new std:StringSelect Box61
124 new std:ConcatStrings Box62
125 set Box62.In1 "start /b "
127 new wx:CommandButton Box63
128 set Box63.Label "Reset Patient"
130 new std:ExecSystemCommand Box64
132 new std:ConcatStrings Box65
133 set Box65.In1 "bbi ResetPatient.bbs "
136 new std:StringSelect Box66
138 new std:ConcatStrings Box67
139 set Box67.In1 "start /b "
141 new std:ConcatStrings Box73
142 set Box73.In1 "<VOID>"
145 new wx:CommandButton Box84
146 set Box84.Label "6. Push DB"
148 new std:ExecSystemCommand Box85
150 new std:ConcatStrings Box86
151 set Box86.In1 "bbi 00600_PushData.bbs "
152 set Box86.In4 " Hospital="
155 new std:StringSelect Box87
157 new std:ConcatStrings Box88
158 set Box88.In1 "start /b "
160 new wx:LayoutLine Box89
161 set Box89.Orientation "H"
163 new wx:ComboBox Box90
165 set Box90.Selection "0"
166 set Box90.Title "Core"
168 new wx:CommandButton Box91
169 set Box91.Label "Step 1. Insert Data"
171 new std:ExecSystemCommand Box92
173 new std:ConcatStrings Box93
175 set Box93.In2 "00100_InsertDataA.bbs "
176 set Box93.In4 " ProjectDir="
179 new std:StringSelect Box94
181 new std:ConcatStrings Box95
182 set Box95.In1 "start /b "
184 new wx:LayoutTab Box97
186 new wx:LayoutTab Box98
188 new wx:LayoutLine Box99
189 set Box99.WinHeight "550"
190 set Box99.WinTitle "A. InputData"
191 set Box99.WinWidth "450"
193 new wx:CommandButton Box102
194 set Box102.Label "Myriad Girder DB"
196 new std:ExecSystemCommand Box103
198 new std:StringSelect Box105
200 new wx:OutputText Box108
202 new std:GetVectorStringElement Box112
204 new std:FilesFromDirectory Box113
207 new std:ConcatStrings Box114
208 set Box114.In1 "<VOID>"
211 new wx:CommandButton Box115
212 set Box115.Label "Refresh"
214 new std:ConcatStrings Box116
215 set Box116.In1 "BaseDir="
218 new std:ConcatStrings Box117
219 set Box117.In1 "PatientID="
222 new std:ConcatStrings Box118
225 new std:ConcatStrings Box119
226 set Box119.In1 "bbi "
227 set Box119.In2 "00200_InitialParameters.bbs "
230 new std:MultipleInputs Box120
232 new std:ConcatStrings Box121
233 set Box121.In1 "bbi "
234 set Box121.In2 "00300_Filter.bbs "
237 new std:ConcatStrings Box122
238 set Box122.In1 "bbi "
239 set Box122.In2 "00400_Correction.bbs "
242 new wx:CommandButton Box124
243 set Box124.Label "Results Dir"
245 new std:ExecSystemCommand Box125
247 new std:StringSelect Box126
249 new std:ConcatStrings Box127
250 set Box127.In1 "xdg-open "
253 new std:ConcatStrings Box128
254 set Box128.In2 "/results/"
256 new std:ConcatStrings Box129
257 set Box129.In1 "start /b "
259 new std:ReplaceCleanString Box130
260 set Box130.Search "<VOID>"
262 new std:ReplaceCleanString Box131
263 set Box131.Replace "\"
264 set Box131.Search "/"
266 new std:Configuration Box133
268 new std:Configuration Box139
270 new wx:StaticBox Box135
272 new wx:StaticBox Box136
274 new wx:StaticBox Box137
276 new std:ConcatStrings Box138
279 new std:ConcatStrings Box140
280 set Box140.In1 "/Users/davila/CreatisWork/tmpCharly/"
282 new std:ConcatStrings Box141
283 set Box141.In1 "VOID"
286 new std:ConcatStrings Box142
287 set Box142.In2 "/davila/00100_OriginalImages/Test_01"
289 new std:ConcatStrings Box143
290 set Box143.In1 "CoreID="
293 new std:ConcatStrings Box146
294 set Box146.In1 "open "
297 new std:ConcatStrings Box145
298 set Box145.In1 "/<CORE>/davila/<ALGO>/Test_01/<PATIENT>/Condition_01"
300 new std:ReplaceString Box147
301 set Box147.Search "<CORE>"
303 new std:ReplaceString Box148
304 set Box148.Search "<PATIENT>"
306 new std:ReplaceString Box149
307 set Box149.Replace "00100_OriginalImages"
308 set Box149.Search "<ALGO>"
310 new wx:LayoutLine Box150
311 set Box150.Orientation "H"
312 set Box150.WinHeight "600"
313 set Box150.WinWidth "900"
315 new std:ConcatStrings Box151
317 new std:ConcatStrings Box152
318 set Box152.In1 "00010_menu.bbg (v.1)"
319 set Box152.In2 " User:"
321 new std:ConcatStrings Box153
322 set Box153.In1 "https://myriad.creatis.insa-lyon.fr/#collection/5accbe71e1820a13d7993c19/folder/6186286034933039d3c8edb8"
324 new std:ConcatStrings Box154
325 set Box154.In1 "xdg-open"
328 new std:ConcatStrings Box155
329 set Box155.In1 "start"
332 new std:ConcatStrings Box156
333 set Box156.In1 "open"
337 connect Box06.Out Box05.In
339 connect Box11.Out Box06.In1
341 connect Box11.Out Box10.In1
343 connect Box10.Out Box12.In2
345 connect Box12.Out Box09.In
347 connect Box18.BoxChange Box19.BoxExecute
349 connect Box21.BoxChange Box22.BoxExecute
351 connect Box26.BoxChange Box27.BoxExecute
353 connect Box11.Out Box28.In3
355 connect Box29.BoxChange Box30.BoxExecute
357 connect Box00.Widget Box33.Widget1
359 connect Box26.Widget Box32.Widget3
361 connect Box35.Widget Box32.Widget1
363 connect Box39.BoxChange Box43.BoxExecute
365 connect Box45.Out Box22.In
367 connect Box47.SystemType Box45.In
369 connect Box47.SystemType Box50.In
371 connect Box51.Out Box50.In1
373 connect Box50.Out Box07.In
375 connect Box52.Out Box45.In1
377 connect Box53.Out Box43.In
379 connect Box54.Out Box53.In1
381 connect Box56.Out Box55.In1
383 connect Box20.Out Box55.In0
385 connect Box55.Out Box19.In
387 connect Box20.Out Box56.In2
389 connect Box47.SystemType Box55.In
391 connect Box47.SystemType Box53.In
393 connect Box58.Out Box57.In1
395 connect Box31.Out Box57.In0
397 connect Box57.Out Box30.In
399 connect Box31.Out Box58.In2
401 connect Box47.SystemType Box57.In
403 connect Box62.Out Box61.In1
405 connect Box61.Out Box27.In
407 connect Box28.Out Box62.In2
409 connect Box28.Out Box61.In0
411 connect Box47.SystemType Box61.In
413 connect Box63.BoxChange Box64.BoxExecute
415 connect Box67.Out Box66.In1
417 connect Box65.Out Box66.In0
419 connect Box66.Out Box64.In
421 connect Box65.Out Box67.In2
423 connect Box47.SystemType Box66.In
425 connect Box05.OutSimple Box73.In3
427 connect Box84.BoxChange Box85.BoxExecute
429 connect Box88.Out Box87.In1
431 connect Box86.Out Box87.In0
433 connect Box87.Out Box85.In
435 connect Box86.Out Box88.In2
437 connect Box29.Widget Box89.Widget1
439 connect Box63.Widget Box89.Widget2
441 connect Box21.Widget Box00.Widget5
443 connect Box01.Widget Box00.Widget4
445 connect Box91.BoxChange Box92.BoxExecute
447 connect Box93.Out Box94.In0
449 connect Box93.Out Box95.In2
451 connect Box95.Out Box94.In1
453 connect Box99.Widget Box97.Widget1
455 connect Box32.Widget Box98.Widget1
457 connect Box102.BoxChange Box103.BoxExecute
459 connect Box105.Out Box103.In
461 connect Box03.Widget Box00.Widget3
463 connect Box90.Widget Box00.Widget2
465 connect Box91.Widget Box99.Widget3
467 connect Box108.Widget Box99.Widget1
469 connect Box11.Out Box93.In5
471 connect Box73.Out Box90.In
473 connect Box90.Out Box112.I
475 connect Box113.OutSimple Box114.In3
477 connect Box114.Out Box03.In
479 connect Box115.Widget Box00.Widget1
481 connect Box115.BoxChange Box05.BoxExecute
483 connect Box115.BoxChange Box90.BoxExecute
485 connect Box11.Out Box116.In2
487 connect Box03.OutString Box117.In3
489 connect Box117.Out Box118.In3
491 connect Box118.Out Box119.In3
493 connect Box119.Out Box50.In0
495 connect Box119.Out Box51.In2
497 connect Box01.BoxChange Box07.BoxExecute
499 connect Box116.Out Box118.In1
501 connect Box90.BoxChange Box120.BoxExecute
503 connect Box112.BoxChange Box120.In1
505 connect Box113.BoxChange Box120.In2
507 connect Box03.BoxChange Box120.In3
509 connect Box50.BoxChange Box120.In5
511 connect Box118.Out Box121.In3
513 connect Box121.Out Box52.In2
515 connect Box121.Out Box45.In0
517 connect Box122.Out Box54.In2
519 connect Box122.Out Box53.In0
521 connect Box118.Out Box122.In3
523 connect Box118.Out Box20.In3
525 connect Box118.Out Box31.In3
527 connect Box118.Out Box65.In3
529 connect Box118.Out Box86.In3
531 connect Box47.SystemType Box105.In
533 connect Box90.OutString Box86.In5
535 connect Box124.BoxChange Box125.BoxExecute
537 connect Box102.Widget Box32.Widget6
539 connect Box124.Widget Box32.Widget4
541 connect Box127.Out Box126.In0
543 connect Box11.Out Box128.In1
545 connect Box129.Out Box126.In1
547 connect Box47.SystemType Box126.In
549 connect Box130.Out Box131.In
551 connect Box128.Out Box130.In
553 connect Box131.Out Box129.In2
555 connect Box131.Out Box127.In2
557 connect Box133.FileSeparator Box131.Replace
559 connect Box126.Out Box125.In
561 connect Box139.SystemType Box94.In
563 connect Box94.Out Box92.In
565 connect Box97.Widget Box135.BoxContent
567 connect Box33.Widget Box136.BoxContent
569 connect Box98.Widget Box137.BoxContent
571 connect Box140.Out Box11.In1
573 connect Box05.Out Box141.In3
575 connect Box141.Out Box112.In
577 connect Box112.Out Box142.In1
579 connect Box142.Out Box113.In
581 connect Box143.Out Box118.In2
583 connect Box90.OutString Box143.In2
585 connect Box146.Out Box126.In2
587 connect Box131.Out Box146.In2
589 connect Box119.Out Box50.In2
591 connect Box121.Out Box45.In2
593 connect Box93.Out Box94.In2
595 connect Box145.Out Box147.In
597 connect Box90.OutString Box147.Replace
599 connect Box147.Out Box148.In
601 connect Box03.OutString Box148.Replace
603 connect Box148.Out Box149.In
605 connect Box149.Out Box128.In3
607 connect Box39.Widget Box00.Widget6
609 connect Box18.Widget Box00.Widget7
611 connect Box122.Out Box53.In2
613 connect Box20.Out Box55.In2
615 connect Box135.Widget Box150.Widget2
617 connect Box136.Widget Box150.Widget4
619 connect Box137.Widget Box150.Widget6
622 connect Box152.Out Box150.WinTitle
624 connect Box151.Out Box152.In3
626 connect Box65.Out Box66.In2
628 connect Box31.Out Box57.In2
630 connect Box89.Widget Box00.Widget9
632 connect Box84.Widget Box00.Widget8
634 connect Box153.Out Box154.In3
636 connect Box153.Out Box155.In3
638 connect Box153.Out Box156.In3
640 connect Box154.Out Box105.In0
642 connect Box155.Out Box105.In1
644 connect Box156.Out Box105.In2
646 connect Box28.Out Box61.In2
650 # Complex input ports
651 input creaUser Box151.In1 " "