]> Creatis software - bbtk.git/blobdiff - packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicerMHD.bbs
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / wxvtk / bbs / appli / exampleSynchro2ImagesSlicerMHD.bbs
index 2b1c5970ca0bd34b6648598c2ecdc24c61761467..412175a46ad87f8329c492257a564677d8f81c34 100644 (file)
@@ -1,87 +1,91 @@
- # ---------------------------------------------------------------------
- #
- # 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.
- # ------------------------------------------------------------------------ */
-
-
-# my_MHD_slicer.bbs
-description "elementary 3D image synchronization tool"
-author "maciej.orkisz at creatis.Insa-lyon.fr"
-#category "example"
-category  "application image viewer"
-#category "image"
-#category "viewer"
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleSynchro2ImagesSlicerMHD.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
 
 include std
-include vtk
+include itkvtk
 include wx
-include itk
+include vtk
 include wxvtk
-include itkvtk
+include itk
+include std
+
+author "maciej.orkisz at creatis.Insa-lyon.fr"
+description "elementary 3D image synchronization tool"
+category "application image viewer"
+
+new wx:FileSelector fileDialog1
+  set fileDialog1.DefaultDir "."
+  set fileDialog1.Message "Select the first (left) MHD image file"
+
+new vtk:MetaImageReader reader1
+
+new wx:FileSelector fileDialog2
+  set fileDialog2.DefaultDir "."
+  set fileDialog2.Message "Select the second (right) MHD image file"
+
+new vtk:MetaImageReader reader2
+
+new wxvtk:Viewer2D viewer1
+
+new wxvtk:Viewer2D viewer2
+
+new wx:Slider slider
+  set slider.ReactiveOnTrack "1"
+  set slider.Title "Slice number"
+
+new wx:LayoutSplit layout
+  set layout.Proportion "10"
+
+new wx:LayoutLine layout_line
+  set layout_line.Orientation "H"
+
+new itk:ImageProperties imProperties
+
+new std:GetVectorIntElement imSize
+  set imSize.I "2"
+
+new std:Add add
+  set add.In1 "-1"
+
+
+connect fileDialog1.Out reader1.In
+
+connect reader1.Out viewer1.In
+
+connect slider.Out viewer1.Slice
 
-new FileSelector fileDialog1
-new MetaImageReader reader1
-new FileSelector fileDialog2
-new MetaImageReader reader2
-new Viewer2D     viewer1
-new Viewer2D     viewer2
-new Slider       slider
-new LayoutSplit layout 
-new LayoutLine layout_line
-new ImageProperties imProperties
-new GetVectorIntElement imSize
-new Add add
-
-connect fileDialog1.Out   reader1.In 
-connect reader1.Out       viewer1.In
-connect slider.Out       viewer1.Slice
 connect slider.BoxChange viewer1.BoxExecute
 
-connect fileDialog2.Out   reader2.In 
-connect reader2.Out       viewer2.In
-connect slider.Out       viewer2.Slice
+connect fileDialog2.Out reader2.In
+
+connect reader2.Out viewer2.In
+
+connect slider.Out viewer2.Slice
+
 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 fileDialog1.Message "Select the first (left) MHD image file"
-set fileDialog2.Message "Select the second (right) MHD image file"
-set slider.Title "Slice number"
-set slider.ReactiveOnTrack 1
-set layout.Proportion 10
-set layout_line.Orientation H
 
-set fileDialog1.DefaultDir "."
-set fileDialog2.DefaultDir "."
-set imSize.I 2
-set add.In1 -1
 
+# Complex input ports
 exec layout