]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/appli/exampleTransformWidget2.bbs
#3524 TransformWidget2
[creaMaracasVisu.git] / bbtk / bbs / appli / exampleTransformWidget2.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.5 BBS BlackBox Script
3 # - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleTransformWidget2.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaMaracasVisu
12 include wx
13 include vtk
14 include std
15 include creaVtk
16 include PackRecalage
17 include creaImageIO
18
19 author "info-dev@creatis.insa-lyon.fr"
20 description "Show N Points"
21 category "demo"
22
23 new creaMaracasVisu:ViewerNV viewer
24   set viewer.nTypeView "5 1 2 0"
25
26 new creaMaracasVisu:ShowNPoints showNpoints
27   set showNpoints.Radio "2"
28   set showNpoints.Type "4"
29
30 new wx:LayoutSplit main
31   set main.Orientation "H"
32   set main.Proportion "10"
33
34 new vtk:MetaImageReader Box04
35   set Box04.In "/Users/davila/CreatisWork/tmpJCR/results/Experimental-XXXXX2/FG101-VT-B/images/Inspi-B.mhd"
36
37 new vtk:vtkImageDataPointerRelay Box05
38
39 new creaMaracasVisu:ImageChangeInformation Box06
40
41 new creaMaracasVisu:ManualContourModel_Box Box07
42   set Box07.DoubleContour "0"
43   set Box07.NbPoints "100"
44
45 new creaMaracasVisu:DrawAxisTree3D Box08
46   set Box08.Colour "0 0 1"
47   set Box08.LineWidth "2"
48   set Box08.Opacity "1"
49
50 new std:VectorFilterDouble Box09
51   set Box09.Type "11"
52
53 new vtk:ImageVtkProperties Box10
54
55 new wx:LayoutLine Box12
56   set Box12.Orientation "H"
57
58 new creaMaracasVisu:SliceImage Box21
59   set Box21.InterpolationMode "1"
60   set Box21.Slice "0"
61   set Box21.TypeOrientation "3"
62   set Box21.Z "0"
63
64 new creaVtk:TransformVector Box25
65   set Box25.InX "1  0  0"
66   set Box25.InY "0 1   0"
67   set Box25.InZ "0 0 1"
68
69 new creaMaracasVisu:ImageActor Box34
70   set Box34.InterpolationMode "1"
71
72 new vtk:UpdateRender Box35
73   set Box35.Active "true"
74
75 new vtk:Transform Box36
76
77 new creaVtk:ConcatTransform Box37
78
79 new std:ConcatStrings Box38
80
81 new std:ConcatStrings Box42
82   set Box42.In2 "  "
83   set Box42.In4 "  "
84
85 new creaVtk:ScalarsToColors Box48
86   set Box48.BelowAboveRangeTransparence "false"
87   set Box48.Type "101"
88
89 new vtk:ImageVtkProperties Box56
90
91 new vtk:vtkImageDataPointerRelay Box57
92
93 new wx:LayoutLine Box59
94   set Box59.WinTitle "Plane"
95
96 new std:MagicBox Box60
97
98 new creaMaracasVisu:ManualContourModel_Box Box61
99   set Box61.DoubleContour "1"
100   set Box61.NbPoints "200"
101   set Box61.OpenClose2 "true"
102
103 new creaVtk:CreateMeshFromPoints Box62
104   set Box62.CloseSurface "false"
105
106 new creaMaracasVisu:PolyDataToActor_Widget Box63
107   set Box63.active "true"
108
109 new creaVtk:PointPicker Box64
110   set Box64.DefaultPoint "50 50 50"
111   set Box64.TypeEvent "2"
112
113 new std:MathOperationVector Box66
114   set Box66.Type "3"
115
116 new std:MathOperationVector Box67
117   set Box67.Type "23"
118
119 new creaMaracasVisu:SetPosition Box68
120
121 new std:MultipleInputs Box69
122
123 new wx:LayoutTab Box70
124
125 new wx:LayoutLine Box71
126   set Box71.Orientation "H"
127
128 new PackRecalage:ImageConvolution Box72
129
130 new vtk:vtkImageDataPointerRelay Box74
131
132 new wx:Slider Box75
133   set Box75.In "-12000"
134   set Box75.Label "true"
135   set Box75.Max "12000"
136   set Box75.Min "-12000"
137   set Box75.ReactiveOnTrack "true"
138   set Box75.Title "Convolution1"
139   set Box75.WinTitle "Convolution1"
140
141 new std:Div Box76
142   set Box76.In2 "100"
143
144 new wx:LayoutLine Box78
145   set Box78.WinTitle "Config Image"
146
147 new wx:CheckBox Box80
148   set Box80.Title "Convolution"
149
150 new std:StringSelect Box81
151   set Box81.In0 "380 80"
152   set Box81.In1 "10800 4300"
153
154 new std:GetVectorStringElement Box82
155   set Box82.I "0"
156
157 new std:GetVectorStringElement Box83
158   set Box83.I "1"
159
160 new vtk:LoadHola Box84
161
162 new creaMaracasVisu:wxVtkBaseView_Info Box92
163   set Box92.InteractionType "12"
164
165 new creaMaracasVisu:MeshContours_Widget Box93
166   set Box93.colorMesh "1 1 0"
167
168 new wx:CheckBox Box94
169   set Box94.Title "Pivot plane"
170
171 new creaMaracasVisu:DrawAxisTree3D Box100
172   set Box100.Colour "1 0 0    1 1 0    0 0 1"
173   set Box100.ColourLaw "2"
174   set Box100.LineWidth "2"
175   set Box100.lstIndexs "2 2 2"
176   set Box100.lstPointX "0 20       0 0           0 0"
177   set Box100.lstPointY "0 0         0  80       0 0"
178   set Box100.lstPointZ "0 0         0  0         0 20"
179
180 new creaMaracasVisu:TransformWidget2 Box105
181   set Box105.Type "1"
182
183 new wx:LayoutSplit Box96
184
185 new creaMaracasVisu:ViewerNV Box97
186   set Box97.nTypeView "0"
187
188 new creaMaracasVisu:ImageChangeInformation Box98
189
190 new std:GetVectorDoubleElement Box99
191   set Box99.I "0"
192
193 new std:GetVectorDoubleElement Box101
194   set Box101.I "1"
195
196 new creaImageIO:ImagesChooserDialogBox Box102
197
198 new std:MathOperationVector Box104
199   set Box104.Type "2"
200
201 new std:MultipleInputs Box106
202
203 new creaMaracasVisu:wxVtkBaseView_Info Box107
204   set Box107.InteractionType "12"
205
206
207 connect viewer.Renderer1 showNpoints.Renderer
208
209 connect viewer.Point showNpoints.In
210
211 connect viewer.BoxChange showNpoints.BoxExecute
212
213 connect Box05.Out showNpoints.Image
214
215 connect Box05.Out viewer.In
216
217 connect showNpoints.lstIndexs Box07.LstIndexsIn
218
219 connect Box07.LstContourPointsX Box08.lstPointX
220
221 connect Box07.LstContourPointsY Box08.lstPointY
222
223 connect Box07.LstContourPointsZ Box08.lstPointZ
224
225 connect Box07.LstIndexsOut Box08.lstIndexs
226
227 connect viewer.Renderer1 Box08.Renderer
228
229 connect showNpoints.BoxChange Box08.BoxExecute
230
231 connect showNpoints.lstPointsX Box09.In0
232
233 connect showNpoints.lstPointsY Box09.In1
234
235 connect showNpoints.lstPointsZ Box09.In2
236
237 connect Box09.Out0 Box07.LstControlPointsX
238
239 connect Box09.Out1 Box07.LstControlPointsY
240
241 connect Box09.Out2 Box07.LstControlPointsZ
242
243 connect Box21.Out Box34.In
244
245 connect Box38.Out Box21.AxisOrigin
246
247 connect Box36.Out Box37.In3
248
249 connect Box37.Out Box34.Transform
250
251 connect Box25.OutX Box42.In1
252
253 connect Box25.OutY Box42.In3
254
255 connect Box25.OutZ Box42.In5
256
257 connect Box42.Out Box21.ResliceAxesDirectionCosines
258
259 connect Box48.LookupTable Box34.LookupTable
260
261 connect Box05.Out Box56.In
262
263 connect Box56.Spacing Box09.k1
264
265 connect Box57.Out Box21.In
266
267 connect Box57.Out Box10.In
268
269 connect showNpoints.Widget Box59.Widget1
270
271 connect Box12.Widget Box59.Widget3
272
273 connect viewer.Renderer1 Box60.In
274
275 connect Box60.Out Box34.Renderer
276
277 connect Box60.Out Box35.Renderer
278
279 connect Box09.Out0 Box61.LstControlPointsX
280
281 connect Box09.Out1 Box61.LstControlPointsY
282
283 connect Box09.Out2 Box61.LstControlPointsZ
284
285 connect showNpoints.lstIndexs Box61.LstIndexsIn
286
287 connect Box61.LstContourPointsX Box62.LstX
288
289 connect Box61.LstContourPointsY Box62.LstY
290
291 connect Box61.LstContourPointsZ Box62.LstZ
292
293 connect Box61.LstIndexsOut Box62.LstIndexs
294
295 connect Box62.Out Box63.polydata
296
297 connect viewer.Renderer1 Box63.render
298
299 connect Box63.widget Box59.Widget4
300
301 connect Box56.Spacing Box66.In1
302
303 connect Box66.Out Box67.In0
304
305 connect viewer.wxVtkBaseView1 Box68.wxVtkBaseView
306
307 connect Box67.Out Box68.Point
308
309 connect Box64.BoxChange Box68.BoxExecute
310
311 connect Box64.BoxChange Box69.In1
312
313 connect Box59.Widget Box70.Widget1
314
315 connect Box70.Widget main.Widget1
316
317 connect Box74.Out Box72.In
318
319 connect Box75.Out Box76.In1
320
321 connect Box76.Out Box72.Factor
322
323 connect Box75.BoxChange Box72.BoxExecute
324
325 connect Box71.Widget Box78.Widget1
326
327 connect Box78.Widget Box70.Widget2
328
329 connect Box75.Widget Box71.Widget3
330
331 connect Box06.Out Box74.In
332
333 connect Box80.Widget Box71.Widget1
334
335 connect Box80.Out Box72.On
336
337 connect Box72.Out Box05.In
338
339 connect Box80.Out Box81.In
340
341 connect Box81.Out Box82.In
342
343 connect Box82.Out viewer.WindowLevel
344
345 connect Box81.Out Box83.In
346
347 connect Box83.Out viewer.ColorLevel
348
349 connect viewer.Renderer1 Box64.Renderer
350
351 connect Box64.Point Box66.In0
352
353 connect Box92.WindowColorLevel Box48.WindowColorLevel
354
355 connect Box92.BoxChange Box48.BoxExecute
356
357 connect viewer.wxVtkBaseView2 Box92.wxVtkBaseView
358
359 connect viewer.wxVtkBaseView3 Box92.wxVtkBaseView2
360
361 connect Box62.Out Box93._polydata
362
363 connect viewer.wxVtkBaseView2 Box93._wxvtkbaseview2D1
364
365 connect viewer.wxVtkBaseView3 Box93._wxvtkbaseview2D2
366
367 connect viewer.wxVtkBaseView4 Box93._wxvtkbaseview2D3
368
369 connect Box93._widget Box59.Widget6
370
371 connect viewer.BoxChange Box93._execute
372
373 connect viewer.wxVtkBaseView1 Box93._wxvtkbaseview3D1
374
375 connect Box94.Out Box34.Opacity
376
377 connect Box94.Widget Box12.Widget4
378
379 connect Box37.Out Box100.Transform
380
381 connect Box60.Out Box100.Renderer
382
383 connect Box105.Out Box25.Transform
384
385 connect Box105.Out Box37.In1
386
387 connect Box105.Widget Box12.Widget2
388
389 connect viewer.Widget Box96.Widget1
390
391 connect Box96.Widget main.Widget2
392
393 connect Box97.Widget Box96.Widget2
394
395 connect Box21.BoxChange Box97.BoxExecute
396
397 connect Box21.Out Box98.In
398
399 connect Box98.Out Box97.In
400
401 connect Box99.Out Box97.WindowLevel
402
403 connect Box101.Out Box97.ColorLevel
404
405 connect Box38.Out Box104.In0
406
407 connect Box10.Spacing Box104.In1
408
409 connect Box104.Out Box36.Translate
410
411 connect Box84.Out Box06.In
412
413 connect Box105.ActualPoint Box38.In1
414
415 connect Box94.Out Box100.Active
416
417 connect Box34.BoxChange Box106.In1
418
419 connect Box100.BoxChange Box106.In2
420
421 connect Box106.BoxChange Box35.BoxExecute
422
423 connect viewer.wxVtkBaseView4 Box92.wxVtkBaseView3
424
425 connect viewer.wxVtkBaseView2 Box107.wxVtkBaseView
426
427 connect viewer.wxVtkBaseView3 Box107.wxVtkBaseView2
428
429 connect viewer.wxVtkBaseView4 Box107.wxVtkBaseView3
430
431 connect Box107.WindowColorLevel Box101.In
432
433 connect Box107.WindowColorLevel Box99.In
434
435 connect Box105.BoxChange Box100.BoxExecute
436
437 connect Box92.Image Box57.In
438
439 connect viewer.Point Box105.PossiblePoint
440
441 connect Box94.Out Box35.Active
442
443
444
445 # Complex input ports
446 exec main
447 exec Box69