]> Creatis software - creaMiniTools.git/blob - appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs
3421 template_creaPatientsSystem
[creaMiniTools.git] / appli / template_creaPatientsSystem / scripts / 00200_InitialParameters.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /Users/davila/Creatis/C11/creatools_source/creaMiniTools/appli/template_creaPatientsSystem/scripts/00200_InitialParameters.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include std
12 include wx
13 include creaVtk
14 include vtk
15 include creaMaracasVisu
16 include creaMiniTools
17
18 author "Author ??"
19 description "Description ??"
20 category "<VOID>"
21
22 new std:ConcatStrings Box01
23
24 new std:ConcatStrings Box02
25
26 new wx:LayoutLine Box04
27
28 new creaVtk:OutputWindow Box05
29
30 new std:ConcatStrings Box06
31   set Box06.In1 "<CORE>/davila/00100_OriginalImages/Test_01/<PATIENT>/Condition_01"
32
33 new wx:OutputText Box07
34
35 new std:ReplaceCleanString Box08
36   set Box08.Search "<PATIENT>"
37
38 new std:ConcatStrings Box09
39   set Box09.In2 "/results/"
40
41 new std:ConcatStrings Box10
42
43 new std:ReplaceCleanString Box11
44   set Box11.Search "<CORE>"
45
46 new std:ConcatStrings Box12
47   set Box12.In2 "/image.mha"
48
49 new vtk:MetaImageReader Box13
50
51 new creaMaracasVisu:ViewerNV Box14
52
53 new wx:LayoutSplit Box15
54   set Box15.Orientation "H"
55   set Box15.WinTitle "00200_InitialParameters.bbg"
56
57 new wx:Slider Box16
58   set Box16.In "100"
59   set Box16.ReactiveOnTrack "true"
60   set Box16.Title "Threshold"
61
62 new creaVtk:ImageThreshold Box17
63   set Box17.InValue "255"
64   set Box17.OutValue "0"
65   set Box17.Upper "10000"
66
67 new creaMaracasVisu:ColorLayerImageView Box18
68   set Box18.TypeControlsInterface "2"
69
70 new wx:CommandButton Box19
71   set Box19.Label "Save and Close"
72
73 new std:MultipleInputs Box20
74
75 new std:Exit Box22
76
77 new std:ConcatStrings Box23
78   set Box23.In2 "/InitialParameters.txt"
79
80 new std:StringWriter Box24
81
82 new std:ConcatStrings Box25
83   set Box25.In1 "Threshold  "
84
85 new std:ReadColumnsString Box26
86   set Box26.Dimension "2"
87
88 new std:GetVectorStringElement Box27
89   set Box27.ErrorValue "100"
90   set Box27.I "0"
91
92 new std:ReplaceCleanString Box29
93   set Box29.Replace "00200_InitialParameters"
94   set Box29.Search "00100_OriginalImages"
95
96 new std:ConcatStrings Box30
97   set Box30.In1 "mkdir -p    "
98
99 new std:ExecSystemCommand Box31
100
101 new creaMaracasVisu:ImageChangeInformation Box32
102
103 new vtk:ImageVtkProperties Box33
104
105 new std:GetVectorDoubleElement Box34
106   set Box34.I "1"
107
108 new creaMiniTools:WriteStatePatientSystem Box35
109   set Box35.State "Finish"
110
111 new std:ConcatStrings Box36
112   set Box36.In2 "/Step02_InitialParameters.txt"
113
114 new std:MagicBox Box37
115
116
117
118
119 connect Box06.Out Box08.In
120
121 connect Box02.Out Box08.Replace
122
123 connect Box01.Out Box09.In1
124
125 connect Box09.Out Box07.In
126
127
128 connect Box08.Out Box11.In
129
130 connect Box10.Out Box11.Replace
131
132 connect Box11.Out Box09.In3
133
134 connect Box09.Out Box12.In1
135
136 connect Box12.Out Box13.In
137
138 connect Box14.Widget Box15.Widget2
139
140 connect Box04.Widget Box15.Widget1
141
142 connect Box16.Out Box17.Lower
143
144 connect Box17.Out Box18.In
145
146 connect Box14.wxVtkBaseView2 Box18.WxVtkBaseView
147
148 connect Box14.wxVtkBaseView3 Box18.WxVtkBaseView1
149
150 connect Box14.wxVtkBaseView4 Box18.WxVtkBaseView2
151
152 connect Box16.BoxChange Box18.BoxExecute
153
154 connect Box19.Widget Box04.Widget9
155
156 connect Box19.BoxChange Box20.BoxExecute
157
158 connect Box07.Widget Box04.Widget2
159
160 connect Box18.Widget Box04.Widget4
161
162 connect Box16.Widget Box04.Widget6
163
164 connect Box23.Out Box24.FileName
165
166 connect Box16.Out Box25.In2
167
168 connect Box25.Out Box24.In0
169
170 connect Box24.BoxChange Box20.In2
171
172 connect Box23.Out Box26.FileName
173
174 connect Box26.lstData2 Box27.In
175
176 connect Box27.Out Box16.In
177
178 connect Box09.Out Box29.In
179
180 connect Box29.Out Box23.In1
181
182 connect Box29.Out Box30.In2
183
184 connect Box30.Out Box31.In
185
186 connect Box31.BoxChange Box20.In1
187
188 connect Box22.BoxChange Box20.In9
189
190 connect Box32.Out Box17.In
191
192 connect Box32.Out Box14.In
193
194 connect Box13.Out Box32.In
195
196 connect Box32.Out Box33.In
197
198 connect Box33.MinMax Box34.In
199
200 connect Box34.Out Box16.Max
201
202 connect Box35.boxChange Box20.In4
203
204 connect Box29.Out Box36.In1
205
206
207 connect Box37.Out Box35.User
208
209 connect Box36.Out Box35.Filename
210
211
212
213 # Complex input ports
214 input BaseDir Box01.In1 " "
215 input PatientID Box02.In1 " "
216 input CoreID Box10.In1 " "
217 input creaUser Box37.In " "
218 exec Box05
219 exec Box15