+# ---------------------------------------------------------------------
+#
+# 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/crop.bbs
include wx
include creaImageIO
include vtk
-include std
+include toolsbbtk
author "Author ??"
description "Description ??"
set Box08.Label "Run Crop"
new ViewerNV Box09
+ set Box09.nTypeView "6 1 2 -1"
new ImageChangeInformation Box10
new LayoutLine Box16
-new CommandButton Box17
- set Box17.Label "Save Image (*.mhd)"
-
-new MetaImageWriter Box18
-
-new FileSelector Box19
- set Box19.OpenSave Save
-
-new StringWriter Box20
-
-new ConcatStrings Box21
- set Box21.In1 "Index "
-
-new ConcatStrings Box22
- set Box22.In2 "_infoCrop"
-
-new ConcatStrings Box23
- set Box23.In1 "Size "
+new ExtractVtkImageFilter Box25
-new ConcatStrings Box24
- set Box24.In1 "FileName "
+new SaveMHD_infoCrop-Button Box26
connect Box03.Widget Box06.Widget2
connect Box08.Widget Box07.Widget2
connect Box07.Widget Box06.Widget1
connect Box08.BoxChange Box05.BoxExecute
-connect Box05.VOI Box10.In
connect Box10.Out Box09.In
connect Box09.Widget Box11.Widget2
connect Box08.BoxChange Box11.BoxExecute
connect Box14.Widget Box16.Widget1
connect Box15.Widget Box16.Widget2
connect Box16.Widget Box11.Widget1
-connect Box17.Widget Box16.Widget3
-connect Box17.BoxChange Box18.BoxExecute
-connect Box10.Out Box18.In
-connect Box21.Out Box20.In0
-connect Box22.Out Box20.FileName
-connect Box17.BoxChange Box20.BoxExecute
-connect Box17.BoxChange Box19.BoxExecute
-connect Box05.Index Box21.In2
-connect Box05.Size Box23.In2
-connect Box23.Out Box20.In1
-connect Box19.Out Box22.In1
-connect Box22.Out Box24.In2
-connect Box24.Out Box20.In2
-connect Box19.Out Box18.Filename
+connect Box05.Index Box25.Index
+connect Box05.Size Box25.Size
+connect Box13.Out Box25.In
+connect Box25.Out Box10.In
+connect Box08.BoxChange Box25.BoxExecute
+connect Box10.Out Box26.In
+connect Box05.Size Box26.Size
+connect Box05.Index Box26.Index
+connect Box26.Widget Box16.Widget3
exec Box06