]> Creatis software - creaMiniTools.git/blobdiff - bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / ThresholdWidget.bbs
index bb6c538c630264beff897070ab7859d8506b9e13..c46776c053e6a3d956ebc9db114d4157ffb1f90e 100644 (file)
@@ -1,3 +1,28 @@
+# ---------------------------------------------------------------------
+#
+# 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 (Complex Box)
 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
@@ -9,7 +34,10 @@ include wx
 include itk
 include creaMaracasVisu
 include creaMiniToolsBase
+include toolsbbtk
 include wxvtk
+include vtk
+include std
 
 define ThresholdWidget creaMiniTools
 
@@ -42,11 +70,6 @@ new SliderMinMax Box07
   set Box07.InMin 0
   set Box07.InMinShow 1000
 
-new Slider Box08
-  set Box08.Label true
-  set Box08.Max 5000
-  set Box08.Title "Iso Min"
-
 new LayoutTab Box09
 
 new SaveMHD-Button Box10
@@ -57,27 +80,44 @@ new OutputText Box11
 new IsoSurfaceWidget Box12
   set Box12.Title "Iso Surface"
 
+new vtkImageDataPointerRelay Box13
+
+new ImageVtkProperties Box14
+
+new GetVectorFloatElement Box15
+  set Box15.I 0
+
+new GetVectorFloatElement Box16
+  set Box16.I 1
+
 
 connect Box00.Widget Box01.Widget5
 connect Box00.BoxChange Box03.BoxExecute
 connect Box02.Out Box03.In
 connect Box03.Widget Box05.Widget2
-connect Box08.Out Box02.LowerThreshold
 connect Box01.Widget Box09.Widget1
 connect Box09.Widget Box05.Widget1
 connect Box02.Out Box10.In
 connect Box11.Widget Box01.Widget1
 connect Box07.Widget Box01.Widget2
-connect Box08.Widget Box01.Widget4
 connect Box02.Out Box12.In
 connect Box00.BoxChange Box12.BoxExecute
 connect Box12.Widget Box09.Widget2
 connect Box10.Widget Box09.Widget3
+connect Box13.Out Box02.In
+connect Box13.Out Box14.In
+connect Box14.MinMax Box15.In
+connect Box14.MinMax Box16.In
+connect Box16.Out Box07.InMax
+connect Box15.Out Box07.InMin
+connect Box07.OutEnd Box02.UpperThreshold
+connect Box07.OutStart Box02.LowerThreshold
+connect Box00.BoxChange Box07.BoxExecute
 
 
 # Complex input ports
 input vtkRenderer Box12.vtkRenderer " "
-input In Box02.In " "
+input In Box13.In " "
 
 # Complex output ports
 output Widget Box05.Widget " "