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.2 BBS BlackBox Script (Complex Box)
28 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs
29 # ----------------------------------
34 include creaMaracasVisu
40 define ConnectivityWidget creaMiniTools
42 author "info-team at creatis.insa-lyon.fr"
43 description "Threshod binary widget"
45 category "filter widget"
47 new CommandButton Box00
51 set Box03.nTypeView "0"
54 set Box05.WinTitle Connectivity
56 new SegmentationConnectivity Box07
58 new SaveMHD-Button Box10
62 new IsoSurfaceWidget Box14
63 set Box14.Title "Iso Surface"
64 set Box14.maxIsovalue 255
67 set Box15.Orientation H
68 set Box15.WinTitle "Parameters"
72 new SliderMinMax Box18
74 set Box18.ShowActual false
76 new ConcatStrings Box19
86 new vtkImageDataPointerRelay Box24
88 new GetVectorIntElement Box25
91 new GetVectorIntElement Box26
94 new GetVectorIntElement Box27
97 new ConcatStrings Box28
102 set Box29.Title "3D Point"
106 new ImageVtkProperties Box32
108 new GetVectorFloatElement Box35
111 new GetVectorFloatElement Box36
115 set Box37.In "Min. Max gray level"
118 connect Box00.BoxChange Box03.BoxExecute
119 connect Box03.Widget Box05.Widget2
120 connect Box07.Out Box03.In
121 connect Box07.Out Box10.In
122 connect Box11.Widget Box05.Widget1
123 connect Box07.Out Box14.In
124 connect Box10.Widget Box11.Widget3
125 connect Box14.Widget Box11.Widget2
126 connect Box00.BoxChange Box14.BoxExecute
127 connect Box18.OutEnd Box19.In3
128 connect Box18.OutStart Box19.In1
129 connect Box19.Out Box07.ThresholdMinMax
130 connect Box21.Widget Box15.Widget1
131 connect Box17.Out Box21.In
132 connect Box23.Out Box14.vtkRenderer
133 connect Box23.Out Box21.Renderer
134 connect Box24.Out Box07.In
135 connect Box24.Out Box21.Image
136 connect Box21.lstPointsX Box25.In
137 connect Box21.lstPointsY Box26.In
138 connect Box21.lstPointsZ Box27.In
139 connect Box25.Out Box28.In1
140 connect Box26.Out Box28.In3
141 connect Box27.Out Box28.In5
142 connect Box28.Out Box07.PositionXYZ
143 connect Box21.BoxChange Box29.BoxExecute
144 connect Box30.Widget Box15.Widget2
145 connect Box15.Widget Box11.Widget1
146 connect Box28.Out Box29.In
147 connect Box24.Out Box32.In
148 connect Box32.MinMax Box35.In
149 connect Box32.MinMax Box36.In
150 connect Box36.Out Box18.InMax
151 connect Box35.Out Box18.InMin
152 connect Box00.Widget Box30.Widget4
153 connect Box18.Widget Box30.Widget2
154 connect Box29.Widget Box30.Widget1
155 connect Box37.Widget Box30.Widget3
156 connect Box00.BoxChange Box18.BoxExecute
159 # Complex input ports
160 input point Box17.In " "
161 input vtkRenderer Box23.In " "
162 input In Box24.In " "
163 input end Box18.InMaxShow " "
164 input start Box18.InMinShow " "
166 # Complex output ports
167 output Widget Box05.Widget " "
168 output BoxChange Box14.BoxChange " "
169 output OutImage Box07.Out " "