1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/CreatisWork/tmpCharly/creaBrainGrayMatter/appli/Appli_ceraGM/scripts/ResetPatient.bbs
4 # ----------------------------------
7 # ----------------------
16 description "Description ??"
19 new wx:CommandButton Box02
20 set Box02.Label "Reset Patient and Exit"
22 new std:ConcatStrings Box03
23 set Box03.In1 "rm -rf "
27 new std:ExecSystemCommand Box04
31 new wx:LayoutCenter Box06
33 new creaVtk:OutputWindow Box07
35 new wx:LayoutLine Box08
36 set Box08.WinHeight "300"
37 set Box08.WinTitle "ResetPatient.bbs"
39 new std:ConcatStrings Box10
41 new wx:OutputText Box11
43 new std:ConcatStrings Box14
45 new std:ConcatStrings Box18
49 new std:StringSelect Box19
51 new std:Configuration Box20
53 new std:ReplaceString Box17
57 new std:ConcatStrings Box21
59 new std:ConcatStrings Box22
60 set Box22.In2 "/results/"
62 new std:ConcatStrings Box23
63 set Box23.In1 "/<CORE>/davila/00300_Filter/Test_01/<PATIENT>/Condition_01"
65 new std:ReplaceCleanString Box24
66 set Box24.Search "<CORE>"
68 new std:ReplaceCleanString Box25
69 set Box25.Search "<PATIENT>"
71 new std:MultipleInputs Box26
73 new std:ExecSystemCommand Box27
75 new std:ConcatStrings Box28
76 set Box28.In1 "rm -rf "
80 new std:ConcatStrings Box29
84 new std:StringSelect Box30
86 new std:ReplaceString Box31
90 new std:ReplaceCleanString Box33
91 set Box33.Replace "00200_InitialParameters"
92 set Box33.Search "00300_Filter"
94 new wx:OutputText Box34
96 new wx:LayoutLine Box35
98 new wx:OutputText Box36
101 connect Box02.Widget Box06.Widget2
103 connect Box06.Widget Box08.Widget3
105 connect Box03.Out Box19.In0
107 connect Box20.SystemType Box19.In
109 connect Box18.Out Box17.In
114 connect Box03.Out Box19.In2
116 connect Box23.Out Box24.In
118 connect Box21.Out Box24.Replace
120 connect Box24.Out Box25.In
122 connect Box10.Out Box25.Replace
124 connect Box14.Out Box22.In1
126 connect Box25.Out Box22.In3
128 connect Box19.Out Box04.In
130 connect Box22.Out Box03.In3
132 connect Box22.Out Box18.In4
134 connect Box17.Out Box19.In1
136 connect Box05.BoxChange Box26.In9
138 connect Box02.BoxChange Box26.BoxExecute
140 connect Box04.BoxChange Box26.In1
142 connect Box27.BoxChange Box26.In3
144 connect Box28.Out Box30.In0
146 connect Box29.Out Box31.In
148 connect Box28.Out Box30.In2
150 connect Box31.Out Box30.In1
152 connect Box20.SystemType Box30.In
154 connect Box30.Out Box27.In
156 connect Box22.Out Box33.In
158 connect Box33.Out Box28.In3
160 connect Box33.Out Box29.In4
162 connect Box35.Widget Box08.Widget2
164 connect Box22.Out Box11.In
166 connect Box33.Out Box34.In
168 connect Box36.Widget Box35.Widget1
170 connect Box34.Widget Box35.Widget3
172 connect Box11.Widget Box35.Widget5
176 # Complex input ports
177 input BaseDir Box14.In1 " "
178 input PatientID Box10.In1 " "
179 input CoreID Box21.In1 " "