1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
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
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.
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
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 # ------------------------------------------------------------------------ */
26 # ----------------------------------
27 # - BBTKGEditor v 1.3 BBS BlackBox Script (Complex Box)
28 # - /Users/davila/Creatis/All5/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs
29 # ----------------------------------
35 include creaMiniToolsBase
37 define ImageToolsMenu creaMiniTools
40 description "Description ??"
44 new CommandButton Box00
45 set Box00.Label "Image Writer"
47 new CommandButton Box02
48 set Box02.Label "Viewer NV"
50 new ExecSystemCommand Box04
51 set Box04.In "bbi creaMiniTools/appli/imageWriterExample.bbs &"
53 new ExecSystemCommand Box06
54 set Box06.In "bbi creaMiniTools/appli/viewerNVExample.bbs &"
56 new ExecSystemCommand Box09
57 set Box09.In "bbi creaMiniTools/appli/synchro2ImageExample.bbs &"
59 new CommandButton Box10
60 set Box10.Label "Synchronize 2 Images"
62 new CommandButton Box11
63 set Box11.Label "Manual paint"
65 new ExecSystemCommand Box12
66 set Box12.In "bbi creaMiniTools/appli/manualPaint.bbs &"
68 new CommandButton Box13
69 set Box13.Label "Extract Planes"
71 new ExecSystemCommand Box14
72 set Box14.In "bbi creaMiniTools/appli/SaveImagePlanes.bbs &"
75 set Box15.WinTitle "Images Tools"
81 new RegistrationMenu Box20
83 new RescaleSlopeInterceptMenu Box21
85 new CommandButton Box22
86 set Box22.Label "Resampling Image"
88 new ExecSystemCommand Box23
89 set Box23.In "bbi creaMiniTools/appli/resampling.bbs &"
91 new CommandButton Box25
92 set Box25.Label "Crop image"
94 new ExecSystemCommand Box26
95 set Box26.In "bbi creaMiniTools/appli/crop.bbs &"
97 new LayoutCenter Box27
98 set Box27.WinTitle "Viewers"
100 new LayoutCenter Box28
101 set Box28.WinTitle "Modify image"
103 new CommandButton Box29
104 set Box29.Label "Flip Image Y"
106 new ExecSystemCommand Box30
107 set Box30.In "bbi creaMiniTools/appli/flipImageY.bbs &"
110 connect Box00.BoxChange Box04.BoxExecute
111 connect Box02.BoxChange Box06.BoxExecute
112 connect Box10.BoxChange Box09.BoxExecute
113 connect Box11.BoxChange Box12.BoxExecute
114 connect Box13.BoxChange Box14.BoxExecute
115 connect Box02.Widget Box18.Widget1
116 connect Box10.Widget Box18.Widget2
117 connect Box11.Widget Box19.Widget2
118 connect Box00.Widget Box19.Widget1
119 connect Box20.widget Box15.Widget3
120 connect Box21.widget Box15.Widget4
121 connect Box22.Widget Box19.Widget3
122 connect Box22.BoxChange Box23.BoxExecute
123 connect Box25.Widget Box19.Widget4
124 connect Box25.BoxChange Box26.BoxExecute
125 connect Box18.Widget Box27.Widget2
126 connect Box27.Widget Box15.Widget1
127 connect Box19.Widget Box28.Widget2
128 connect Box28.Widget Box15.Widget2
129 connect Box13.Widget Box19.Widget5
130 connect Box29.Widget Box19.Widget6
131 connect Box29.BoxChange Box30.BoxExecute
135 # Complex input ports
137 # Complex output ports
138 output widget Box15.Widget " "