]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs
move creaMiniToolsBase:SaveMHD-Button to toolsbbtk:SaveMHD-Button
[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
15 define ThresholdWidget creaMiniTools
16
17 author "info-team at creatis.insa-lyon.fr"
18 description "Threshod binary widget"
19
20 category "filter widget"
21
22 new CommandButton Box00
23   set Box00.Label Run
24
25 new LayoutLine Box01
26   set Box01.WinTitle "Parameters"
27
28 new BinaryThresholdImageFilter Box02
29   set Box02.InsideValue 255
30   set Box02.LowerThreshold 1500
31   set Box02.OutsideValue 0
32   set Box02.UpperThreshold 10000
33
34 new ViewerNV Box03
35   set Box03.nTypeView "0"
36
37 new LayoutSplit Box05
38   set Box05.WinTitle Threshold
39
40 new SliderMinMax Box07
41   set Box07.InMax 5000
42   set Box07.InMaxShow 2000
43   set Box07.InMin 0
44   set Box07.InMinShow 1000
45
46 new Slider Box08
47   set Box08.Label true
48   set Box08.Max 5000
49   set Box08.Title "Iso Min"
50
51 new LayoutTab Box09
52
53 new SaveMHD-Button Box10
54
55 new OutputText Box11
56   set Box11.In "Min. Max. Gray level" 
57
58 new IsoSurfaceWidget Box12
59   set Box12.Title "Iso Surface"
60
61
62 connect Box00.Widget Box01.Widget5
63 connect Box00.BoxChange Box03.BoxExecute
64 connect Box02.Out Box03.In
65 connect Box03.Widget Box05.Widget2
66 connect Box08.Out Box02.LowerThreshold
67 connect Box01.Widget Box09.Widget1
68 connect Box09.Widget Box05.Widget1
69 connect Box02.Out Box10.In
70 connect Box11.Widget Box01.Widget1
71 connect Box07.Widget Box01.Widget2
72 connect Box08.Widget Box01.Widget4
73 connect Box02.Out Box12.In
74 connect Box00.BoxChange Box12.BoxExecute
75 connect Box12.Widget Box09.Widget2
76 connect Box10.Widget Box09.Widget3
77
78
79 # Complex input ports
80 input vtkRenderer Box12.vtkRenderer " "
81 input In Box02.In " "
82
83 # Complex output ports
84 output Widget Box05.Widget " "
85 output BoxChange Box12.BoxChange " "
86 output OutImage Box02.Out " "
87
88 endefine