]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs
#3418 merge vtk8itk5wx3-mingw64
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / LayerCol-VolRend-SurRend_Widget.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/C8/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include creaImageIO
10 include creaMaracasVisu
11 include vtk
12 include creaVtk
13 include wxvtk
14 include toolsbbtk
15 include std
16
17 define LayerCol-VolRend-SurRend_Widget creaMiniTools
18
19 author "Author ??"
20 description "Description ??"
21
22 category "<VOID>"
23
24 new wx:LayoutLine Box06
25   set Box06.WinTitle "Superpose"
26
27 new wx:CommandButton Box23
28   set Box23.Label "Load Image"
29
30 new creaImageIO:ImagesChooserDialogBox Box24
31   set Box24.BoxProcessMode "Manual"
32   set Box24.Title "Superpose Image"
33
34 new creaMaracasVisu:ColorLayerImageView Box26
35   set Box26.FittingMode "-1"
36   set Box26.Opacity "50"
37   set Box26.PlainOrGradientColor "false"
38   set Box26.TypeControlsInterface "2"
39   set Box26.lstTransparenceBoundaries "0"
40
41 new vtk:VolumeRenderer Box32
42
43 new creaMaracasVisu:TransferFunctionView Box33
44
45 new creaVtk:Actor Box34
46
47 new vtk:UpdateRender Box35
48   set Box35.Active "true"
49
50 new wxvtk:IsoSurfaceWidget Box36
51   set Box36.Colour "1 1 0"
52
53 new vtk:vtkImageDataPointerRelay Box38
54
55 new wx:LayoutTab Box27
56
57 new wx:LayoutLine Box28
58   set Box28.WinTitle "Layer"
59
60 new wx:LayoutTab Box29
61
62 new wx:LayoutLine Box30
63   set Box30.WinTitle "Volume Rendering"
64
65 new wx:LayoutTab Box31
66
67 new wx:LayoutLine Box37
68   set Box37.WinTitle "Surface Rendering-1"
69
70 new creaMaracasVisu:ViewerNV Box39
71   set Box39.WinTitle "ups"
72
73 new wx:LayoutTab Box40
74
75 new wx:LayoutSplit Box41
76   set Box41.Proportion "10"
77   set Box41.WinTitle "Layer"
78
79 new wx:LayoutLine Box43
80   set Box43.WinTitle "Viewer"
81
82 new toolsbbtk:ImageVtkPropertiesWidget Box44
83
84 new wxvtk:IsoSurfaceWidget Box47
85   set Box47.Colour "1 0 0"
86
87 new wx:LayoutLine Box48
88   set Box48.WinTitle "Surface Rendering-2"
89
90 new wxvtk:IsoSurfaceWidget Box49
91   set Box49.Colour "0 0 1"
92
93 new wx:LayoutLine Box50
94   set Box50.WinTitle "Surface Rendering-3"
95
96 new std:MultipleInputs Box52
97
98 new wx:LayoutSplit Box53
99   set Box53.Proportion "90"
100
101 new wx:CommandButton Box54
102   set Box54.Label "Refresh"
103
104 new wx:LayoutLine Box55
105   set Box55.WinTitle "Image Properties"
106
107 new std:MagicBox Box56
108
109 new creaMaracasVisu:ImageChangeInformation Box57
110
111 new creaMaracasVisu:ImageChangeInformation Box59
112
113 new creaMaracasVisu:SliderMinMax-flexible Box60
114   set Box60.maxIn "1000"
115   set Box60.minIn "0"
116   set Box60.showactual "false"
117
118 new std:MultipleInputs Box61
119
120 new std:ConcatStrings Box62
121   set Box62.In2 " "
122
123 new std:ConcatStrings Box63
124
125 new creaMaracasVisu:ColorLayerImageView Box64
126   set Box64.FittingMode "-1"
127   set Box64.Opacity "0"
128   set Box64.TypeControlsInterface "2"
129   set Box64.lstTransparenceBoundaries "0"
130
131 new std:MagicBox Box66
132
133 new std:MagicBox Box67
134
135 new std:MagicBox Box68
136
137 new creaVtk:ImageThreshold Box69
138
139 new creaMaracasVisu:ColorLayerImageView Box70
140   set Box70.FittingMode "-1"
141   set Box70.Opacity "0"
142   set Box70.TypeControlsInterface "2"
143   set Box70.lstTransparenceBoundaries "0"
144
145 new creaVtk:ImageThreshold Box71
146
147 new creaMaracasVisu:ColorLayerImageView Box72
148   set Box72.FittingMode "-1"
149   set Box72.Opacity "0"
150   set Box72.TypeControlsInterface "2"
151   set Box72.lstTransparenceBoundaries "0"
152
153 new creaVtk:ImageThreshold Box73
154
155 new wx:LayoutCenter Box74
156
157
158 connect Box23.BoxChange Box24.BoxExecute
159 connect Box33.Active Box34.Active
160 connect Box33.ColorFunction Box32.ColorFunction1
161 connect Box33.OpacityFunction Box32.OpacityFunction
162 connect Box32.Out Box34.In
163 connect Box24.Out Box38.In
164 connect Box26.Widget Box28.Widget1
165 connect Box28.Widget Box27.Widget1
166 connect Box27.Widget Box06.Widget2
167 connect Box30.Widget Box29.Widget1
168 connect Box33.Widget Box30.Widget1
169 connect Box37.Widget Box31.Widget1
170 connect Box31.Widget Box06.Widget4
171 connect Box34.BoxChange Box35.BoxExecute
172 connect Box36.Widget Box37.Widget1
173 connect Box23.BoxChange Box36.BoxExecute
174 connect Box23.BoxChange Box33.BoxExecute
175 connect Box23.BoxChange Box32.BoxExecute
176 connect Box40.Widget Box41.Widget2
177 connect Box06.Widget Box40.Widget1
178 connect Box39.Widget Box43.Widget1
179 connect Box43.Widget Box40.Widget2
180 connect Box24.FileName Box44.FileName
181 connect Box23.BoxChange Box39.BoxExecute
182 connect Box47.Widget Box48.Widget1
183 connect Box23.BoxChange Box47.BoxExecute
184 connect Box48.Widget Box31.Widget2
185 connect Box49.Widget Box50.Widget1
186 connect Box50.Widget Box31.Widget3
187 connect Box23.BoxChange Box49.BoxExecute
188 connect Box23.BoxChange Box52.In1
189 connect Box52.BoxChange Box44.boxExecute
190 connect Box44.widget Box53.Widget1
191 connect Box54.Widget Box53.Widget2
192 connect Box54.BoxChange Box52.In2
193 connect Box53.Widget Box55.Widget1
194 connect Box55.Widget Box40.Widget3
195 connect Box56.Out Box34.Renderer
196 connect Box56.Out Box36.vtkRenderer
197 connect Box56.Out Box35.Renderer
198 connect Box56.Out Box47.vtkRenderer
199 connect Box56.Out Box49.vtkRenderer
200 connect Box38.Out Box57.In
201 connect Box57.Out Box26.In
202 connect Box26.NewImage Box36.In
203 connect Box26.NewImage Box47.In
204 connect Box26.NewImage Box49.In
205 connect Box26.NewImage Box44.in
206 connect Box26.NewImage Box33.In
207 connect Box26.NewImage Box32.In
208 connect Box59.Out Box39.In
209 connect Box26.NewImage Box59.In
210 connect Box60.widget Box28.Widget2
211 connect Box60.boxchange Box61.In2
212 connect Box23.BoxChange Box61.In1
213 connect Box61.BoxChange Box26.BoxExecute
214 connect Box60.outstart Box63.In1
215 connect Box63.Out Box26.lstTransparenceBoundaries
216 connect Box60.outstart Box62.In1
217 connect Box60.outend Box62.In3
218 connect Box62.Out Box26.lstRangeForColorBar
219 connect Box29.Widget Box06.Widget7
220 connect Box64.Widget Box37.Widget3
221 connect Box68.Out Box26.WxVtkBaseView
222 connect Box66.Out Box26.WxVtkBaseView1
223 connect Box67.Out Box26.WxVtkBaseView2
224 connect Box68.Out Box64.WxVtkBaseView
225 connect Box66.Out Box64.WxVtkBaseView1
226 connect Box67.Out Box64.WxVtkBaseView2
227 connect Box36.BoxChange Box64.BoxExecute
228 connect Box69.Out Box64.In
229 connect Box36.OutIsovalue Box69.Lower
230 connect Box26.NewImage Box69.In
231 connect Box71.Out Box70.In
232 connect Box70.Widget Box48.Widget3
233 connect Box47.OutIsovalue Box71.Lower
234 connect Box47.BoxChange Box70.BoxExecute
235 connect Box73.Out Box72.In
236 connect Box49.OutIsovalue Box73.Lower
237 connect Box72.Widget Box50.Widget4
238 connect Box49.BoxChange Box72.BoxExecute
239 connect Box68.Out Box70.WxVtkBaseView
240 connect Box66.Out Box70.WxVtkBaseView1
241 connect Box67.Out Box70.WxVtkBaseView2
242 connect Box68.Out Box72.WxVtkBaseView
243 connect Box66.Out Box72.WxVtkBaseView1
244 connect Box67.Out Box72.WxVtkBaseView2
245 connect Box23.Widget Box74.Widget2
246 connect Box74.Widget Box41.Widget1
247
248 # Complex input ports
249 input Rederer3D Box56.In " "
250 input title Box41.WinTitle " "
251 input colorbarposition Box26.ColorBarPosition " "
252 input vtkbaseview1 Box68.In " "
253 input vtkbaseview2 Box66.In " "
254 input vtkbaseview3 Box67.In " "
255
256 # Complex output ports
257 output widgetLayer Box41.Widget " "
258
259
260 endefine