]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs
ba60fdf7a3973fefffa26fbeb608bda207a1f993
[creaWT.git] / wt / bbtk_wt_PKG / bbs / appli / demoPresentacion1Boton03.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaWT/wt/bbtk_wt_PKG/bbs/appli/demoPresentacion1Boton03.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include itk
13 include wt
14 include std
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 wt:ViewerNVWeb Box12
43   set Box12.ImagePath "xx"
44
45 new wt:Slider Box15
46   set Box15.In "1250"
47   set Box15.Max "1500"
48   set Box15.Min "0"
49   set Box15.ReactiveOnTrack "true"
50   set Box15.Title "LowerThreshold"
51
52 new wt:Slider Box16
53   set Box16.In "1500"
54   set Box16.Max "4000"
55   set Box16.Min "1500"
56   set Box16.ReactiveOnTrack "true"
57   set Box16.Title "UpperThresHold"
58
59 new wt:LayoutLine Box17
60
61 new wt:CommandButton Box21
62   set Box21.Label "Run...Q"
63
64 new wt:configServerWT Box24
65   set Box24.DocRoot "/var/www/testwtdbg/docroot/appli1/"
66   set Box24.Port "8082"
67
68 new itk:ImageWriter Box26
69
70 new std:ConcatStrings Box27
71   set Box27.In1 "/var/www/testwtdbg/docroot/appli1/"
72
73 new std:ConcatStrings Box28
74   set Box28.In2 "/imagesTMP/"
75   set Box28.In3 "hola.nii"
76
77 new vtk:ImageGaussianSmooth Box29
78   set Box29.StdDevX "0"
79   set Box29.StdDevY "0"
80   set Box29.StdDevZ "0"
81
82 new wt:Slider Box31
83   set Box31.In "1"
84   set Box31.Max "4"
85   set Box31.Min "0"
86   set Box31.ReactiveOnTrack "true"
87   set Box31.Title "Smooth"
88
89 new wt:AddMeshB Box37
90
91 new wt:ImageWriteB Box33
92
93 new wt:OutputText Box35
94
95 new wt:LayoutSplit Box36
96   set Box36.Orientation "h"
97
98
99 connect Box00.Out Box02.In
100
101 connect Box02.Out Box06.In
102
103 connect Box06.Out Box09.In
104
105 connect Box15.Out Box02.LowerThreshold
106
107 connect Box16.Out Box02.UpperThreshold
108
109 connect Box15.Widget Box17.Widget2
110
111 connect Box16.Widget Box17.Widget3
112
113 connect Box21.Widget Box17.Widget5
114
115 connect Box00.Out Box26.In
116
117 connect Box27.Out Box28.In1
118
119 connect Box28.Out Box26.Filename
120
121 connect Box09.Out Box29.In
122
123 connect Box31.Widget Box17.Widget1
124
125 connect Box31.Out Box29.StdDevX
126
127 connect Box31.Out Box29.StdDevY
128
129 connect Box31.Out Box29.StdDevZ
130
131 connect Box29.Out Box05.In
132
133 connect Box05.Out Box37.vtkPolyData
134
135 connect Box12.Viewer1 Box37.viewerwt
136
137 connect Box21.BoxChange Box37.boxExecute
138
139 connect Box00.Out Box33.Image
140
141 connect Box35.Widget Box17.Widget4
142
143 connect Box33.FileName Box35.In
144
145 connect Box21.BoxChange Box35.BoxExecute
146
147 connect Box17.Widget Box36.Widget1
148
149 connect Box12.Widget Box36.Widget2
150
151 connect Box33.FileName Box12.ImagePath
152
153 connect Box33.out Box24.BoxExecute
154
155
156
157 # Complex input ports
158 exec Box24
159 exec Box33
160 exec Box36