]> Creatis software - bbtk.git/blobdiff - packages/toolsbbtk/bbs/boxes/bbSlidersForSize.bbs
Feature #1774
[bbtk.git] / packages / toolsbbtk / bbs / boxes / bbSlidersForSize.bbs
index 0ebc6786fd17a12d1f9eb02b46389df6e39f9db4..a14b5921383d9d6635c82677ee347868ecd2e641 100644 (file)
@@ -1,6 +1,32 @@
+# ---------------------------------------------------------------------
+#
+# 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)
 # ----------------------------------
 # - BBTKGEditor v 1.2 BBS BlackBox Script (Complex Box)
-# - /home/jpr/Desktop/NewDiagramSliders5.bbs
+# - /home/jpr/Creatis/All/creatools_source/bbtk/packages/toolsbbtk/bbs/boxes/bbSlidersForSize.bbs
 # ----------------------------------
 
 include std
 # ----------------------------------
 
 include std
@@ -9,7 +35,7 @@ include itk
 include std
 include wx
 
 include std
 include wx
 
-define SlidersForSize wx
+define SlidersForSize toolsbbtk
 
 author "jean-pierre.roux@creatis.univ-lyon1.fr"
 description "Display 6 sliders for sizes of 3D image"
 
 author "jean-pierre.roux@creatis.univ-lyon1.fr"
 description "Display 6 sliders for sizes of 3D image"
@@ -30,6 +56,7 @@ new GetVectorIntElement gveZ
 new MagicBox mb
 
 new Slider xMin
 new MagicBox mb
 
 new Slider xMin
+  set xMin.In 0
   set xMin.Label "1"
   set xMin.Min "0"
   set xMin.Title "XMin"
   set xMin.Label "1"
   set xMin.Min "0"
   set xMin.Title "XMin"
@@ -40,6 +67,7 @@ new Slider xMax
   set xMax.Title "XMax"
 
 new Slider yMin
   set xMax.Title "XMax"
 
 new Slider yMin
+  set yMin.In 0
   set yMin.Label "1"
   set yMin.Min "0"
   set yMin.Title "YMin"
   set yMin.Label "1"
   set yMin.Min "0"
   set yMin.Title "YMin"
@@ -50,6 +78,7 @@ new Slider yMax
   set yMax.Title "YMax"
 
 new Slider zMin
   set yMax.Title "YMax"
 
 new Slider zMin
+  set zMin.In 0
   set zMin.Label "1"
   set zMin.Min "0"
   set zMin.Title "ZMin"
   set zMin.Label "1"
   set zMin.Min "0"
   set zMin.Title "ZMin"
@@ -61,37 +90,33 @@ new Slider zMax
 
 new MultipleInputs mi1
 
 
 new MultipleInputs mi1
 
-new MultipleInputs mi2
-
 new LayoutLine Box13
 
 new LayoutLine Box13
 
+new Add Box14
+  set Box14.In2 -1
+
+new Add Box15
+  set Box15.In2 -1
+
+new Add Box16
+  set Box16.In2 -1
+
 
 connect mc.Size gveX.In
 connect mc.Size gveY.In
 connect mc.Size gveZ.In
 connect gveX.Out xMin.Max
 
 connect mc.Size gveX.In
 connect mc.Size gveY.In
 connect mc.Size gveZ.In
 connect gveX.Out xMin.Max
-connect gveX.Out xMin.In
 connect mb.Out xMin.ReactiveOnTrack
 connect mb.Out xMin.ReactiveOnTrack
-connect gveX.Out xMax.Max
-connect gveX.Out xMax.In
 connect mb.Out xMax.ReactiveOnTrack
 connect gveY.Out yMin.Max
 connect mb.Out xMax.ReactiveOnTrack
 connect gveY.Out yMin.Max
-connect gveY.Out yMin.In
 connect mb.Out yMin.ReactiveOnTrack
 connect mb.Out yMax.ReactiveOnTrack
 connect mb.Out zMin.ReactiveOnTrack
 connect mb.Out yMin.ReactiveOnTrack
 connect mb.Out yMax.ReactiveOnTrack
 connect mb.Out zMin.ReactiveOnTrack
-connect mi1.BoxChange mi2.In1
 connect xMin.BoxChange mi1.In1
 connect xMax.BoxChange mi1.In2
 connect yMin.BoxChange mi1.In3
 connect yMax.BoxChange mi1.In4
 connect zMin.BoxChange mi1.In5
 connect xMin.BoxChange mi1.In1
 connect xMax.BoxChange mi1.In2
 connect yMin.BoxChange mi1.In3
 connect yMax.BoxChange mi1.In4
 connect zMin.BoxChange mi1.In5
-connect zMax.BoxChange mi2.In2
-connect gveZ.Out zMax.In
-connect gveZ.Out zMax.Max
-connect gveY.Out yMax.In
-connect gveY.Out yMax.Max
-connect gveZ.Out zMin.In
 connect gveZ.Out zMin.Max
 connect xMin.Widget Box13.Widget1
 connect xMax.Widget Box13.Widget2
 connect gveZ.Out zMin.Max
 connect xMin.Widget Box13.Widget1
 connect xMax.Widget Box13.Widget2
@@ -99,6 +124,17 @@ connect yMin.Widget Box13.Widget3
 connect yMax.Widget Box13.Widget4
 connect zMin.Widget Box13.Widget5
 connect zMax.Widget Box13.Widget6
 connect yMax.Widget Box13.Widget4
 connect zMin.Widget Box13.Widget5
 connect zMax.Widget Box13.Widget6
+connect mb.Out zMax.ReactiveOnTrack
+connect gveX.Out Box16.In1
+connect Box15.Out yMax.Max
+connect gveY.Out Box15.In1
+connect gveZ.Out Box14.In1
+connect Box15.Out yMax.In
+connect Box16.Out xMax.In
+connect Box16.Out xMax.Max
+connect Box14.Out zMax.In
+connect Box14.Out zMax.Max
+connect zMax.BoxChange mi1.In6
 
 
 # Complex input ports
 
 
 # Complex input ports
@@ -112,7 +148,7 @@ output YMin yMin.Out " "
 output YMax yMax.Out " "
 output ZMin zMin.Out " "
 output ZMax zMax.Out " "
 output YMax yMax.Out " "
 output ZMin zMin.Out " "
 output ZMax zMax.Out " "
-output BoxChange mi2.BoxChange " "
 output Wigdet Box13.Widget " "
 output Wigdet Box13.Widget " "
+output BoxChange mi1.BoxChange " "
 
 endefine
 
 endefine