# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) # - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/boxes/ImageWriteB.bbs # ---------------------------------- include std include itkvtk include std include itk include wt define ImageWriteB wt author "Author ??" description "Description ??" category "" new std:ConcatStrings Box00 set Box00.In1 "hola" set Box00.In3 ".nii" new itk:ImageWriter Box01 new wt:GetConfigServerWt Box02 new std:RandomString Box03 new std:ConcatStrings Box04 set Box04.In1 "imagesTMP/" new std:ConcatStrings Box05 set Box05.In2 "/" new std:MagicBox Box06 connect Box00.Out Box04.In2 connect Box02.DocRoot Box05.In1 connect Box04.Out Box05.In3 connect Box05.Out Box01.Filename connect Box03.Out Box00.In2 connect Box06.BoxChange Box04.BoxExecute connect Box06.BoxChange Box01.BoxExecute # Complex input ports input Image Box01.In " " input boxExecute Box06.In " " # Complex output ports output FileName Box04.Out " " output out Box01.BoxChange " " message exec Box01 endefine