]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs
move creaMiniToolsBase:SaveMHD-Button to toolsbbtk:SaveMHD-Button
[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 toolsbbtk
13 include wxvtk
14 include std
15
16 define ConnectivityWidget 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 ViewerNV Box03
27   set Box03.nTypeView "0"
28
29 new LayoutSplit Box05
30   set Box05.WinTitle Connectivity
31
32 new SegmentationConnectivity Box07
33
34 new SaveMHD-Button Box10
35
36 new LayoutTab Box11
37
38 new IsoSurfaceWidget Box14
39   set Box14.Title "Iso Surface"
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
58 new MagicBox Box23
59
60 new vtkImageDataPointerRelay Box24
61
62 new GetVectorIntElement Box25
63   set Box25.I 0
64
65 new GetVectorIntElement Box26
66   set Box26.I 0
67
68 new GetVectorIntElement Box27
69   set Box27.I 0
70
71 new ConcatStrings Box28
72   set Box28.In2 " "
73   set Box28.In4 " "
74
75 new OutputText Box29
76
77 new LayoutLine Box30
78
79 new ConcatStrings Box31
80   set Box31.In1 "3D Point:  "
81
82
83 connect Box00.BoxChange Box03.BoxExecute
84 connect Box03.Widget Box05.Widget2
85 connect Box07.Out Box03.In
86 connect Box07.Out Box10.In
87 connect Box11.Widget Box05.Widget1
88 connect Box07.Out Box14.In
89 connect Box10.Widget Box11.Widget3
90 connect Box14.Widget Box11.Widget2
91 connect Box00.BoxChange Box14.BoxExecute
92 connect Box18.OutEnd Box19.In3
93 connect Box18.OutStart Box19.In1
94 connect Box19.Out Box07.ThresholdMinMax
95 connect Box21.Widget Box15.Widget1
96 connect Box17.Out Box21.In
97 connect Box23.Out Box14.vtkRenderer
98 connect Box23.Out Box21.Renderer
99 connect Box24.Out Box07.In
100 connect Box24.Out Box21.Image
101 connect Box21.lstPointsX Box25.In
102 connect Box21.lstPointsY Box26.In
103 connect Box21.lstPointsZ Box27.In
104 connect Box25.Out Box28.In1
105 connect Box26.Out Box28.In3
106 connect Box27.Out Box28.In5
107 connect Box28.Out Box07.PositionXYZ
108 connect Box21.BoxChange Box29.BoxExecute
109 connect Box30.Widget Box15.Widget2
110 connect Box29.Widget Box30.Widget2
111 connect Box00.Widget Box30.Widget3
112 connect Box18.Widget Box30.Widget1
113 connect Box15.Widget Box11.Widget1
114 connect Box28.Out Box31.In2
115 connect Box31.Out Box29.In
116 connect Box00.BoxChange Box18.BoxExecute
117
118
119 # Complex input ports
120 input point Box17.In " "
121 input vtkRenderer Box23.In " "
122 input In Box24.In " "
123
124 # Complex output ports
125 output Widget Box05.Widget " "
126 output BoxChange Box14.BoxChange " "
127 output OutImage Box07.Out " "
128
129 endefine