]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/SaveMHD-Button.bbs
eeb3fa68adb6a3872b1cec04bfa1aa9cef414257
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / SaveMHD-Button.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/creaMiniTools/boxes/SaveMHD-Button.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include vtk
10
11 define SaveMHD-Button creaMiniTools
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.OpenSave Save
26
27
28 connect Box00.BoxChange Box01.BoxExecute
29 connect Box02.Out Box01.Filename
30
31
32 # Complex input ports
33 input In Box01.In " "
34
35 # Complex output ports
36 output Widget Box00.Widget " "
37
38 endefine