]> Creatis software - creaContours.git/blob - bbtk/bbs/boxes/ContourReferenceStep.bbs
#3390 ContourReferece Grid and Step
[creaContours.git] / bbtk / bbs / boxes / ContourReferenceStep.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/C23/creatools_source/creaContours/bbtk/bbs/boxes/ContourReferenceStep.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include creaContours
9 include wx
10 include creaMaracasVisu
11 include std
12 include vtk
13
14 define ContourReferenceStep creaContours
15
16 author "Author ??"
17 description "Description ??"
18
19 category "<VOID>"
20
21 new creaContours:SetViewerPosition Box83
22   set Box83.Direction "1"
23
24 new wx:LayoutLine Box84
25   set Box84.WinTitle "Config"
26
27 new wx:Slider Box86
28   set Box86.In "0"
29   set Box86.Label "true"
30   set Box86.Max "29"
31   set Box86.Min "0"
32   set Box86.Title "Shift slice"
33
34 new wx:CommandButton Box152
35   set Box152.Label "+"
36
37 new wx:CommandButton Box153
38   set Box153.Label "-"
39
40 new wx:LayoutLine Box154
41   set Box154.Orientation "H"
42
43 new creaMaracasVisu:SetPosition Box155
44
45 new std:GetVectorIntElement Box156
46   set Box156.I "0"
47
48 new std:GetVectorIntElement Box157
49   set Box157.I "1"
50
51 new std:GetVectorIntElement Box158
52   set Box158.I "2"
53
54 new std:ConcatStrings Box159
55   set Box159.In2 "  "
56   set Box159.In4 "  "
57
58 new std:Add Box160
59   set Box160.In2 "10"
60
61 new creaMaracasVisu:SetPosition Box161
62
63 new std:ConcatStrings Box162
64   set Box162.In2 "  "
65   set Box162.In4 "  "
66
67 new std:MathOperation Box164
68   set Box164.Type "1"
69
70 new std:MathOperation Box174
71   set Box174.Type "2"
72
73 new std:MathOperation Box175
74   set Box175.Type "3"
75
76 new std:MathOperation Box176
77   set Box176.Type "22"
78
79 new wx:OutputText Box224
80
81 new wx:OutputText Box225
82
83 new std:MultipleInputs Box256
84
85 new wx:OutputText Box258
86
87 new wx:LayoutLine Box261
88
89 new std:ReplaceCleanString Box265
90   set Box265.Search ".000000"
91
92 new std:VectorFilterDouble Box283
93
94 new std:CreateArithmeticSuiteVector Box284
95   set Box284.Delta "0"
96   set Box284.FirstValue "0"
97
98 new std:GetDoubleVectorSize Box285
99
100 new std:VectorFilterDouble Box286
101   set Box286.Type "10"
102
103 new std:ConcatStrings Box287
104   set Box287.In1 "0  "
105   set Box287.In3 "  0"
106
107 new std:ConcatStrings Box288
108
109 new std:MathOperation Box291
110   set Box291.Type "30"
111
112 new std:StringSelect Box295
113   set Box295.In0 "Warning !"
114   set Box295.In1 "  "
115
116 new std:GetVectorDoubleElement Box298
117
118 new std:ReplaceCleanString Box299
119   set Box299.Search ".000000"
120
121 new wx:OutputText Box300
122
123 new wx:OutputText Box302
124
125 new wx:ComboBox Box314
126   set Box314.In "void"
127   set Box314.Selection "9"
128   set Box314.Title "Slice step -/+"
129
130 new std:CreateArithmeticSuiteVector Box315
131   set Box315.Delta "1"
132   set Box315.FirstValue "1"
133   set Box315.Size "30"
134
135 new std:ConcatStrings Box316
136
137 new std:ConcatStrings Box317
138
139 new std:StringSelect Box318
140   set Box318.In3 "-1"
141
142 new std:Add Box321
143
144 new std:Add Box322
145
146 new std:ConcatStrings Box324
147   set Box324.In2 "  "
148   set Box324.In4 "  "
149
150 new std:GetVectorDoubleElement Box326
151   set Box326.I "1"
152
153 new std:ConcatStrings Box327
154   set Box327.In2 " : MPR Nearest Contour"
155
156 new std:ConcatStrings Box328
157   set Box328.In2 " : 2D Slice Contour"
158
159 new std:ConcatStrings Box329
160   set Box329.In2 "  "
161   set Box329.In4 "  "
162
163 new wx:ComboBox Box330
164   set Box330.In "Direct   Grid   Contour   Nothing"
165   set Box330.Selection "1"
166   set Box330.Title "MPR to 2D "
167
168 new wx:LayoutLine Box331
169   set Box331.Orientation "H"
170
171 new wx:LayoutLine Box336
172   set Box336.Orientation "H"
173   set Box336.WinTitle "Slice step"
174
175 new wx:OutputText Box348
176   set Box348.Title "Warning"
177
178 new std:ReplaceCleanString Box349
179   set Box349.Replace ","
180   set Box349.Search " "
181
182 new std:VectorFilterDouble Box352
183
184 new std:VectorFilterDouble Box354
185   set Box354.Type "8"
186
187 new wx:OutputText Box355
188
189 new std:GetVectorIntElement Box436
190   set Box436.I "1"
191
192 new vtk:ImageVtkProperties Box437
193
194 new std:VectorFilterDouble Box438
195   set Box438.Type "11"
196
197 new creaMaracasVisu:wxVtkBaseView_Info Box447
198   set Box447.InteractionType "6"
199
200 new std:MultipleInputs Box448
201
202 new creaMaracasVisu:wxVtkBaseView_Info Box449
203   set Box449.InteractionType "8"
204
205 new std:MagicBox Box450
206
207 new std:MagicBox Box451
208
209 new std:MagicBox Box452
210
211 new std:MagicBox Box453
212
213 new std:MagicBox Box454
214
215 new std:MagicBox Box455
216
217 new wx:LayoutTab Box456
218
219 new std:MagicBox Box457
220
221 new std:MagicBox Box458
222
223 new std:MagicBox Box459
224
225 new std:MagicBox Box460
226
227 new std:Div Box81
228
229 new std:GetVectorDoubleElement Box82
230   set Box82.I "1"
231
232
233 connect Box86.Widget Box84.Widget2
234 connect Box153.Widget Box154.Widget2
235 connect Box156.Out Box159.In1
236 connect Box158.Out Box159.In5
237 connect Box159.Out Box155.Point
238 connect Box152.BoxChange Box155.BoxExecute
239 connect Box153.BoxChange Box161.BoxExecute
240 connect Box156.Out Box162.In1
241 connect Box158.Out Box162.In5
242 connect Box162.Out Box161.Point
243 connect Box164.Out Box162.In3
244 connect Box157.Out Box175.In1
245 connect Box175.Out Box176.In1
246 connect Box176.Out Box174.In1
247 connect Box152.Widget Box154.Widget4
248 connect Box224.Widget Box154.Widget1
249 connect Box164.BoxChange Box256.In2
250 connect Box283.Out0 Box285.In
251 connect Box285.VectorSize Box284.Size
252 connect Box284.ArithmeticSuiteVector Box286.In2
253 connect Box287.Out Box286.In3
254 connect Box284.ArithmeticSuiteVector Box286.In0
255 connect Box283.Out0 Box286.In1
256 connect Box286.Out0 Box288.In1
257 connect Box258.Widget Box261.Widget4
258 connect Box265.Out Box291.In1
259 connect Box291.Out Box295.In
260 connect Box288.Out Box298.I
261 connect Box283.Out0 Box298.In
262 connect Box299.Out Box291.In2
263 connect Box295.Out Box300.In
264 connect Box258.BoxChange Box300.BoxExecute
265 connect Box295.BoxChange Box258.BoxExecute
266 connect Box302.Widget Box261.Widget5
267 connect Box302.BoxChange Box295.BoxExecute
268 connect Box256.BoxChange Box302.BoxExecute
269 connect Box225.Widget Box154.Widget5
270 connect Box316.Out Box314.In
271 connect Box315.ArithmeticSuiteVector Box316.In1
272 connect Box314.OutString Box317.In1
273 connect Box317.Out Box175.In2
274 connect Box317.Out Box174.In2
275 connect Box317.Out Box160.In2
276 connect Box317.Out Box164.In2
277 connect Box318.Out Box83.Position
278 connect Box160.BoxChange Box256.In1
279 connect Box174.Out Box321.In1
280 connect Box321.Out Box160.In1
281 connect Box160.Out Box159.In3
282 connect Box174.Out Box322.In1
283 connect Box322.Out Box164.In1
284 connect Box86.Out Box322.In2
285 connect Box86.Out Box321.In2
286 connect Box156.Out Box324.In1
287 connect Box174.Out Box324.In3
288 connect Box158.Out Box324.In5
289 connect Box324.Out Box318.In1
290 connect Box326.Out Box265.In
291 connect Box318.Out Box326.In
292 connect Box299.Out Box327.In1
293 connect Box327.Out Box258.In
294 connect Box265.Out Box328.In1
295 connect Box328.Out Box302.In
296 connect Box156.Out Box329.In1
297 connect Box158.Out Box329.In5
298 connect Box329.Out Box318.In2
299 connect Box330.Out Box318.In
300 connect Box330.Widget Box331.Widget6
301 connect Box314.Widget Box331.Widget3
302 connect Box154.Widget Box336.Widget2
303 connect Box300.Widget Box261.Widget2
304 connect Box261.Widget Box336.Widget5
305 connect Box331.Widget Box336.Widget7
306 connect Box348.Widget Box261.Widget7
307 connect Box300.BoxChange Box348.BoxExecute
308 connect Box352.Out0 Box348.In
309 connect Box349.Out Box354.In0
310 connect Box354.Out0 Box352.In0
311 connect Box355.Widget Box261.Widget6
312 connect Box436.Out Box287.In2
313 connect Box438.Out0 Box436.In
314 connect Box437.Spacing Box438.k1
315 connect Box447.BoxChange Box448.In1
316 connect Box448.BoxChange Box83.BoxExecute
317 connect Box449.BoxChange Box448.In3
318 connect Box450.Out Box157.In
319 connect Box450.Out Box156.In
320 connect Box450.Out Box318.In0
321 connect Box450.Out Box158.In
322 connect Box451.Out Box155.wxVtkBaseView
323 connect Box451.Out Box161.wxVtkBaseView
324 connect Box452.Out Box447.wxVtkBaseView1
325 connect Box452.Out Box449.wxVtkBaseView1
326 connect Box453.Out Box447.wxVtkBaseView2
327 connect Box453.Out Box449.wxVtkBaseView2
328 connect Box454.Out Box447.wxVtkBaseView3
329 connect Box454.Out Box449.wxVtkBaseView3
330 connect Box455.Out Box448.In9
331 connect Box336.Widget Box456.Widget2
332 connect Box84.Widget Box456.Widget3
333 connect Box457.Out Box83.wxContourMainFrame
334 connect Box458.Out Box349.In
335 connect Box459.Out Box283.In0
336 connect Box460.Out Box437.In
337 connect Box450.Out Box438.In0
338 connect Box298.Out Box81.In1
339 connect Box437.Spacing Box82.In
340 connect Box82.Out Box81.In2
341 connect Box81.Out Box329.In3
342 connect Box81.Out Box299.In
343
344 # Complex input ports
345 input _point Box450.In " "
346 input _wxvtkbaseview2 Box452.In " "
347 input _wxvtkbaseview3 Box453.In " "
348 input _wxvtkbaseview4 Box454.In " "
349 input _boxExecViewer Box455.In " "
350 input _wxcontourmainframe Box457.In " "
351 input _lstPssblIncnsnstntCntrY Box458.In " "
352 input _lstX Box459.In " "
353 input _image Box460.In " "
354 input _wxvtkbaseview1 Box451.In " "
355
356 # Complex output ports
357 output _widget Box456.Widget " "
358 output _initExec Box448.BoxChange " "
359 output _iaxis Box288.Out " "
360
361
362 endefine