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