]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/bbs/appli/exampleGaussianSmooth.bbs
#3109 creaMaracasVisu Bug New Normal - branch vtk7itk4 compilation with vtk7
[creaMaracasVisu.git] / bbtk / bbs / appli / exampleGaussianSmooth.bbs
index 9d79d4d3dfcbcbb4b96318525e0bf0cb71dcafec..4d563773aec520a991b032b22e6d3b63633fcead 100644 (file)
-# ---------------------------------------------------------------------
-#
-# 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.4 BBS BlackBox Script
+# - /tmpEED/creaTools2/creatools_source/creaMaracasVisu/bbtk/bbs/appli/exampleGaussianSmooth.bbs
+# ----------------------------------
 
-description "creaMaracasVisu::ImageGaussianSmooth box example. "
-category "example"
-author "eduardo.davila@creatis.insa-lyon.fr"
+# BBTK GEditor Script
+# ----------------------
 
 include std
+include itkvtk
 include vtk
+include std
 include wx
-include itk
-include itkvtk
 include wxvtk
+include itk
+
+author "eduardo.davila@creatis.insa-lyon.fr"
+description "creaMaracasVisu::ImageGaussianSmooth box example. "
+category "example"
+
+new vtk:MetaImageReader reader
+
+new std:PrependPackageDataPath prependDatapath
+  set prependDatapath.In "vtk/hola.mhd"
+
+new wx:Slider slider
+
+new wxvtk:Viewer2D viewer2DImageOriginal
+
+new itk:BinaryThresholdImageFilter threshold
+  set threshold.InsideValue "255"
+  set threshold.LowerThreshold "2000"
+  set threshold.OutsideValue "0"
+  set threshold.UpperThreshold "5000"
+
+new wxvtk:Viewer2D viewer2DImageSegmented
+
+new vtk:ImageGaussianSmooth smooth
+  set smooth.StdDevX "1"
+  set smooth.StdDevY "1"
+  set smooth.StdDevZ "1"
+
+new wxvtk:Viewer2D viewer2DImageSmooth
+
+new wx:LayoutLine upLayout
+  set upLayout.Orientation "H"
+
+new wxvtk:Viewer3D viewernvImagethreshold3D
+
+new vtk:IsoSurfaceExtractor isoextractorthreshold
+  set isoextractorthreshold.Isovalue "128"
+  set isoextractorthreshold.Opacity "1"
+
+new wxvtk:Viewer3D viewernvImageSmooth3D
+
+new vtk:IsoSurfaceExtractor isoextractorsmooth
+  set isoextractorsmooth.Isovalue "128"
+  set isoextractorsmooth.Opacity "1"
+
+new wx:LayoutLine downLayout
+  set downLayout.Orientation "H"
+
+new wx:LayoutSplit splitUp
+
+new wx:LayoutSplit mainSplit
+
+
+connect prependDatapath.Out reader.In
+
+connect reader.Out viewer2DImageOriginal.In
 
-new MetaImageReader reader 
-include  std/boxes/bbPrependPackageDataPath.bbs 
-new PrependPackageDataPath prependDatapath 
-  set prependDatapath.In "vtk/hola.mhd" 
-  connect prependDatapath.Out reader.In 
+connect slider.Out viewer2DImageOriginal.Slice
 
-#---------------------------------------------------------------------
+connect slider.BoxChange viewer2DImageOriginal.BoxExecute
 
-new Slider slider
+connect reader.Out threshold.In
 
-#---------------------------------------------------------------------
+connect threshold.Out viewer2DImageSegmented.In
 
-new Viewer2D viewer2DImageOriginal
-  connect reader.Out                   viewer2DImageOriginal.In
-  connect slider.Out                   viewer2DImageOriginal.Slice
-  connect slider.BoxChange     viewer2DImageOriginal.BoxExecute
-    
-#---------------------------------------------------------------------
+connect slider.Out viewer2DImageSegmented.Slice
 
-new BinaryThresholdImageFilter threshold
-  set threshold.LowerThreshold 2000
-  set threshold.UpperThreshold 5000
-  set threshold.InsideValue 255
-  set threshold.OutsideValue 0
-  connect reader.Out threshold.In
+connect slider.BoxChange viewer2DImageSegmented.BoxExecute
 
-new Viewer2D viewer2DImageSegmented
-  connect threshold.Out                viewer2DImageSegmented.In
-  connect slider.Out                   viewer2DImageSegmented.Slice
-  connect slider.BoxChange     viewer2DImageSegmented.BoxExecute
+connect threshold.Out smooth.In
 
-#---------------------------------------------------------------------
+connect smooth.Out viewer2DImageSmooth.In
 
-new ImageGaussianSmooth smooth
-  connect threshold.Out smooth.In
-  set smooth.StdDevX  1
-  set smooth.StdDevY  1
-  set smooth.StdDevZ  1
+connect slider.Out viewer2DImageSmooth.Slice
 
-new Viewer2D viewer2DImageSmooth
-  connect smooth.Out           viewer2DImageSmooth.In
-  connect slider.Out                   viewer2DImageSmooth.Slice
-  connect slider.BoxChange     viewer2DImageSmooth.BoxExecute
+connect slider.BoxChange viewer2DImageSmooth.BoxExecute
 
-#---------------------------------------------------------------------
+connect viewer2DImageOriginal.Widget upLayout.Widget1
 
-new LayoutLine upLayout
-  set upLayout.Orientation H
-  connect viewer2DImageOriginal.Widget                 upLayout.Widget1
-  connect viewer2DImageSegmented.Widget                upLayout.Widget2
-  connect viewer2DImageSmooth.Widget           upLayout.Widget3
+connect viewer2DImageSegmented.Widget upLayout.Widget2
 
+connect viewer2DImageSmooth.Widget upLayout.Widget3
 
-#---------------------------------------------------------------------
+connect threshold.Out isoextractorthreshold.In
 
-new Viewer3D  viewernvImagethreshold3D
-#  set viewernvImagethreshold3D.nTypeView "5" 
+connect viewernvImagethreshold3D.Renderer isoextractorthreshold.Renderer
 
-new IsoSurfaceExtractor  isoextractorthreshold
-  connect threshold.Out isoextractorthreshold.In
-  set isoextractorthreshold.Opacity 1
-  set isoextractorthreshold.Isovalue 128
-  connect viewernvImagethreshold3D.Renderer            isoextractorthreshold.Renderer
+connect smooth.Out isoextractorsmooth.In
 
+connect viewernvImageSmooth3D.Renderer isoextractorsmooth.Renderer
 
-#---------------------------------------------------------------------
-new Viewer3D  viewernvImageSmooth3D
-#  set viewernvImageSmooth3D.nTypeView "5" 
+connect viewernvImagethreshold3D.Widget downLayout.Widget1
 
-new IsoSurfaceExtractor  isoextractorsmooth
-  connect smooth.Out isoextractorsmooth.In
-  set isoextractorsmooth.Opacity 1
-  set isoextractorsmooth.Isovalue 128
-  connect viewernvImageSmooth3D.Renderer               isoextractorsmooth.Renderer
+connect viewernvImageSmooth3D.Widget downLayout.Widget2
 
+connect slider.Widget splitUp.Widget1
 
-#---------------------------------------------------------------------
+connect upLayout.Widget splitUp.Widget2
 
-new LayoutLine downLayout
- set downLayout.Orientation H
-  connect viewernvImagethreshold3D.Widget              downLayout.Widget1
-  connect viewernvImageSmooth3D.Widget         downLayout.Widget2
+connect splitUp.Widget mainSplit.Widget1
 
-#---------------------------------------------------------------------
-new LayoutSplit splitUp
-  connect slider.Widget                splitUp.Widget1
-  connect upLayout.Widget              splitUp.Widget2
+connect downLayout.Widget mainSplit.Widget2
 
-new LayoutSplit mainSplit
-  connect splitUp.Widget               mainSplit.Widget1
-  connect downLayout.Widget    mainSplit.Widget2
 
-#---------------------------------------------------------------------
 
-exec isoextractorthreshold
-exec isoextractorsmooth
+# Complex input ports
 exec mainSplit