]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/synchro2ImageExample.bbs
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / synchro2ImageExample.bbs
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 # ----------------------------------
27 # - BBTKGEditor v 1.2 BBS BlackBox Script
28 # - /Users/davila/Creatis/All2/creatools_install/share/bbtk/bbs/creaMiniTools/appli/synchro2ImageExample.bbs
29 # ----------------------------------
30
31 # BBTK GEditor Script
32 # ----------------------
33
34 include std
35 include itkvtk
36 include wxvtk
37 include wx
38 include itk
39 include std
40 include creaImageIO
41 include creaMaracasVisu
42
43 author "Author ??"
44 description "Description ??"
45 category "<VOID>"
46
47 new Viewer2D viewer1
48
49 new Viewer2D viewer2
50
51 new Slider slider
52   set slider.ReactiveOnTrack "1"
53   set slider.Title "Slice number"
54
55 new LayoutSplit layout
56   set layout.Proportion "10"
57
58 new LayoutLine layout_line
59   set layout_line.Orientation "H"
60
61 new ImageProperties imProperties
62
63 new GetVectorIntElement imSize
64   set imSize.I "2"
65
66 new Add add
67   set add.In1 "-1"
68
69 new ImagesChooserDialogBox Box12
70
71 new ImagesChooserDialogBox Box13
72
73 new LayoutTab Box10
74
75 new ViewerNV Box11
76   set Box11.nTypeView "5 0"
77
78 new ColorLayerImageView Box15
79
80 new LayoutSplit Box16
81   set Box16.Orientation H
82
83
84 connect slider.Out viewer1.Slice
85 connect slider.BoxChange viewer1.BoxExecute
86 connect slider.Out viewer2.Slice
87 connect slider.BoxChange viewer2.BoxExecute
88 connect slider.Widget layout.Widget1
89 connect layout_line.Widget layout.Widget2
90 connect viewer1.Widget layout_line.Widget1
91 connect viewer2.Widget layout_line.Widget2
92 connect imProperties.Size imSize.In
93 connect imSize.Out add.In2
94 connect add.Out slider.Max
95 connect Box12.Out imProperties.In
96 connect Box12.Out viewer1.In
97 connect Box13.Out viewer2.In
98 connect layout.Widget Box10.Widget1
99 connect Box16.Widget Box10.Widget2
100 connect Box15.Widget Box16.Widget1
101 connect Box11.Widget Box16.Widget2
102 connect Box13.Out Box11.In
103 connect Box11.wxVtkBaseView2 Box15.WxVtkBaseView
104 connect Box12.Out Box15.In
105
106 exec Box10