]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs
no message
[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 creaMiniToolsBase
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
40 new LayoutLine Box15
41   set Box15.Orientation H
42   set Box15.WinTitle "Parameters"
43
44 new MagicBox Box17
45
46 new SliderMinMax Box18
47   set Box18.InMax 2000
48   set Box18.ShowActual false
49
50 new ConcatStrings Box19
51   set Box19.In2 " "
52
53 new ShowNPoints Box21
54   set Box21.Opacity 100
55   set Box21.Radio 5
56
57 new MagicBox Box23
58
59 new vtkImageDataPointerRelay Box24
60
61 new GetVectorIntElement Box25
62   set Box25.I 0
63
64 new GetVectorIntElement Box26
65   set Box26.I 0
66
67 new GetVectorIntElement Box27
68   set Box27.I 0
69
70 new ConcatStrings Box28
71   set Box28.In2 " "
72   set Box28.In4 " "
73
74 new OutputText Box29
75
76 new LayoutLine Box30
77
78 new ConcatStrings Box31
79   set Box31.In1 "3D Point:  "
80
81
82 connect Box00.BoxChange Box03.BoxExecute
83 connect Box03.Widget Box05.Widget2
84 connect Box07.Out Box03.In
85 connect Box07.Out Box10.In
86 connect Box11.Widget Box05.Widget1
87 connect Box07.Out Box14.In
88 connect Box10.Widget Box11.Widget3
89 connect Box14.Widget Box11.Widget2
90 connect Box00.BoxChange Box14.BoxExecute
91 connect Box18.OutEnd Box19.In3
92 connect Box18.OutStart Box19.In1
93 connect Box19.Out Box07.ThresholdMinMax
94 connect Box21.Widget Box15.Widget1
95 connect Box17.Out Box21.In
96 connect Box23.Out Box14.vtkRenderer
97 connect Box23.Out Box21.Renderer
98 connect Box24.Out Box07.In
99 connect Box24.Out Box21.Image
100 connect Box21.lstPointsX Box25.In
101 connect Box21.lstPointsY Box26.In
102 connect Box21.lstPointsZ Box27.In
103 connect Box25.Out Box28.In1
104 connect Box26.Out Box28.In3
105 connect Box27.Out Box28.In5
106 connect Box28.Out Box07.PositionXYZ
107 connect Box21.BoxChange Box29.BoxExecute
108 connect Box30.Widget Box15.Widget2
109 connect Box29.Widget Box30.Widget2
110 connect Box00.Widget Box30.Widget3
111 connect Box18.Widget Box30.Widget1
112 connect Box15.Widget Box11.Widget1
113 connect Box28.Out Box31.In2
114 connect Box31.Out Box29.In
115 connect Box00.BoxChange Box18.BoxExecute
116
117
118 # Complex input ports
119 input point Box17.In " "
120 input vtkRenderer Box23.In " "
121 input In Box24.In " "
122
123 # Complex output ports
124 output Widget Box05.Widget " "
125 output BoxChange Box14.BoxChange " "
126 output OutImage Box07.Out " "
127
128 endefine