From: Eduardo DAVILA Date: Wed, 8 Mar 2017 09:10:44 +0000 (+0100) Subject: #3071 CreaMiniTools Feature New Normal - imageWriterExample with compress option X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=080c44f5065f1ca512e8b20a065460c4fffd9c7b;p=creaMiniTools.git #3071 CreaMiniTools Feature New Normal - imageWriterExample with compress option --- diff --git a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg index 33f4112..4882f76 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg +++ b/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg @@ -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 BBG BlackBox Diagram file -# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/imageWriterExample.bbg +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - imageWriterExample.bbg # ---------------------------------- APP_START @@ -33,66 +8,96 @@ CATEGORY: DESCRIPTION:Description ?? AUTHOR:Author ?? COMPLEXBOX:FALSE -BOXES:6 +COMPLEXINPUTS:0 +BOXES:8 BOX creaMaracasVisu:ViewerNV:Box03 ISEXEC:FALSE --159.764780:-74.219971:900.000000 --99.124780:-84.219971:900.000000 +-185.327943:-125.175111:-900.000000 +-121.607943:-135.175111:-900.000000 FIN_BOX BOX wx:CommandButton:Box04 ISEXEC:FALSE --95.329914:-74.231573:900.000000 --49.754914:-84.231573:900.000000 +-69.455010:-65.415192:-900.000000 +-23.880010:-75.415192:-900.000000 PORT Label:"Save (Don't forget the .mhd extension)" FIN_BOX BOX -vtk:MetaImageWriter:Box05 -ISEXEC:FALSE --35.097719:-95.671739:900.000000 -10.477281:-105.671739:900.000000 -FIN_BOX -BOX wx:FileSelector:Box06 ISEXEC:FALSE --30.178752:-7.811228:900.000000 -15.396248:-17.811228:900.000000 +6.439330:-92.051790:-900.000000 +52.014330:-102.051790:-900.000000 +PORT +BoxProcessMode:"Reactive" PORT OpenSave:"Save" FIN_BOX BOX wx:LayoutSplit:Box07 ISEXEC:TRUE --121.909835:-116.219850:900.000000 --76.334835:-126.219850:900.000000 +-146.313579:-155.057860:-900.000000 +-100.738579:-165.057860:-900.000000 PORT Proportion:85 FIN_BOX BOX creaImageIO:ImagesChooserDialogBox:Box08 ISEXEC:FALSE --120.270447:-8.863698:900.000000 --49.095447:-18.863698:900.000000 +-120.270447:-8.863698:-900.000000 +-49.095447:-18.863698:-900.000000 +FIN_BOX +BOX +wx:LayoutLine:Box10 +ISEXEC:FALSE +-105.460953:-125.904811:-900.000000 +-47.900953:-135.904811:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +wx:CheckBox:Box11 +ISEXEC:FALSE +-125.763804:-66.183727:-900.000000 +-80.188804:-76.183727:-900.000000 +PORT +In:"false" +PORT +Title:"Compress" FIN_BOX -CONNECTIONS:6 +BOX +vtk:MetaImageWriter:Box12 +ISEXEC:FALSE +2.747871:-134.098369:-900.000000 +48.322871:-144.098369:-900.000000 +FIN_BOX +CONNECTIONS:9 CONNECTION -Box06:Out:Box05:Filename +Box03:Widget:Box07:Widget1 NumberOfControlPoints:0 CONNECTION -Box03:Widget:Box07:Widget1 +Box08:Out:Box03:In NumberOfControlPoints:0 CONNECTION -Box04:Widget:Box07:Widget2 +Box04:Widget:Box10:Widget2 NumberOfControlPoints:0 CONNECTION -Box04:BoxChange:Box05:BoxExecute +Box10:Widget:Box07:Widget2 NumberOfControlPoints:0 CONNECTION -Box08:Out:Box03:In +Box11:Widget:Box10:Widget1 +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box12:Filename +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box12:In +NumberOfControlPoints:0 +CONNECTION +Box11:Out:Box12:Compression NumberOfControlPoints:0 CONNECTION -Box08:Out:Box05:In +Box04:BoxChange:Box12:BoxExecute NumberOfControlPoints:0 APP_END 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