1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/C10/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/ViewerByPlane.bbs
4 # ----------------------------------
8 include creaMaracasVisu
13 define ViewerByPlane creaMaracasVisu
16 description "Description ??"
20 new creaMaracasVisu:ViewerNV Box01
21 set Box01.ColorLevel "900"
22 set Box01.WindowLevel "2000"
23 set Box01.nTypeView "6 1 2 0"
25 new vtk:CreateImage Box02
26 set Box02.InitialValue "500"
28 new creaVtk:MHDFileInfo Box03
30 new std:ConcatStrings Box04
32 new creaVtk:ReadMHDPlane Box05
33 set Box05.DirectionPlane "XY"
37 new std:GetVectorIntElement Box06
40 new std:ConcatStrings Box07
43 new vtk:InversCrop Box08
44 set Box08.Active "false"
47 new creaVtk:ReadMHDPlane Box12
48 set Box12.DirectionPlane "ZX"
52 new std:GetVectorIntElement Box13
55 new vtk:InversCrop Box14
56 set Box14.Active "false"
59 new std:ConcatStrings Box15
63 new creaVtk:ReadMHDPlane Box18
64 set Box18.DirectionPlane "YZ"
68 new std:GetVectorIntElement Box19
71 new vtk:InversCrop Box20
72 set Box20.Active "false"
75 new std:ConcatStrings Box21
78 new std:MagicBox Box22
80 new std:CreateArithmeticSuiteVector Box25
82 set Box25.FirstValue "1"
84 new std:GetVectorIntElement Box28
87 new std:GetVectorIntPointer Box29
89 new std:SetElementVectorVectorInt Box30
92 new std:GetVectorIntElement Box31
95 new std:SetElementVectorVectorInt Box32
99 new std:CreateArithmeticSuiteVector Box33
101 set Box33.FirstValue "1"
103 new std:GetVectorIntElement Box34
106 new std:GetVectorIntPointer Box35
108 new std:SetElementVectorVectorInt Box36
111 new std:GetVectorIntElement Box37
114 new std:SetElementVectorVectorInt Box38
118 new std:CreateArithmeticSuiteVector Box39
120 set Box39.FirstValue "1"
122 new std:GetVectorIntElement Box40
125 new std:GetVectorIntPointer Box41
127 new std:SetElementVectorVectorInt Box42
130 new std:GetVectorIntElement Box43
133 new std:SetElementVectorVectorInt Box44
143 new std:ConcatStrings Box51
158 new std:ConcatStrings Box57
161 new std:GetVectorIntElement Box63
164 new std:MathOperation Box64
167 new std:ConcatStrings Box65
169 new std:GetVectorIntElement Box66
172 new std:MathOperation Box67
175 new std:ConcatStrings Box68
177 new std:GetVectorIntElement Box69
180 new std:MathOperation Box70
183 new std:ConcatStrings Box71
186 connect Box02.Out Box01.In
187 connect Box03.DimSize Box02.Dimensions
188 connect Box03.ElementSpacing Box02.Spacing
189 connect Box03.ElementType Box02.OutputFormat
190 connect Box04.Out Box03.FileName
191 connect Box04.Out Box05.FileName
192 connect Box01.Point Box06.In
193 connect Box07.Out Box08.Origin
194 connect Box02.Out Box08.ImageFix
195 connect Box05.Out Box08.ImageMove
196 connect Box01.BoxChange Box08.BoxExecute
197 connect Box04.Out Box12.FileName
198 connect Box01.Point Box13.In
199 connect Box01.BoxChange Box14.BoxExecute
200 connect Box02.Out Box14.ImageFix
201 connect Box15.Out Box14.Origin
202 connect Box12.Out2 Box14.ImageMove
203 connect Box21.Out Box20.Origin
204 connect Box04.Out Box18.FileName
205 connect Box01.Point Box19.In
206 connect Box01.BoxChange Box20.BoxExecute
207 connect Box02.Out Box20.ImageFix
208 connect Box18.Out2 Box20.ImageMove
209 connect Box22.Out Box05.Type
210 connect Box22.Out Box12.Type
211 connect Box22.Out Box18.Type
212 connect Box03.DimSize Box28.In
213 connect Box29.PVec Box30.PVec
214 connect Box25.ArithmeticSuiteVector Box29.In
215 connect Box29.PVec Box32.PVec
216 connect Box32.Vec Box31.In
217 connect Box08.BoxChange Box30.BoxExecute
218 connect Box35.PVec Box36.PVec
219 connect Box33.ArithmeticSuiteVector Box35.In
220 connect Box35.PVec Box38.PVec
221 connect Box38.Vec Box37.In
222 connect Box03.DimSize Box34.In
223 connect Box14.BoxChange Box36.BoxExecute
224 connect Box41.PVec Box42.PVec
225 connect Box39.ArithmeticSuiteVector Box41.In
226 connect Box41.PVec Box44.PVec
227 connect Box44.Vec Box43.In
228 connect Box03.DimSize Box40.In
229 connect Box20.BoxChange Box42.BoxExecute
230 connect Box43.Out Box18.Active
231 connect Box37.Out Box12.Active
232 connect Box31.Out Box05.Active
233 connect Box19.BoxChange Box43.BoxExecute
234 connect Box13.BoxChange Box37.BoxExecute
235 connect Box06.BoxChange Box31.BoxExecute
236 connect Box06.BoxChange Box32.BoxExecute
237 connect Box13.BoxChange Box38.BoxExecute
238 connect Box19.BoxChange Box44.BoxExecute
239 connect Box28.Out Box49.In1
240 connect Box49.Out Box25.Size
241 connect Box06.Out Box50.In1
242 connect Box50.Out Box31.I
243 connect Box51.Out Box49.In2
244 connect Box51.Out Box50.In2
245 connect Box51.Out Box05.Width
246 connect Box50.Out Box30.I
247 connect Box51.Out Box12.Width
248 connect Box34.Out Box53.In1
249 connect Box53.Out Box33.Size
250 connect Box51.Out Box53.In2
251 connect Box51.Out Box54.In2
252 connect Box13.Out Box54.In1
253 connect Box54.Out Box37.I
254 connect Box54.Out Box36.I
255 connect Box40.Out Box56.In1
256 connect Box56.Out Box39.Size
257 connect Box55.Out Box43.I
258 connect Box19.Out Box55.In1
259 connect Box55.Out Box42.I
260 connect Box43.Out Box20.Active
261 connect Box31.Out Box08.Active
262 connect Box37.Out Box14.Active
263 connect Box57.Out Box56.In2
264 connect Box57.Out Box55.In2
265 connect Box57.Out Box18.Width
266 connect Box63.Out Box64.In1
267 connect Box51.Out Box64.In2
268 connect Box64.Out Box07.In2
269 connect Box50.Out Box65.In1
270 connect Box65.Out Box63.In
271 connect Box64.Out Box05.Slice
272 connect Box66.Out Box67.In1
273 connect Box68.Out Box66.In
274 connect Box54.Out Box68.In1
275 connect Box51.Out Box67.In2
276 connect Box67.Out Box15.In2
277 connect Box67.Out Box12.Slice
278 connect Box69.Out Box70.In1
279 connect Box71.Out Box69.In
280 connect Box70.Out Box21.In1
281 connect Box70.Out Box18.Slice
282 connect Box57.Out Box70.In2
283 connect Box55.Out Box71.In1
285 # Complex input ports
286 input FileNale Box04.In1 " "
287 input typeMHDorSeek Box22.In " "
289 # Complex output ports
290 output wxvtkbaseview1 Box01.wxVtkBaseView1 " "
291 output render1 Box01.Renderer1 " "
292 output render2 Box01.Renderer2 " "
293 output render3 Box01.Renderer3 " "
294 output render4 Box01.Renderer4 " "
295 output Image Box02.Out " "
296 output point Box01.Point " "
297 output boxchange Box01.BoxChange " "
298 output wxvtkbaseview2 Box01.wxVtkBaseView2 " "
299 output wxvtkbaseview3 Box01.wxVtkBaseView3 " "
300 output wxvtkbaseview4 Box01.wxVtkBaseView4 " "
301 output widget Box01.Widget " "