]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniToolsBase/bbs/boxes/SaveMHD-Button.bbs
no message
[creaMiniTools.git] / bbtk_package_creaMiniToolsBase / bbs / boxes / SaveMHD-Button.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniToolsBase/bbs/boxes/SaveMHD-Button.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include vtk
10
11 define SaveMHD-Button creaMiniToolsBase
12
13 author "info-team at creatis.insa-lyon.fr"
14 description "Button that saves the input vtkImageData as a MHD file"
15
16 category "read/write widget"
17
18 new CommandButton Box00
19   set Box00.Label "Save Image"
20   set Box00.WinTitle "Save Img."
21
22 new MetaImageWriter Box01
23
24 new FileSelector Box02
25   set Box02.BoxProcessMode Always
26   set Box02.OpenSave Save
27
28 new LayoutLine Box03
29   set Box03.WinTitle "Save MHD"
30
31
32 connect Box00.BoxChange Box01.BoxExecute
33 connect Box02.Out Box01.Filename
34 connect Box00.Widget Box03.Widget1
35
36
37 # Complex input ports
38 input In Box01.In " "
39
40 # Complex output ports
41 output Widget Box03.Widget " "
42
43 endefine