]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/ErodeWidget.bbs
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / ErodeWidget.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 (Complex Box)
28 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ErodeWidget.bbs
29 # ----------------------------------
30
31 include std
32 include itkvtk
33 include wx
34 include creaMaracasVisu
35 include toolsbbtk
36 include wxvtk
37 include vtk
38
39 define ErodeWidget creaMiniTools
40
41 author "info-team at creatis.insa-lyon.fr"
42 description "Threshod binary widget"
43
44 category "filter widget"
45
46 new CommandButton Box00
47   set Box00.Label Run
48
49 new LayoutLine Box01
50   set Box01.WinTitle "Parameters"
51
52 new ViewerNV Box03
53   set Box03.nTypeView "0"
54
55 new LayoutSplit Box05
56   set Box05.WinTitle "Erode"
57
58 new InputText Box08
59   set Box08.In "3"
60   set Box08.Title "kernelY"
61
62 new InputText Box09
63   set Box09.In "3"
64   set Box09.Title "kernelX"
65
66 new SaveMHD-Button Box10
67
68 new LayoutTab Box11
69
70 new IsoSurfaceWidget Box14
71   set Box14.Title "Iso Surface"
72   set Box14.maxIsovalue 255
73
74 new InputText Box15
75   set Box15.In "3"
76   set Box15.Title "kernelZ"
77
78 new ImageContinuousErode3D Box16
79
80
81 connect Box00.Widget Box01.Widget5
82 connect Box00.BoxChange Box03.BoxExecute
83 connect Box03.Widget Box05.Widget2
84 connect Box01.Widget Box11.Widget1
85 connect Box11.Widget Box05.Widget1
86 connect Box10.Widget Box11.Widget3
87 connect Box14.Widget Box11.Widget2
88 connect Box08.Widget Box01.Widget2
89 connect Box09.Widget Box01.Widget1
90 connect Box15.Widget Box01.Widget3
91 connect Box00.BoxChange Box14.BoxExecute
92 connect Box16.Out Box03.In
93 connect Box16.Out Box14.In
94 connect Box16.Out Box10.In
95 connect Box09.Out Box16.KernelSizeX
96 connect Box08.Out Box16.KernelSizeY
97 connect Box15.Out Box16.KernelSizeZ
98
99
100 # Complex input ports
101 input vtkRenderer Box14.vtkRenderer " "
102 input In Box16.In " "
103
104 # Complex output ports
105 output Widget Box05.Widget " "
106 output BoxChange Box14.BoxChange " "
107 output OutImage Box16.Out " "
108
109 endefine