X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_package_creaMiniTools%2Fbbs%2Fappli%2FimageWriterExample.bbs;fp=bbtk_package_creaMiniTools%2Fbbs%2Fappli%2FimageWriterExample.bbs;h=4a2ec8b44ed0a59bc55b2c8dd7c91bc7909e11d7;hb=080c44f5065f1ca512e8b20a065460c4fffd9c7b;hp=d9b5383959a6a778ed073810f833404f2225e660;hpb=c45c627c63e468220bf99a677453b94d6a41cf25;p=creaMiniTools.git diff --git a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs index d9b5383..4a2ec8b 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs @@ -1,31 +1,6 @@ -# --------------------------------------------------------------------- -# -# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image -# pour la Sant�) -# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton -# Previous Authors : Laurent Guigues, Jean-Pierre Roux -# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil -# -# This software is governed by the CeCILL-B license under French law and -# abiding by the rules of distribution of free software. You can use, -# modify and/ or redistribute the software under the terms of the CeCILL-B -# license as circulated by CEA, CNRS and INRIA at the following URL -# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -# or in the file LICENSE.txt. -# -# As a counterpart to the access to the source code and rights to copy, -# modify and redistribute granted by the license, users are provided only -# with a limited warranty and the software's author, the holder of the -# economic rights, and the successive licensors have only limited -# liability. -# -# The fact that you are presently reading this means that you have had -# knowledge of the CeCILL-B license and that you accept its terms. -# ------------------------------------------------------------------------ */ - # ---------------------------------- -# - BBTKGEditor v 1.2 BBS BlackBox Script -# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbs +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - imageWriterExample.bbs # ---------------------------------- # BBTK GEditor Script @@ -35,34 +10,56 @@ include std include itkvtk include creaMaracasVisu include wx -include vtk include creaImageIO +include vtk author "Author ??" description "Description ??" category "" -new ViewerNV Box03 +new creaMaracasVisu:ViewerNV Box03 -new CommandButton Box04 +new wx:CommandButton Box04 set Box04.Label "Save (Don't forget the .mhd extension)" -new MetaImageWriter Box05 - -new FileSelector Box06 +new wx:FileSelector Box06 + set Box06.BoxProcessMode "Reactive" set Box06.OpenSave "Save" -new LayoutSplit Box07 +new wx:LayoutSplit Box07 set Box07.Proportion 85 -new ImagesChooserDialogBox Box08 +new creaImageIO:ImagesChooserDialogBox Box08 + +new wx:LayoutLine Box10 + set Box10.Orientation "H" + +new wx:CheckBox Box11 + set Box11.In "false" + set Box11.Title "Compress" + +new vtk:MetaImageWriter Box12 -connect Box06.Out Box05.Filename connect Box03.Widget Box07.Widget1 -connect Box04.Widget Box07.Widget2 -connect Box04.BoxChange Box05.BoxExecute + connect Box08.Out Box03.In -connect Box08.Out Box05.In +connect Box04.Widget Box10.Widget2 + +connect Box10.Widget Box07.Widget2 + +connect Box11.Widget Box10.Widget1 + +connect Box06.Out Box12.Filename + +connect Box08.Out Box12.In + +connect Box11.Out Box12.Compression + +connect Box04.BoxChange Box12.BoxExecute + + + +# Complex input ports exec Box07