]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
Feature #1769 Add licence terms for all files.
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / ThresholdWidget.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/ThresholdWidget.bbs
29 # ----------------------------------
30
31 include std
32 include itkvtk
33 include wx
34 include itk
35 include creaMaracasVisu
36 include creaMiniToolsBase
37 include toolsbbtk
38 include wxvtk
39 include vtk
40 include std
41
42 define ThresholdWidget creaMiniTools
43
44 author "info-team at creatis.insa-lyon.fr"
45 description "Threshod binary widget"
46
47 category "filter widget"
48
49 new CommandButton Box00
50   set Box00.Label Run
51
52 new LayoutLine Box01
53   set Box01.WinTitle "Parameters"
54
55 new BinaryThresholdImageFilter Box02
56   set Box02.InsideValue 255
57   set Box02.LowerThreshold 1500
58   set Box02.OutsideValue 0
59   set Box02.UpperThreshold 10000
60
61 new ViewerNV Box03
62   set Box03.nTypeView "0"
63
64 new LayoutSplit Box05
65   set Box05.WinTitle Threshold
66
67 new SliderMinMax Box07
68   set Box07.InMax 5000
69   set Box07.InMaxShow 2000
70   set Box07.InMin 0
71   set Box07.InMinShow 1000
72
73 new LayoutTab Box09
74
75 new SaveMHD-Button Box10
76
77 new OutputText Box11
78   set Box11.In "Min. Max. Gray level" 
79
80 new IsoSurfaceWidget Box12
81   set Box12.Title "Iso Surface"
82
83 new vtkImageDataPointerRelay Box13
84
85 new ImageVtkProperties Box14
86
87 new GetVectorFloatElement Box15
88   set Box15.I 0
89
90 new GetVectorFloatElement Box16
91   set Box16.I 1
92
93
94 connect Box00.Widget Box01.Widget5
95 connect Box00.BoxChange Box03.BoxExecute
96 connect Box02.Out Box03.In
97 connect Box03.Widget Box05.Widget2
98 connect Box01.Widget Box09.Widget1
99 connect Box09.Widget Box05.Widget1
100 connect Box02.Out Box10.In
101 connect Box11.Widget Box01.Widget1
102 connect Box07.Widget Box01.Widget2
103 connect Box02.Out Box12.In
104 connect Box00.BoxChange Box12.BoxExecute
105 connect Box12.Widget Box09.Widget2
106 connect Box10.Widget Box09.Widget3
107 connect Box13.Out Box02.In
108 connect Box13.Out Box14.In
109 connect Box14.MinMax Box15.In
110 connect Box14.MinMax Box16.In
111 connect Box16.Out Box07.InMax
112 connect Box15.Out Box07.InMin
113 connect Box07.OutEnd Box02.UpperThreshold
114 connect Box07.OutStart Box02.LowerThreshold
115 connect Box00.BoxChange Box07.BoxExecute
116
117
118 # Complex input ports
119 input vtkRenderer Box12.vtkRenderer " "
120 input In Box13.In " "
121
122 # Complex output ports
123 output Widget Box05.Widget " "
124 output BoxChange Box12.BoxChange " "
125 output OutImage Box02.Out " "
126
127 endefine