]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / ConnectivityWidget.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/ConnectivityWidget.bbs
29 # ----------------------------------
30
31 include std
32 include itkvtk
33 include wx
34 include creaMaracasVisu
35 include vtk
36 include toolsbbtk
37 include wxvtk
38 include std
39
40 define ConnectivityWidget creaMiniTools
41
42 author "info-team at creatis.insa-lyon.fr"
43 description "Threshod binary widget"
44
45 category "filter widget"
46
47 new CommandButton Box00
48   set Box00.Label Run
49
50 new ViewerNV Box03
51   set Box03.nTypeView "0"
52
53 new LayoutSplit Box05
54   set Box05.WinTitle Connectivity
55
56 new SegmentationConnectivity Box07
57
58 new SaveMHD-Button Box10
59
60 new LayoutTab Box11
61
62 new IsoSurfaceWidget Box14
63   set Box14.Title "Iso Surface"
64   set Box14.maxIsovalue 255
65
66 new LayoutLine Box15
67   set Box15.Orientation H
68   set Box15.WinTitle "Parameters"
69
70 new MagicBox Box17
71
72 new SliderMinMax Box18
73   set Box18.InMax 2000
74   set Box18.ShowActual false
75
76 new ConcatStrings Box19
77   set Box19.In2 " "
78
79 new ShowNPoints Box21
80   set Box21.Opacity 100
81   set Box21.Radio 5
82   set Box21.Type 1
83
84 new MagicBox Box23
85
86 new vtkImageDataPointerRelay Box24
87
88 new GetVectorIntElement Box25
89   set Box25.I 0
90
91 new GetVectorIntElement Box26
92   set Box26.I 0
93
94 new GetVectorIntElement Box27
95   set Box27.I 0
96
97 new ConcatStrings Box28
98   set Box28.In2 " "
99   set Box28.In4 " "
100
101 new OutputText Box29
102   set Box29.Title "3D Point"
103
104 new LayoutLine Box30
105
106 new ImageVtkProperties Box32
107
108 new GetVectorFloatElement Box35
109   set Box35.I 0
110
111 new GetVectorFloatElement Box36
112   set Box36.I 1
113
114 new OutputText Box37
115   set Box37.In "Min. Max gray level"
116
117
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
157
158
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 " "
165
166 # Complex output ports
167 output Widget Box05.Widget " "
168 output BoxChange Box14.BoxChange " "
169 output OutImage Box07.Out " "
170
171 endefine