]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/DilateWidget.bbs
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / DilateWidget.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/DilateWidget.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 DilateWidget 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 "Dilate"
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 ImageContinuousDilate3D Box13
75   set Box13.KernelSizeX 3
76   set Box13.KernelSizeY 3
77   set Box13.KernelSizeZ 3
78
79 new InputText Box15
80   set Box15.In "3"
81   set Box15.Title "kernelZ"
82
83
84 connect Box00.Widget Box01.Widget5
85 connect Box00.BoxChange Box03.BoxExecute
86 connect Box03.Widget Box05.Widget2
87 connect Box01.Widget Box11.Widget1
88 connect Box11.Widget Box05.Widget1
89 connect Box10.Widget Box11.Widget3
90 connect Box14.Widget Box11.Widget2
91 connect Box13.Out Box10.In
92 connect Box13.Out Box14.In
93 connect Box13.Out Box03.In
94 connect Box09.Out Box13.KernelSizeX
95 connect Box08.Out Box13.KernelSizeY
96 connect Box08.Widget Box01.Widget2
97 connect Box09.Widget Box01.Widget1
98 connect Box15.Widget Box01.Widget3
99 connect Box15.Out Box13.KernelSizeZ
100 connect Box00.BoxChange Box14.BoxExecute
101 connect Box00.BoxChange Box09.BoxExecute
102 connect Box00.BoxChange Box08.BoxExecute
103 connect Box00.BoxChange Box15.BoxExecute
104 connect Box00.BoxChange Box13.BoxExecute
105
106
107 # Complex input ports
108 input vtkRenderer Box14.vtkRenderer " "
109 input In Box13.In " "
110
111 # Complex output ports
112 output Widget Box05.Widget " "
113 output BoxChange Box14.BoxChange " "
114 output OutImage Box13.Out " "
115
116 endefine