X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fwxvtk%2Fbbs%2Fappli%2FexampleSynchro2ImagesSlicer.bbs;fp=packages%2Fwxvtk%2Fbbs%2Fappli%2FexampleSynchro2ImagesSlicer.bbs;h=6962a3692275950b8c1f8669cff7fcbef6af9e7c;hb=36a131a7d47f451563f40b28047200b038905c92;hp=117da984a500d7ee2ba50b1b494695bbb3f1b42e;hpb=0270a43057e5a74a7c1c9c6081f026261a2d313f;p=bbtk.git diff --git a/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbs b/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbs index 117da98..6962a36 100644 --- a/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbs +++ b/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbs @@ -1,86 +1,86 @@ - # --------------------------------------------------------------------- - # - # 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/bbtk/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicer.bbs +# ---------------------------------- - - -description "elementary image synchronization tool" -author "info-dev at creatis.Insa-lyon.fr" -category "tool image viewer" +# BBTK GEditor Script +# ---------------------- include std +include itkvtk +include creaImageIO include vtk +include creaMaracasVisu include wx include itk -include wxvtk -include itkvtk +include std + +author "info-dev at creatis.Insa-lyon.fr" +description "elementary image synchronization tool" +category "tool image viewer" + +new creaImageIO:ImagesChooserDialogBox chooser1 + +new vtk:ConcatImages reader1 + +new creaImageIO:ImagesChooserDialogBox chooser2 + +new vtk:ConcatImages reader2 + +new creaMaracasVisu:ViewerNV viewer1 + set viewer1.nTypeView "0" -load creaImageIO -load creaMaracasVisu +new creaMaracasVisu:ViewerNV viewer2 + set viewer2.nTypeView "0" -new ImagesChooserDialogBox chooser1 -new ConcatImages reader1 - connect chooser1.Out reader1.In +new wx:Slider slider + set slider.ReactiveOnTrack "1" + set slider.Title "Slice number" -new ImagesChooserDialogBox chooser2 -new ConcatImages reader2 - connect chooser2.Out reader2.In +new wx:LayoutSplit layout + set layout.Proportion "10" -new ViewerNV viewer1 - set viewer1.nTypeView 0 -new ViewerNV viewer2 - set viewer2.nTypeView 0 +new wx:LayoutLine layout_line + set layout_line.Orientation "H" -# slider is useless, since ViewerNV has no entry 'Slice Number' :-( -new Slider slider -new LayoutSplit layout -new LayoutLine layout_line -new ImageProperties imProperties -new GetVectorIntElement imSize -new Add add +new itk:ImageProperties imProperties + +new std:GetVectorIntElement imSize + set imSize.I "2" + +new std:Add add + set add.In1 "-1" + + +connect reader1.Out viewer1.In -connect reader1.Out viewer1.In connect slider.BoxChange viewer1.BoxExecute -connect reader2.Out viewer2.In +connect reader2.Out viewer2.In + connect slider.BoxChange viewer2.BoxExecute connect slider.Widget layout.Widget1 + connect layout_line.Widget layout.Widget2 + connect viewer1.Widget layout_line.Widget1 + connect viewer2.Widget layout_line.Widget2 + connect reader1.Out imProperties.In + connect imProperties.Size imSize.In + connect imSize.Out add.In2 + connect add.Out slider.Max -set slider.Title "Slice number" -set slider.ReactiveOnTrack 1 -set layout.Proportion 10 -set layout_line.Orientation H +connect chooser2.OutImages reader2.In + +connect chooser1.OutImages reader1.In + -set imSize.I 2 -set add.In1 -1 +# Complex input ports exec layout