X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fwxvtk%2Fbbs%2Fappli%2FexampleDoubleSlicer.bbs;fp=packages%2Fwxvtk%2Fbbs%2Fappli%2FexampleDoubleSlicer.bbs;h=f794ae86fea63aae4414d27fb083fa5401fd526b;hb=0270a43057e5a74a7c1c9c6081f026261a2d313f;hp=f16bdd922bc7ee22511da21ff227a125d7d87540;hpb=08879a0d59761daa5f4540c551bf97c4919e2e0b;p=bbtk.git diff --git a/packages/wxvtk/bbs/appli/exampleDoubleSlicer.bbs b/packages/wxvtk/bbs/appli/exampleDoubleSlicer.bbs index f16bdd9..f794ae8 100644 --- a/packages/wxvtk/bbs/appli/exampleDoubleSlicer.bbs +++ b/packages/wxvtk/bbs/appli/exampleDoubleSlicer.bbs @@ -1,48 +1,66 @@ - # --------------------------------------------------------------------- - # - # 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. - # ------------------------------------------------------------------------ */ - - -description "Demo of the box DoubleSlicer." +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleDoubleSlicer.bbs +# ---------------------------------- + +include std +include itkvtk +include wx +include wxvtk +include std + +define DoubleSlicer wxvtk + author "laurent.guigues at creatis.insa-lyon.fr" -category "example" +description "Simple viewer displaying the same slice of two images. The slice is controlled by a slider. See exampleDoubleSlicer.bbs." + +category "" + +new wx:LayoutSplit main + set main.Proportion "80" + +new wx:LayoutLine slicers + set slicers.Orientation "HORIZONTAL" + +new wxvtk:Viewer2D slicer1 + +new wxvtk:Viewer2D slicer2 + +new wx:Slider slider + set slider.Title "Slice" + +new std:MultipleInputs refresh1 + +new std:MultipleInputs refresh2 -include vtk/boxes/bbLoadHola -include wxvtk/boxes/bbDoubleSlicer -new LoadHola reader1 -new LoadHola reader2 -new DoubleSlicer viewer +connect slicers.Widget main.Widget1 +connect slicer1.Widget slicers.Widget1 +connect slicer2.Widget slicers.Widget2 +connect slider.Widget main.Widget2 +connect slider.Out slicer1.Slice +connect slider.Out slicer2.Slice +connect refresh1.Out slicer1.BoxExecute +connect refresh2.Out slicer2.BoxExecute +connect slider.BoxChange refresh2.In1 +connect slider.BoxChange refresh1.In1 -connect reader1.Out viewer.In1 -connect reader2.Out viewer.In2 +# Complex input ports +input In1 slicer1.In " " +input In2 slicer2.In " " +input WinDialog main.WinDialog " " +input WinTitle main.WinTitle " " +input WinWidth main.WinWidth " " +input WinHeight main.WinHeight " " +input Orientation slicers.Orientation " " +input RefreshSlicer1 refresh1.In2 " " +input RefreshSlicer2 refresh2.In2 " " +input BoxProcessModeSlicer1 slicer1.BoxProcessMode " " +input BoxProcessModeSlicer2 slicer2.BoxProcessMode " " -load std -set viewer.WinTitle "ExampleDoubleSlicer" -set viewer.WinWidth 600 -set viewer.WinHeight 400 -set viewer.Orientation 0 +# Complex output ports +output Widget main.Widget " " -exec viewer +exec main +endefine