]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
2380 CreaMiniTools Feature New Normal new ViewContainer bbtk-application
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / ThresholdWidget.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include itk
10 include creaMaracasVisu
11 include toolsbbtk
12 include wxvtk
13 include vtk
14 include std
15
16 define ThresholdWidget creaMiniTools
17
18 author "info-team at creatis.insa-lyon.fr"
19 description "Threshod binary widget"
20
21 category "filter widget"
22
23 new CommandButton Box00
24   set Box00.Label Run
25
26 new LayoutLine Box01
27   set Box01.WinTitle "Parameters"
28
29 new BinaryThresholdImageFilter Box02
30   set Box02.InsideValue 255
31   set Box02.LowerThreshold 1500
32   set Box02.OutsideValue 0
33   set Box02.UpperThreshold 10000
34
35 new ViewerNV Box03
36   set Box03.nTypeView "0"
37
38 new LayoutSplit Box05
39   set Box05.WinTitle Threshold
40
41 new SliderMinMax Box07
42   set Box07.InMax 5000
43   set Box07.InMaxShow 2000
44   set Box07.InMin 0
45   set Box07.InMinShow 1000
46
47 new LayoutTab Box09
48
49 new SaveMHD-Button Box10
50
51 new OutputText Box11
52   set Box11.In "Min. Max. Gray level" "
53
54 new IsoSurfaceWidget Box12
55   set Box12.Title "Iso Surface"
56
57 new vtkImageDataPointerRelay Box13
58
59 new ImageVtkProperties Box14
60
61 new GetVectorFloatElement Box15
62   set Box15.I 0
63
64 new GetVectorFloatElement Box16
65   set Box16.I 1
66
67
68 connect Box00.Widget Box01.Widget5
69 connect Box00.BoxChange Box03.BoxExecute
70 connect Box02.Out Box03.In
71 connect Box03.Widget Box05.Widget2
72 connect Box01.Widget Box09.Widget1
73 connect Box09.Widget Box05.Widget1
74 connect Box02.Out Box10.In
75 connect Box11.Widget Box01.Widget1
76 connect Box07.Widget Box01.Widget2
77 connect Box00.BoxChange Box12.BoxExecute
78 connect Box12.Widget Box09.Widget2
79 connect Box10.Widget Box09.Widget3
80 connect Box13.Out Box02.In
81 connect Box13.Out Box14.In
82 connect Box14.MinMax Box15.In
83 connect Box14.MinMax Box16.In
84 connect Box16.Out Box07.InMax
85 connect Box15.Out Box07.InMin
86 connect Box07.OutEnd Box02.UpperThreshold
87 connect Box07.OutStart Box02.LowerThreshold
88 connect Box00.BoxChange Box07.BoxExecute
89 connect Box02.Out Box12.In
90
91 # Complex input ports
92 input vtkRenderer Box12.vtkRenderer " "
93 input In Box13.In " "
94
95 # Complex output ports
96 output BoxChange Box12.BoxChange " "
97 output OutImage Box02.Out " "
98 output Widget Box05.Widget " "
99
100
101 endefine