]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs
#3418 merge vtk8itk5wx3-mingw64
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / viewerNVExample.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /home/davila/Creatis/C8/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 std
17 include vtk
18 include creaVtk
19
20 author "Author ??"
21 description "Description ??"
22 category "<VOID>"
23
24 new creaImageIO:ImagesChooserDialogBox Box00
25
26 new creaMaracasVisu:ViewerNV Box01
27   set Box01.nTypeView "6 1 2 0"
28
29 new toolsbbtk:ImageVtkPropertiesWidget Box04
30
31 new wx:LayoutTab Box05
32   set Box05.WinHide "800"
33   set Box05.WinWidth "1000"
34
35 new toolsbbtk:SaveMHD-Button Box06
36
37 new wx:LayoutLine Box07
38   set Box07.WinTitle "MPR Viewer"
39
40 new creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget Box16
41
42 new wx:LayoutTab Box11
43
44 new wx:LayoutLine Box14
45   set Box14.Orientation "H"
46
47 new wx:LayoutSplit Box15
48   set Box15.Proportion "15"
49   set Box15.WinTitle "Crop"
50
51 new wx:Slider Box19
52   set Box19.In "100"
53   set Box19.Label "true"
54   set Box19.Max "400"
55   set Box19.ReactiveOnTrack "true"
56   set Box19.Title "size X"
57
58 new wx:Slider Box20
59   set Box20.In "100"
60   set Box20.Label "true"
61   set Box20.Max "400"
62   set Box20.ReactiveOnTrack "true"
63   set Box20.Title "size Y"
64
65 new wx:Slider Box21
66   set Box21.In "100"
67   set Box21.Label "true"
68   set Box21.Max "400"
69   set Box21.ReactiveOnTrack "true"
70   set Box21.Title "size Z"
71
72 new std:ConcatStrings Box23
73   set Box23.In2 " "
74   set Box23.In4 " "
75
76 new vtk:vtkImageDataPointerRelay Box24
77
78 new vtk:LoadHola Box26
79
80 new std:MultipleInputs Box34
81
82 new wx:LayoutTab Box36
83
84 new std:MultipleInputs Box50
85
86 new wx:LayoutLine Box57
87   set Box57.WinTitle "Layer"
88
89 new creaVtk:OutputWindow Box71
90
91 new wx:LayoutSplit Box72
92   set Box72.Orientation "H"
93   set Box72.WinTitle "ImageTools-Viewer-ViewerNV"
94
95 new creaMaracasVisu:Measure3DLength_Widget Box74
96
97 new wx:LayoutLine Box75
98   set Box75.WinTitle "Tools"
99
100 new wx:LayoutLine Box77
101   set Box77.Orientation "H"
102
103 new wx:Slider Box78
104   set Box78.ChangeResolution "true"
105   set Box78.In "0"
106   set Box78.Label "true"
107   set Box78.Max "1000"
108   set Box78.Min "-1000"
109   set Box78.ReactiveOnTrack "true"
110   set Box78.Title "delta X"
111
112 new wx:Slider Box79
113   set Box79.ChangeResolution "true"
114   set Box79.In "0"
115   set Box79.Label "true"
116   set Box79.Max "1000"
117   set Box79.Min "-1000"
118   set Box79.ReactiveOnTrack "true"
119   set Box79.Title "delta Y"
120
121 new wx:Slider Box80
122   set Box80.ChangeResolution "true"
123   set Box80.In "0"
124   set Box80.Label "true"
125   set Box80.Max "1000"
126   set Box80.Min "-1000"
127   set Box80.ReactiveOnTrack "true"
128   set Box80.Title "delta Z"
129
130 new wx:LayoutLine Box81
131   set Box81.Orientation "V"
132
133 new std:ConcatStrings Box86
134   set Box86.In2 " "
135   set Box86.In4 " "
136
137 new std:MathOperationVector Box87
138
139 new creaMiniTools:crop-viewer-widget Box88
140   set Box88.title "Base Image A"
141
142 new creaMiniTools:crop-viewer-widget Box89
143   set Box89.title "Base Image B"
144
145 new creaMiniTools:crop-viewer-widget-manual Box85
146   set Box85._title "Image A"
147
148 new creaMiniTools:crop-viewer-widget-manual Box90
149   set Box90._title "Image B"
150
151 new std:MultipleInputs Box91
152
153 new creaMaracasVisu:ImageChangeInformation Box49
154
155 new creaMaracasVisu:HelpViewerNV Box51
156
157 new wx:LayoutLine Box52
158   set Box52.WinTitle "Viewer Help"
159
160
161 connect Box04.widget Box05.Widget2
162
163 connect Box06.Widget Box05.Widget3
164
165 connect Box01.Widget Box07.Widget1
166
167 connect Box07.Widget Box05.Widget1
168
169 connect Box01.Renderer1 Box16.renderer3D
170
171 connect Box01.wxVtkBaseView2 Box16.wxvtkbaseview1
172
173 connect Box01.wxVtkBaseView3 Box16.wxvtkbaseview2
174
175 connect Box01.wxVtkBaseView4 Box16.wxvtkbaseview3
176
177 connect Box15.Widget Box11.Widget2
178
179 connect Box19.Widget Box14.Widget1
180
181 connect Box20.Widget Box14.Widget2
182
183 connect Box21.Widget Box14.Widget3
184
185 connect Box19.Out Box23.In1
186
187 connect Box20.Out Box23.In3
188
189 connect Box21.Out Box23.In5
190
191 connect Box24.Out Box01.In
192
193 connect Box24.Out Box04.in
194
195 connect Box24.Out Box06.In
196
197 connect Box01.BoxChange Box34.In1
198
199 connect Box36.Widget Box15.Widget2
200
201 connect Box19.BoxChange Box50.In1
202
203 connect Box20.BoxChange Box50.In2
204
205 connect Box21.BoxChange Box50.In3
206
207 connect Box57.Widget Box11.Widget1
208
209 connect Box16.widget Box57.Widget1
210
211 connect Box11.Widget Box72.Widget1
212
213 connect Box05.Widget Box72.Widget2
214
215 connect Box01.Point Box74.point
216
217 connect Box24.Out Box74.vtkimagedata
218
219 connect Box01.Renderer1 Box74.vtkrender
220
221 connect Box74.widget Box75.Widget1
222
223 connect Box75.Widget Box11.Widget3
224
225 connect Box78.Widget Box77.Widget1
226
227 connect Box79.Widget Box77.Widget2
228
229 connect Box80.Widget Box77.Widget3
230
231 connect Box81.Widget Box15.Widget1
232
233 connect Box14.Widget Box81.Widget1
234
235 connect Box77.Widget Box81.Widget2
236
237 connect Box78.Out Box86.In1
238
239 connect Box79.Out Box86.In3
240
241 connect Box80.Out Box86.In5
242
243 connect Box86.Out Box87.In0
244
245 connect Box01.Point Box87.In1
246
247 connect Box01.Renderer1 Box88.renderer
248
249 connect Box23.Out Box88.size
250
251 connect Box87.Out Box88.position
252
253 connect Box24.Out Box88.image
254
255 connect Box34.BoxChange Box88.box_Execute
256
257 connect Box88.widget Box36.Widget1
258
259 connect Box01.Renderer1 Box89.renderer
260
261 connect Box23.Out Box89.size
262
263 connect Box87.Out Box89.position
264
265 connect Box34.BoxChange Box89.box_Execute
266
267 connect Box01.Renderer1 Box85._renderer
268
269 connect Box34.BoxChange Box85._execute
270
271 connect Box23.Out Box85._size
272
273 connect Box87.Out Box85._position
274
275 connect Box85.wxwidget Box36.Widget3
276
277 connect Box01.Renderer1 Box90._renderer
278
279 connect Box23.Out Box90._size
280
281 connect Box87.Out Box90._position
282
283 connect Box34.BoxChange Box90._execute
284
285 connect Box90.wxwidget Box36.Widget4
286
287 connect Box89.widget Box36.Widget2
288
289 connect Box24.Out Box89.image
290
291 connect Box78.BoxChange Box91.In1
292
293 connect Box79.BoxChange Box91.In2
294
295 connect Box80.BoxChange Box91.In3
296
297 connect Box91.BoxChange Box34.In3
298
299 connect Box50.BoxChange Box34.In2
300
301 connect Box00.Out Box49.In
302
303 connect Box49.Out Box24.In
304
305 connect Box51.widget Box52.Widget1
306
307 connect Box52.Widget Box11.Widget5
308
309
310
311 # Complex input ports
312 exec Box71
313 exec Box72