]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs
#2970 CreaMiniTools Feature New Normal - new options in viewerNVExample
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / viewerNVExample.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaImageIO
12 include creaMaracasVisu
13 include toolsbbtk
14 include wx
15 include creaMiniTools
16 include vtk
17 include std
18 include creaVtk
19 include wxvtk
20
21 author "Author ??"
22 description "Description ??"
23 category "<VOID>"
24
25 new creaImageIO:ImagesChooserDialogBox Box00
26
27 new creaMaracasVisu:ViewerNV Box01
28   set Box01.nTypeView "6 1 2 0"
29
30 new toolsbbtk:ImageVtkPropertiesWidget Box04
31
32 new wx:LayoutTab Box05
33   set Box05.WinHide "800"
34   set Box05.WinWidth "1000"
35
36 new toolsbbtk:SaveMHD-Button Box06
37
38 new wx:LayoutLine Box07
39   set Box07.WinTitle "MPR Viewer"
40
41 new creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget Box16
42
43 new wx:LayoutTab Box11
44
45 new wx:LayoutLine Box14
46   set Box14.Orientation "H"
47
48 new wx:LayoutSplit Box15
49   set Box15.Proportion "5"
50   set Box15.WinTitle "Crop"
51
52 new wx:Slider Box19
53   set Box19.In "100"
54   set Box19.Max "400"
55   set Box19.ReactiveOnTrack "true"
56
57 new wx:Slider Box20
58   set Box20.In "100"
59   set Box20.Max "400"
60   set Box20.ReactiveOnTrack "true"
61
62 new wx:Slider Box21
63   set Box21.In "100"
64   set Box21.Max "400"
65   set Box21.ReactiveOnTrack "true"
66
67 new vtk:ExtractVtkImageFilter Box22
68
69 new std:ConcatStrings Box23
70   set Box23.In2 " "
71   set Box23.In4 " "
72
73 new vtk:vtkImageDataPointerRelay Box24
74
75 new vtk:LoadHola Box26
76
77 new vtk:VolumeRenderer Box29
78
79 new creaVtk:Actor Box30
80   set Box30.Active "true"
81
82 new creaMaracasVisu:TransferFunctionView Box31
83
84 new wx:LayoutLine Box32
85   set Box32.WinTitle "Base Image"
86
87 new vtk:UpdateRender Box33
88   set Box33.Active "true"
89
90 new std:MultipleInputs Box34
91
92 new wxvtk:IsoSurfaceWidget Box35
93
94 new wx:LayoutTab Box36
95
96 new vtk:ExtractVtkImageFilter Box38
97
98 new vtk:VolumeRenderer Box39
99
100 new creaVtk:Actor Box40
101   set Box40.Active "true"
102
103 new creaMaracasVisu:TransferFunctionView Box41
104
105 new wx:LayoutLine Box42
106
107 new vtk:UpdateRender Box43
108   set Box43.Active "true"
109
110 new std:MultipleInputs Box44
111
112 new wxvtk:IsoSurfaceWidget Box45
113
114 new wx:DropFiles Box46
115
116 new vtk:MetaImageReader Box47
117
118 new wx:OutputText Box48
119   set Box48.In "Drop your *.MHD file here!"
120
121 new wx:OutputText Box49
122
123 new std:MultipleInputs Box50
124
125 new wx:LayoutLine Box52
126   set Box52.WinTitle "Image A"
127
128 new wx:LayoutSplit Box53
129   set Box53.Proportion "25"
130   set Box53.WinTitle "Image A"
131
132 new std:MathOperationVector Box54
133   set Box54.In1 "-2 -2 -2"
134   set Box54.Type "3"
135
136 new std:MathOperationVector Box56
137   set Box56.In1 "-2 -2 -2"
138
139 new wx:LayoutLine Box57
140   set Box57.WinTitle "Layer"
141
142 new creaImageIO:ImagesChooserDialogBox Box58
143   set Box58.BoxProcessMode "Manual"
144   set Box58.Title "Load Image"
145
146 new wx:CommandButton Box59
147   set Box59.Label "Load Image"
148
149 new std:SharedMemory Box60
150
151 new std:SharedMemory Box61
152
153 new std:MultipleInputs Box62
154
155 new wx:LayoutLine Box64
156   set Box64.Orientation "H"
157
158 new vtk:vtkImageDataPointerRelay Box67
159   set Box67.BoxProcessMode "Always"
160
161 new vtk:vtkImageDataPointerRelay Box68
162   set Box68.BoxProcessMode "Always"
163
164 new creaMaracasVisu:ImageChangeInformation Box69
165   set Box69.NewSpacing "1 1 1"
166
167 new creaMaracasVisu:ImageChangeInformation Box70
168   set Box70.NewSpacing "1 1 1"
169
170 new creaVtk:OutputWindow Box71
171
172 new wx:LayoutSplit Box72
173   set Box72.Orientation "H"
174
175 new creaMaracasVisu:Measure3DLength_Widget Box74
176
177 new wx:LayoutLine Box75
178   set Box75.WinTitle "Tools"
179
180 new vtk:CleanExternalPlane Box76
181
182
183 connect Box04.widget Box05.Widget2
184
185 connect Box06.Widget Box05.Widget3
186
187 connect Box01.Widget Box07.Widget1
188
189 connect Box07.Widget Box05.Widget1
190
191 connect Box01.Renderer1 Box16.renderer3D
192
193 connect Box01.wxVtkBaseView2 Box16.wxvtkbaseview1
194
195 connect Box01.wxVtkBaseView3 Box16.wxvtkbaseview2
196
197 connect Box01.wxVtkBaseView4 Box16.wxvtkbaseview3
198
199 connect Box14.Widget Box15.Widget1
200
201 connect Box15.Widget Box11.Widget2
202
203 connect Box19.Widget Box14.Widget1
204
205 connect Box20.Widget Box14.Widget2
206
207 connect Box21.Widget Box14.Widget3
208
209 connect Box19.Out Box23.In1
210
211 connect Box20.Out Box23.In3
212
213 connect Box21.Out Box23.In5
214
215 connect Box23.Out Box22.Size
216
217 connect Box24.Out Box01.In
218
219 connect Box24.Out Box04.in
220
221 connect Box24.Out Box06.In
222
223 connect Box24.Out Box22.In
224
225 connect Box01.Renderer1 Box30.Renderer
226
227 connect Box31.Widget Box32.Widget1
228
229 connect Box31.Active Box30.Active
230
231 connect Box31.OpacityFunction Box29.OpacityFunction
232
233 connect Box31.ColorFunction Box29.ColorFunction1
234
235 connect Box29.Out Box30.In
236
237 connect Box30.BoxChange Box33.BoxExecute
238
239 connect Box01.Renderer1 Box33.Renderer
240
241 connect Box01.BoxChange Box34.In1
242
243 connect Box34.BoxChange Box31.BoxExecute
244
245 connect Box34.BoxChange Box29.BoxExecute
246
247 connect Box22.Out Box29.In
248
249 connect Box22.Out Box35.In
250
251 connect Box01.Renderer1 Box35.vtkRenderer
252
253 connect Box35.Widget Box32.Widget2
254
255 connect Box36.Widget Box15.Widget2
256
257 connect Box32.Widget Box36.Widget1
258
259 connect Box41.Active Box40.Active
260
261 connect Box41.OpacityFunction Box39.OpacityFunction
262
263 connect Box41.ColorFunction Box39.ColorFunction1
264
265 connect Box39.Out Box40.In
266
267 connect Box40.BoxChange Box43.BoxExecute
268
269 connect Box23.Out Box38.Size
270
271 connect Box46.LstPaths Box47.In
272
273 connect Box01.BoxChange Box44.In1
274
275 connect Box01.Renderer1 Box45.vtkRenderer
276
277 connect Box01.Renderer1 Box40.Renderer
278
279 connect Box19.BoxChange Box50.In1
280
281 connect Box20.BoxChange Box50.In2
282
283 connect Box21.BoxChange Box50.In3
284
285 connect Box50.Out Box44.In2
286
287 connect Box49.Widget Box52.Widget2
288
289 connect Box45.Widget Box42.Widget2
290
291 connect Box41.Widget Box42.Widget1
292
293 connect Box52.Widget Box53.Widget1
294
295 connect Box42.Widget Box53.Widget2
296
297 connect Box53.Widget Box36.Widget2
298
299 connect Box53.Widget Box46.Widget
300
301 connect Box01.Renderer1 Box43.Renderer
302
303 connect Box44.BoxChange Box39.BoxExecute
304
305 connect Box44.BoxChange Box41.BoxExecute
306
307 connect Box46.BoxChange Box47.BoxExecute
308
309 connect Box23.Out Box54.In0
310
311 connect Box01.Point Box56.In0
312
313 connect Box54.Out Box56.In1
314
315 connect Box56.Out Box22.Index
316
317 connect Box57.Widget Box11.Widget1
318
319 connect Box16.widget Box57.Widget1
320
321 connect Box59.BoxChange Box58.BoxExecute
322
323 connect Box46.LstPaths Box61.In
324
325 connect Box58.FileName Box61.In1
326
327 connect Box61.Out Box49.In
328
329 connect Box46.BoxChange Box62.In1
330
331 connect Box59.BoxChange Box62.In2
332
333 connect Box62.BoxChange Box49.BoxExecute
334
335 connect Box58.BoxChange Box44.In3
336
337 connect Box56.Out Box38.Index
338
339 connect Box48.Widget Box64.Widget2
340
341 connect Box59.Widget Box64.Widget1
342
343 connect Box64.Widget Box52.Widget1
344
345 connect Box44.BoxChange Box38.BoxExecute
346
347 connect Box58.Out Box67.In
348
349 connect Box67.Out Box60.In1
350
351 connect Box47.Out Box68.In
352
353 connect Box58.Out Box38.In
354
355 connect Box68.Out Box60.In
356
357 connect Box22.Out Box69.In
358
359 connect Box69.Out Box31.In
360
361 connect Box00.Out Box24.In
362
363 connect Box11.Widget Box72.Widget1
364
365 connect Box05.Widget Box72.Widget2
366
367 connect Box01.Point Box74.point
368
369 connect Box24.Out Box74.vtkimagedata
370
371 connect Box01.Renderer1 Box74.vtkrender
372
373 connect Box74.widget Box75.Widget1
374
375 connect Box75.Widget Box11.Widget3
376
377 connect Box38.Out Box70.In
378
379 connect Box38.Out Box39.In
380
381 connect Box38.Out Box45.In
382
383 connect Box70.Out Box76.In
384
385 connect Box76.Out Box41.In
386
387
388
389 # Complex input ports
390 exec Box71
391 exec Box72