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