]> Creatis software - creaMiniTools.git/blobdiff - bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / rescaleSlopeIntercept0.bbs
index a5aacc8302e9d1f3b22539d568b94c5db9c7e22b..60035feadd906f5d0672c67acb73533fa1d48300 100755 (executable)
@@ -1,6 +1,31 @@
+# ---------------------------------------------------------------------
+#
+# 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
-# - /home/pechan/Documents/courses/development/creatis/dev/src/minitools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept0.bbs
+# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
 # ----------------------------------
 
 # BBTK GEditor Script
 
 include std
 include itkvtk
-include creaImageIO
-include creaMaracasVisu
 include vtk
+include creaMiniTools
 include wx
-include minitools
+include itk
+include creaMiniToolsBase
+include toolsbbtk
+include std
 
 author "Author ??"
 description "Description ??"
 category "<VOID>"
 
-new ImagesChooserDialogBox Box00
+new RescaleSlopeIntercept Box03
+  set Box03.Type 0
 
-new ViewerNV Box01
-  set Box01.WinTitle "View"
+new ImagePropertiesWidget Box06
 
-new ViewerNV Box02
+new ImagePropertiesWidget Box07
 
-new RescaleSlopeIntercept Box03
-  set Box03.Type 0
+new FileSelector Box10
+
+new ImageReader Box11
+
+new LayoutLine Box12
+
+new InputText Box13
+  set Box13.In 0
+  set Box13.Title Slope
+
+new InputText Box14
+  set Box14.In 1
+  set Box14.Title "Rescale"
+
+new OutputText Box15
+  set Box15.In "NewPixel = Rescale * Pixel + Slope"
+
+new LayoutLine Box16
+  set Box16.Orientation H
+
+new CommandButton Box17
+  set Box17.Label "Run RescaleSlopeIntercept"
+
+new SaveMHD-Button Box20
 
-new LayoutTab Box04
-  set Box04.WinTitle "View"
+new RadioButton Box25
+  set Box25.In 2
+  set Box25.In0 VTK_UNSIGNED_CHAR
+  set Box25.In1 VTK_SIGNED_CHAR
+  set Box25.In2 VTK_UNSIGNED_SHORT
+  set Box25.In3 VTK_SHORT
+  set Box25.In4 VTK_UNSIGNED_INT
+  set Box25.In5 VTK_SIGNED_INT
+  set Box25.In6 VTK_UNSIGNED_LONG
+  set Box25.In7 VTK_SIGNED_LONG
+  set Box25.In8 VTK_FLOAT
+  set Box25.In9 VTK_DOUBLE
+  set Box25.Title "Output Data Format"
 
-new LayoutTab Box05
+new StringSelect Box26
+  set Box26.In0 "VTK_UNSIGNED_CHAR"
+  set Box26.In1 "VTK_SIGNED_CHAR"
+  set Box26.In2 "VTK_UNSIGNED_SHORT"
+  set Box26.In3 "VTK_SIGNED_SHORT"
+  set Box26.In4 "VTK_UNSIGNED_INT"
+  set Box26.In5 "VTK_SIGNED_INT"
+  set Box26.In6 "VTK_UNSIGNED_LONG"
+  set Box26.In7 "VTK_SIGNED_LONG"
+  set Box26.In8 "VTK_FLOAT"
+  set Box26.In9 "VTK_DOUBLE"
 
-new ImagePropertiesComplexBox Box06
+new LayoutSplit Box27
+  set Box27.Proportion 15
+  set Box27.WinHeight 300
+  set Box27.WinWidth 300
 
-new ImagePropertiesComplexBox Box07
+new LayoutSplit Box33
+  set Box33.Proportion 90
 
-new LayoutSplit Box08
-  set Box08.WinTitle "RescaleSlopeIntercept 1"
+new LayoutSplit Box34
 
 
-connect Box00.Out Box01.In
-connect Box00.Out Box03.In
-connect Box03.Out Box02.In
-connect Box01.Widget Box04.Widget1
-connect Box02.Widget Box05.Widget1
-connect Box00.Out Box06.in
-connect Box06.widget Box04.Widget2
 connect Box03.Out Box07.in
-connect Box07.widget Box05.Widget2
-connect Box04.Widget Box08.Widget1
-connect Box05.Widget Box08.Widget2
+connect Box10.Out Box11.In
+connect Box15.Widget Box12.Widget1
+connect Box06.widget Box16.Widget1
+connect Box03.Out Box20.In
+connect Box26.Out Box03.OutputFormat
+connect Box25.Out Box26.In
+connect Box14.Out Box03.A
+connect Box13.Out Box03.B
+connect Box07.widget Box27.Widget2
+connect Box20.Widget Box27.Widget1
+connect Box14.Widget Box12.Widget2
+connect Box13.Widget Box12.Widget3
+connect Box11.Out Box03.In
+connect Box17.BoxChange Box27.BoxExecute
+connect Box11.Out Box06.in
+connect Box17.Widget Box33.Widget2
+connect Box16.Widget Box33.Widget1
+connect Box25.Widget Box34.Widget2
+connect Box12.Widget Box34.Widget1
+connect Box34.Widget Box16.Widget2
 
-exec Box08
+exec Box33