]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniToolsBase/bbs/boxes/SaveMHD-Button.bbs
453c27f4cbe68b9c733283beeafb8ffcfd58099e
[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
29 connect Box00.BoxChange Box01.BoxExecute
30 connect Box02.Out Box01.Filename
31
32
33 # Complex input ports
34 input In Box01.In " "
35
36 # Complex output ports
37 output Widget Box00.Widget " "
38
39 endefine