# ---------------------------------- # - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box) # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniToolsBase/bbs/boxes/SaveMHD-Button.bbs # ---------------------------------- include std include itkvtk include wx include vtk define SaveMHD-Button creaMiniToolsBase author "info-team at creatis.insa-lyon.fr" description "Button that saves the input vtkImageData as a MHD file" category "read/write widget" new CommandButton Box00 set Box00.Label "Save Image" set Box00.WinTitle "Save Img." new MetaImageWriter Box01 new FileSelector Box02 set Box02.BoxProcessMode Always set Box02.OpenSave Save new LayoutLine Box03 set Box03.WinTitle "Save MHD" connect Box00.BoxChange Box01.BoxExecute connect Box02.Out Box01.Filename connect Box00.Widget Box03.Widget1 # Complex input ports input In Box01.In " " # Complex output ports output Widget Box03.Widget " " endefine