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