]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton02.bbs
#2691 creaWT Feature New Normal - Implementation temp files
[creaWT.git] / wt / bbtk_wt_PKG / bbs / appli / demoPresentacion1Boton02.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - demoPresentacion1Boton02.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include itk
13 include std
14 include wt
15
16 author "Author ??"
17 description "Description ??"
18 category "<VOID>"
19
20 new vtk:LoadHola Box00
21
22 new itk:BinaryThresholdImageFilter Box02
23   set Box02.InsideValue "255"
24   set Box02.LowerThreshold "1250"
25   set Box02.OutsideValue "0"
26   set Box02.UpperThreshold "1500"
27
28 new vtk:MarchingCubes Box05
29   set Box05.ComputeNormalsOn "true"
30   set Box05.ComputeScalarsOn "false"
31   set Box05.Value "128"
32
33 new vtk:ImageContinuousErode3D Box06
34   set Box06.KernelSizeX "3"
35   set Box06.KernelSizeY "3"
36   set Box06.KernelSizeZ "3"
37
38 new vtk:SegmentationConnectivity Box09
39   set Box09.PositionXYZ "73 101 93"
40   set Box09.ThresholdMinMax "200 300"
41
42 new std:ConcatStrings Box08
43
44 new std:ConcatStrings Box10
45   set Box10.In1 "holaPP"
46   set Box10.In3 "_"
47   set Box10.In5 "_"
48   set Box10.In7 ".vtk"
49
50 new wt:ViewerNVWeb Box12
51   set Box12.ImagePath "imagesTMP/hola.nii"
52
53 new vtk:PolyDataWriter Box14
54
55 new wt:Slider Box15
56   set Box15.In "1250"
57   set Box15.Max "1500"
58   set Box15.Min "0"
59   set Box15.ReactiveOnTrack "true"
60   set Box15.Title "LowerThreshold"
61
62 new wt:Slider Box16
63   set Box16.In "1500"
64   set Box16.Max "4000"
65   set Box16.Min "0"
66   set Box16.ReactiveOnTrack "true"
67   set Box16.Title "UpperThresHold"
68
69 new wt:LayoutLine Box17
70
71 new wt:CommandButton Box21
72   set Box21.Label "Run..."
73
74 new wt:AddObjectToViewerWeb Box22
75
76 new wt:configServerWT Box24
77   set Box24.DocRoot "/var/www/testwtdbg/docroot/tempWT/"
78   set Box24.Port "8082"
79
80 new itk:ImageWriter Box26
81
82 new std:ConcatStrings Box27
83   set Box27.In1 "/var/www/testwtdbg/docroot/nn/imagesTMP/"
84
85 new std:ConcatStrings Box28
86   set Box28.In2 "hola.nii"
87
88 new vtk:ImageGaussianSmooth Box29
89   set Box29.StdDevX "0"
90   set Box29.StdDevY "0"
91   set Box29.StdDevZ "0"
92
93 new wt:Slider Box31
94   set Box31.In "1"
95   set Box31.Max "4"
96   set Box31.Min "0"
97   set Box31.ReactiveOnTrack "true"
98   set Box31.Title "Smooth"
99
100 new wt:OutputText Box32
101
102 new wt:LayoutSplit Box34
103   set Box34.Orientation "h"
104
105 new std:ConcatStrings Box35
106   set Box35.In1 "imagesTMP/"
107
108
109 connect Box00.Out Box02.In
110
111 connect Box02.Out Box06.In
112
113 connect Box06.Out Box09.In
114
115 connect Box05.Out Box14.In
116
117 connect Box10.Out Box08.In2
118
119 connect Box08.Out Box14.Filename
120
121 connect Box15.Out Box10.In2
122
123 connect Box15.Out Box02.LowerThreshold
124
125 connect Box16.Out Box02.UpperThreshold
126
127 connect Box16.Out Box10.In4
128
129 connect Box15.Widget Box17.Widget2
130
131 connect Box16.Widget Box17.Widget3
132
133 connect Box21.BoxChange Box14.BoxExecute
134
135 connect Box21.Widget Box17.Widget5
136
137 connect Box12.viewer1 Box22.Viewer3D
138
139 connect Box22.Widget Box17.Widget8
140
141 connect Box21.BoxChange Box22.BoxExecute
142
143 connect Box00.Out Box26.In
144
145 connect Box27.Out Box28.In1
146
147 connect Box28.Out Box26.Filename
148
149 connect Box27.Out Box24.DocRoot
150
151 connect Box27.Out Box08.In1
152
153 connect Box09.Out Box29.In
154
155 connect Box31.Widget Box17.Widget1
156
157 connect Box32.Widget Box17.Widget4
158
159 connect Box08.Out Box32.In
160
161 connect Box21.BoxChange Box32.BoxExecute
162
163 connect Box31.Out Box29.StdDevX
164
165 connect Box31.Out Box29.StdDevY
166
167 connect Box31.Out Box29.StdDevZ
168
169 connect Box29.Out Box05.In
170
171 connect Box31.Out Box10.In6
172
173 connect Box17.Widget Box34.Widget1
174
175 connect Box10.Out Box35.In2
176
177 connect Box26.BoxChange Box12.BoxExecute
178
179 connect Box35.Out Box22.Mesh
180
181 connect Box12.Widget Box34.Widget2
182
183
184
185 # Complex input ports
186 exec Box24
187 exec Box26
188 exec Box34