]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs
#3071 CreaMiniTools Feature New Normal - imageWriterExample with compress option
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / imageWriterExample.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - imageWriterExample.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include creaMaracasVisu
12 include wx
13 include creaImageIO
14 include vtk
15
16 author "Author ??"
17 description "Description ??"
18 category "<VOID>"
19
20 new creaMaracasVisu:ViewerNV Box03
21
22 new wx:CommandButton Box04
23   set Box04.Label "Save   (Don't forget the .mhd extension)"
24
25 new wx:FileSelector Box06
26   set Box06.BoxProcessMode "Reactive"
27   set Box06.OpenSave "Save"
28
29 new wx:LayoutSplit Box07
30   set Box07.Proportion 85
31
32 new creaImageIO:ImagesChooserDialogBox Box08
33
34 new wx:LayoutLine Box10
35   set Box10.Orientation "H"
36
37 new wx:CheckBox Box11
38   set Box11.In "false"
39   set Box11.Title "Compress"
40
41 new vtk:MetaImageWriter Box12
42
43
44 connect Box03.Widget Box07.Widget1
45
46 connect Box08.Out Box03.In
47
48 connect Box04.Widget Box10.Widget2
49
50 connect Box10.Widget Box07.Widget2
51
52 connect Box11.Widget Box10.Widget1
53
54 connect Box06.Out Box12.Filename
55
56 connect Box08.Out Box12.In
57
58 connect Box11.Out Box12.Compression
59
60 connect Box04.BoxChange Box12.BoxExecute
61
62
63
64 # Complex input ports
65 exec Box07