1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - imageWriterExample.bbs
4 # ----------------------------------
7 # ----------------------
11 include creaMaracasVisu
17 description "Description ??"
20 new creaMaracasVisu:ViewerNV Box03
22 new wx:CommandButton Box04
23 set Box04.Label "Save (Don't forget the .mhd extension)"
25 new wx:FileSelector Box06
26 set Box06.BoxProcessMode "Reactive"
27 set Box06.OpenSave "Save"
29 new wx:LayoutSplit Box07
30 set Box07.Proportion 85
32 new creaImageIO:ImagesChooserDialogBox Box08
34 new wx:LayoutLine Box10
35 set Box10.Orientation "H"
39 set Box11.Title "Compress"
41 new vtk:MetaImageWriter Box12
44 connect Box03.Widget Box07.Widget1
46 connect Box08.Out Box03.In
48 connect Box04.Widget Box10.Widget2
50 connect Box10.Widget Box07.Widget2
52 connect Box11.Widget Box10.Widget1
54 connect Box06.Out Box12.Filename
56 connect Box08.Out Box12.In
58 connect Box11.Out Box12.Compression
60 connect Box04.BoxChange Box12.BoxExecute