1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/00300_Filter.bbs
4 # ----------------------------------
7 # ----------------------
16 description "Description ??"
19 new std:ConcatStrings Box01
21 new std:ConcatStrings Box02
23 new wx:LayoutLine Box04
25 new creaVtk:OutputWindow Box05
27 new std:ConcatStrings Box06
28 set Box06.In1 "<CORE>/davila/00100_OriginalImages/Test_01/<PATIENT>/Condition_01"
30 new wx:OutputText Box07
31 set Box07.Title "Patient "
33 new std:ReplaceCleanString Box08
34 set Box08.Search "<PATIENT>"
36 new std:ConcatStrings Box09
37 set Box09.In2 "/results/"
39 new std:ConcatStrings Box10
41 new std:ReplaceCleanString Box11
42 set Box11.Search "<CORE>"
46 new wx:CommandButton Box33
47 set Box33.Label "Run Filter"
49 new std:MultipleInputs Box34
51 new wx:LayoutLine Box35
52 set Box35.WinHeight "300"
53 set Box35.WinTitle "00300_Filter.bbs"
54 set Box35.WinWidth "750"
56 new std:ConcatStrings Box36
57 set Box36.In1 "source 00301_Filter.sh "
62 new std:ExecSystemCommand Box37
64 new wx:LayoutCenter Box18
69 connect Box06.Out Box08.In
71 connect Box02.Out Box08.Replace
73 connect Box01.Out Box09.In1
75 connect Box09.Out Box07.In
78 connect Box08.Out Box11.In
80 connect Box10.Out Box11.Replace
82 connect Box11.Out Box09.In3
84 connect Box07.Widget Box04.Widget2
86 connect Box33.BoxChange Box34.BoxExecute
88 connect Box22.BoxChange Box34.In9
90 connect Box04.Widget Box35.Widget1
92 connect Box01.Out Box36.In2
94 connect Box10.Out Box36.In4
96 connect Box02.Out Box36.In6
98 connect Box36.Out Box37.In
100 connect Box37.BoxChange Box34.In1
102 connect Box33.Widget Box18.Widget2
104 connect Box18.Widget Box04.Widget4
108 # Complex input ports
109 input BaseDir Box01.In1 " "
110 input PatientID Box02.In1 " "
111 input CoreID Box10.In1 " "