]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs
b6d8886ee52204e72ee7fadb49fe53833294da50
[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 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
94 new creaMaracasVisu:Measure3DLength_Widget Box74
95
96 new wx:LayoutLine Box75
97   set Box75.WinTitle "Tools"
98
99 new wx:LayoutLine Box77
100   set Box77.Orientation "H"
101
102 new wx:Slider Box78
103   set Box78.ChangeResolution "true"
104   set Box78.In "0"
105   set Box78.Label "true"
106   set Box78.Max "1000"
107   set Box78.Min "-1000"
108   set Box78.ReactiveOnTrack "true"
109   set Box78.Title "delta X"
110
111 new wx:Slider Box79
112   set Box79.ChangeResolution "true"
113   set Box79.In "0"
114   set Box79.Label "true"
115   set Box79.Max "1000"
116   set Box79.Min "-1000"
117   set Box79.ReactiveOnTrack "true"
118   set Box79.Title "delta Y"
119
120 new wx:Slider Box80
121   set Box80.ChangeResolution "true"
122   set Box80.In "0"
123   set Box80.Label "true"
124   set Box80.Max "1000"
125   set Box80.Min "-1000"
126   set Box80.ReactiveOnTrack "true"
127   set Box80.Title "delta Z"
128
129 new wx:LayoutLine Box81
130   set Box81.Orientation "V"
131
132 new std:ConcatStrings Box86
133   set Box86.In2 " "
134   set Box86.In4 " "
135
136 new std:MathOperationVector Box87
137
138 new creaMiniTools:crop-viewer-widget Box88
139   set Box88.title "Base Image A"
140
141 new creaMiniTools:crop-viewer-widget Box89
142   set Box89.title "Base Image B"
143
144 new creaMiniTools:crop-viewer-widget-manual Box85
145   set Box85._title "Image A"
146
147 new creaMiniTools:crop-viewer-widget-manual Box90
148   set Box90._title "Image B"
149
150 new std:MultipleInputs Box91
151
152
153 connect Box04.widget Box05.Widget2
154
155 connect Box06.Widget Box05.Widget3
156
157 connect Box01.Widget Box07.Widget1
158
159 connect Box07.Widget Box05.Widget1
160
161 connect Box01.Renderer1 Box16.renderer3D
162
163 connect Box01.wxVtkBaseView2 Box16.wxvtkbaseview1
164
165 connect Box01.wxVtkBaseView3 Box16.wxvtkbaseview2
166
167 connect Box01.wxVtkBaseView4 Box16.wxvtkbaseview3
168
169 connect Box15.Widget Box11.Widget2
170
171 connect Box19.Widget Box14.Widget1
172
173 connect Box20.Widget Box14.Widget2
174
175 connect Box21.Widget Box14.Widget3
176
177 connect Box19.Out Box23.In1
178
179 connect Box20.Out Box23.In3
180
181 connect Box21.Out Box23.In5
182
183 connect Box24.Out Box01.In
184
185 connect Box24.Out Box04.in
186
187 connect Box24.Out Box06.In
188
189 connect Box01.BoxChange Box34.In1
190
191 connect Box36.Widget Box15.Widget2
192
193 connect Box19.BoxChange Box50.In1
194
195 connect Box20.BoxChange Box50.In2
196
197 connect Box21.BoxChange Box50.In3
198
199 connect Box57.Widget Box11.Widget1
200
201 connect Box16.widget Box57.Widget1
202
203 connect Box11.Widget Box72.Widget1
204
205 connect Box05.Widget Box72.Widget2
206
207 connect Box01.Point Box74.point
208
209 connect Box24.Out Box74.vtkimagedata
210
211 connect Box01.Renderer1 Box74.vtkrender
212
213 connect Box74.widget Box75.Widget1
214
215 connect Box75.Widget Box11.Widget3
216
217 connect Box78.Widget Box77.Widget1
218
219 connect Box79.Widget Box77.Widget2
220
221 connect Box80.Widget Box77.Widget3
222
223 connect Box81.Widget Box15.Widget1
224
225 connect Box14.Widget Box81.Widget1
226
227 connect Box77.Widget Box81.Widget2
228
229 connect Box78.Out Box86.In1
230
231 connect Box79.Out Box86.In3
232
233 connect Box80.Out Box86.In5
234
235 connect Box86.Out Box87.In0
236
237 connect Box01.Point Box87.In1
238
239 connect Box01.Renderer1 Box88.renderer
240
241 connect Box23.Out Box88.size
242
243 connect Box87.Out Box88.position
244
245 connect Box24.Out Box88.image
246
247 connect Box34.BoxChange Box88.box_Execute
248
249 connect Box88.widget Box36.Widget1
250
251 connect Box01.Renderer1 Box89.renderer
252
253 connect Box23.Out Box89.size
254
255 connect Box87.Out Box89.position
256
257 connect Box34.BoxChange Box89.box_Execute
258
259 connect Box01.Renderer1 Box85._renderer
260
261 connect Box34.BoxChange Box85._execute
262
263 connect Box23.Out Box85._size
264
265 connect Box87.Out Box85._position
266
267 connect Box85.wxwidget Box36.Widget3
268
269 connect Box01.Renderer1 Box90._renderer
270
271 connect Box23.Out Box90._size
272
273 connect Box87.Out Box90._position
274
275 connect Box34.BoxChange Box90._execute
276
277 connect Box90.wxwidget Box36.Widget4
278
279 connect Box89.widget Box36.Widget2
280
281 connect Box24.Out Box89.image
282
283 connect Box78.BoxChange Box91.In1
284
285 connect Box79.BoxChange Box91.In2
286
287 connect Box80.BoxChange Box91.In3
288
289 connect Box91.BoxChange Box34.In3
290
291 connect Box50.BoxChange Box34.In2
292
293 connect Box00.Out Box24.In
294
295
296
297 # Complex input ports
298 exec Box71
299 exec Box72