]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs
5818f9e64c49c62da37f3d261638ac1522e7d1d6
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / ConnectivityWidget.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/ConnectivityWidget.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include creaMaracasVisu
10 include vtk
11 include toolsbbtk
12 include wxvtk
13 include std
14
15 define ConnectivityWidget 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 ViewerNV Box03
26   set Box03.nTypeView "0"
27
28 new LayoutSplit Box05
29   set Box05.WinTitle Connectivity
30
31 new SegmentationConnectivity Box07
32
33 new SaveMHD-Button Box10
34
35 new LayoutTab Box11
36
37 new IsoSurfaceWidget Box14
38   set Box14.Title "Iso Surface"
39   set Box14.maxIsovalue 255
40
41 new LayoutLine Box15
42   set Box15.Orientation H
43   set Box15.WinTitle "Parameters"
44
45 new MagicBox Box17
46
47 new SliderMinMax Box18
48   set Box18.InMax 2000
49   set Box18.ShowActual false
50
51 new ConcatStrings Box19
52   set Box19.In2 " "
53
54 new ShowNPoints Box21
55   set Box21.Opacity 100
56   set Box21.Radio 5
57   set Box21.Type 1
58
59 new MagicBox Box23
60
61 new vtkImageDataPointerRelay Box24
62
63 new GetVectorIntElement Box25
64   set Box25.I 0
65
66 new GetVectorIntElement Box26
67   set Box26.I 0
68
69 new GetVectorIntElement Box27
70   set Box27.I 0
71
72 new ConcatStrings Box28
73   set Box28.In2 " "
74   set Box28.In4 " "
75
76 new OutputText Box29
77   set Box29.Title "3D Point"
78
79 new LayoutLine Box30
80
81 new ImageVtkProperties Box32
82
83 new GetVectorFloatElement Box35
84   set Box35.I 0
85
86 new GetVectorFloatElement Box36
87   set Box36.I 1
88
89 new OutputText Box37
90   set Box37.In "Min. Max gray level"
91
92
93 connect Box00.BoxChange Box03.BoxExecute
94 connect Box03.Widget Box05.Widget2
95 connect Box07.Out Box03.In
96 connect Box07.Out Box10.In
97 connect Box11.Widget Box05.Widget1
98 connect Box07.Out Box14.In
99 connect Box10.Widget Box11.Widget3
100 connect Box14.Widget Box11.Widget2
101 connect Box00.BoxChange Box14.BoxExecute
102 connect Box18.OutEnd Box19.In3
103 connect Box18.OutStart Box19.In1
104 connect Box19.Out Box07.ThresholdMinMax
105 connect Box21.Widget Box15.Widget1
106 connect Box17.Out Box21.In
107 connect Box23.Out Box14.vtkRenderer
108 connect Box23.Out Box21.Renderer
109 connect Box24.Out Box07.In
110 connect Box24.Out Box21.Image
111 connect Box21.lstPointsX Box25.In
112 connect Box21.lstPointsY Box26.In
113 connect Box21.lstPointsZ Box27.In
114 connect Box25.Out Box28.In1
115 connect Box26.Out Box28.In3
116 connect Box27.Out Box28.In5
117 connect Box28.Out Box07.PositionXYZ
118 connect Box21.BoxChange Box29.BoxExecute
119 connect Box30.Widget Box15.Widget2
120 connect Box15.Widget Box11.Widget1
121 connect Box28.Out Box29.In
122 connect Box24.Out Box32.In
123 connect Box32.MinMax Box35.In
124 connect Box32.MinMax Box36.In
125 connect Box36.Out Box18.InMax
126 connect Box35.Out Box18.InMin
127 connect Box00.Widget Box30.Widget4
128 connect Box18.Widget Box30.Widget2
129 connect Box29.Widget Box30.Widget1
130 connect Box37.Widget Box30.Widget3
131 connect Box00.BoxChange Box18.BoxExecute
132
133
134 # Complex input ports
135 input point Box17.In " "
136 input vtkRenderer Box23.In " "
137 input In Box24.In " "
138 input end Box18.InMaxShow " "
139 input start Box18.InMinShow " "
140
141 # Complex output ports
142 output Widget Box05.Widget " "
143 output BoxChange Box14.BoxChange " "
144 output OutImage Box07.Out " "
145
146 endefine