]> Creatis software - bbtk.git/blobdiff - packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs
#3073 BBTK Bug New Normal - message documentation in boxes
[bbtk.git] / packages / wxvtk / bbs / boxes / bbIsoSurfaceWidget.bbs
index 8a2cfc5267a4580c5c8c9d5a44f0d9326fde311c..5e349f10b60c61c166024d1b772c4078916fbb8b 100644 (file)
@@ -1,32 +1,6 @@
- # ---------------------------------------------------------------------
- #
- # 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/bbtk/packages/wxvtk/bbs/boxes/bbIsoSurfaceWidget.bbs
+# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
+# - bbIsoSurfaceWidget.bbs
 # ----------------------------------
 
 include std
@@ -42,48 +16,60 @@ description "Image iso-surface extractor (vtk"
 
 category "image;mesh;widget;viewer"
 
-new LayoutLine controls
+new wx:LayoutLine controls
   set controls.Orientation "HORIZONTAL"
 
-new LayoutLine sliders
+new vtk:IsoSurfaceExtractor Asurface
 
-new IsoSurfaceExtractor surface
-
-new Slider isovalue
-  set isovalue.Max 5000
+new wx:Slider isovalue
+  set isovalue.ChangeResolution "true"
+  set isovalue.Max "5000"
   set isovalue.Title "Isovalue"
 
-new Slider opacity
+new wx:Slider opacity
   set opacity.In "100"
   set opacity.Max "100"
   set opacity.Min "0"
+  set opacity.ReactiveOnTrack "true"
   set opacity.Title "Opacity"
 
-new LayoutLine colourFrame
-  set colourFrame.WinTitle "Colour"
+new wx:ColourSelectorButton colour
+
+new std:MultipleInputs refresh
 
-new ColourSelectorButton colour
+new std:Div Adiv
+  set Adiv.In2 "100"
 
-new MultipleInputs refresh
+new vtk:UpdateRender Box08
+  set Box08.Active "true"
 
-new Div div
-  set div.In2 "100"
+new std:MagicBox Box09
 
+new wx:CheckBox Box10
+  set Box10.In "false"
+  set Box10.ReactiveOnKeystroke "true"
+  set Box10.Title "Active"
 
-connect sliders.Widget controls.Widget1
-connect colourFrame.Widget controls.Widget2
-connect colour.Widget colourFrame.Widget1
-connect isovalue.Widget sliders.Widget1
-connect opacity.Widget sliders.Widget2
-connect isovalue.Out surface.Isovalue
-connect opacity.Out div.In1
-connect div.Out surface.Opacity
-connect colour.Out surface.Colour
+
+connect isovalue.Out Asurface.Isovalue
+connect opacity.Out Adiv.In1
+connect Adiv.Out Asurface.Opacity
+connect colour.Out Asurface.Colour
 connect isovalue.BoxChange refresh.In1
 connect opacity.BoxChange refresh.In2
+connect Box09.Out Asurface.Renderer
+connect Box09.Out Box08.Renderer
+connect opacity.BoxChange refresh.BoxExecute
+connect refresh.BoxChange Asurface.BoxExecute
+connect refresh.BoxChange Box08.BoxExecute
+connect refresh.BoxChange Adiv.BoxExecute
 connect colour.BoxChange refresh.In3
-connect refresh.Out surface.BoxExecute
-
+connect Box10.BoxChange refresh.In5
+connect Box10.Out Asurface.active
+connect colour.Widget controls.Widget4
+connect opacity.Widget controls.Widget3
+connect isovalue.Widget controls.Widget2
+connect Box10.Widget controls.Widget1
 
 # Complex input ports
 input Title controls.WinTitle " "
@@ -92,13 +78,14 @@ input Isovalue isovalue.In " "
 input Colour colour.In " "
 input Vertical controls.Orientation " "
 input BoxExecute refresh.In4 " "
-input vtkRenderer surface.Renderer " "
-input In surface.In " "
+input In Asurface.In " "
 input maxIsovalue isovalue.Max " "
+input vtkRenderer Box09.In " "
 
 # Complex output ports
-output Out surface.Out " "
-output BoxChange refresh.Out " "
+output Out Asurface.Out " "
 output Widget controls.Widget " "
+output BoxChange refresh.BoxChange " "
+
 
 endefine