+# ---------------------------------------------------------------------
+#
+# 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/All2/creatools_install/share/bbtk/bbs/minitools/boxes/ConnectivityWidget.bbs
+# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs
# ----------------------------------
include std
include wx
include creaMaracasVisu
include vtk
-include minitools
+include toolsbbtk
+include wxvtk
+include std
-define ConnectivityWidget minitools
+define ConnectivityWidget creaMiniTools
author "info-team at creatis.insa-lyon.fr"
description "Threshod binary widget"
new CommandButton Box00
set Box00.Label Run
-new LayoutLine Box01
- set Box01.WinTitle "Parameters"
-
new ViewerNV Box03
set Box03.nTypeView "0"
new SegmentationConnectivity Box07
-new InputText Box08
- set Box08.In "1500 5000"
- set Box08.Title "Min Max"
-
-new InputText Box09
- set Box09.In "10 10 10"
- set Box09.Title "posX posY posZ"
-
new SaveMHD-Button Box10
new LayoutTab Box11
-new LayoutLine Box12
- set Box12.WinTitle "Save and Visu"
+new IsoSurfaceWidget Box14
+ set Box14.Title "Iso Surface"
+ set Box14.maxIsovalue 255
+
+new LayoutLine Box15
+ set Box15.Orientation H
+ set Box15.WinTitle "Parameters"
+
+new MagicBox Box17
+
+new SliderMinMax Box18
+ set Box18.InMax 2000
+ set Box18.ShowActual false
+
+new ConcatStrings Box19
+ set Box19.In2 " "
+
+new ShowNPoints Box21
+ set Box21.Opacity 100
+ set Box21.Radio 5
+ set Box21.Type 1
+
+new MagicBox Box23
+
+new vtkImageDataPointerRelay Box24
+
+new GetVectorIntElement Box25
+ set Box25.I 0
+
+new GetVectorIntElement Box26
+ set Box26.I 0
+
+new GetVectorIntElement Box27
+ set Box27.I 0
+
+new ConcatStrings Box28
+ set Box28.In2 " "
+ set Box28.In4 " "
+
+new OutputText Box29
+ set Box29.Title "3D Point"
+
+new LayoutLine Box30
+
+new ImageVtkProperties Box32
+
+new GetVectorFloatElement Box35
+ set Box35.I 0
+
+new GetVectorFloatElement Box36
+ set Box36.I 1
-new Slider Box13
- set Box13.In 0
- set Box13.Label true
- set Box13.Max 100
- set Box13.Min 0
- set Box13.Title Opacity
+new OutputText Box37
+ set Box37.In "Min. Max gray level"
-connect Box00.Widget Box01.Widget5
connect Box00.BoxChange Box03.BoxExecute
connect Box03.Widget Box05.Widget2
connect Box07.Out Box03.In
-connect Box08.Widget Box01.Widget1
-connect Box08.Out Box07.ThresholdMinMax
-connect Box09.Widget Box01.Widget2
-connect Box09.Out Box07.PositionXYZ
connect Box07.Out Box10.In
-connect Box10.Widget Box12.Widget1
-connect Box13.Widget Box12.Widget2
-connect Box12.Widget Box11.Widget2
-connect Box01.Widget Box11.Widget1
connect Box11.Widget Box05.Widget1
+connect Box07.Out Box14.In
+connect Box10.Widget Box11.Widget3
+connect Box14.Widget Box11.Widget2
+connect Box00.BoxChange Box14.BoxExecute
+connect Box18.OutEnd Box19.In3
+connect Box18.OutStart Box19.In1
+connect Box19.Out Box07.ThresholdMinMax
+connect Box21.Widget Box15.Widget1
+connect Box17.Out Box21.In
+connect Box23.Out Box14.vtkRenderer
+connect Box23.Out Box21.Renderer
+connect Box24.Out Box07.In
+connect Box24.Out Box21.Image
+connect Box21.lstPointsX Box25.In
+connect Box21.lstPointsY Box26.In
+connect Box21.lstPointsZ Box27.In
+connect Box25.Out Box28.In1
+connect Box26.Out Box28.In3
+connect Box27.Out Box28.In5
+connect Box28.Out Box07.PositionXYZ
+connect Box21.BoxChange Box29.BoxExecute
+connect Box30.Widget Box15.Widget2
+connect Box15.Widget Box11.Widget1
+connect Box28.Out Box29.In
+connect Box24.Out Box32.In
+connect Box32.MinMax Box35.In
+connect Box32.MinMax Box36.In
+connect Box36.Out Box18.InMax
+connect Box35.Out Box18.InMin
+connect Box00.Widget Box30.Widget4
+connect Box18.Widget Box30.Widget2
+connect Box29.Widget Box30.Widget1
+connect Box37.Widget Box30.Widget3
+connect Box00.BoxChange Box18.BoxExecute
# Complex input ports
-input In Box07.In " "
+input point Box17.In " "
+input vtkRenderer Box23.In " "
+input In Box24.In " "
+input end Box18.InMaxShow " "
+input start Box18.InMinShow " "
# Complex output ports
output Widget Box05.Widget " "
+output BoxChange Box14.BoxChange " "
+output OutImage Box07.Out " "
endefine