]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs
#3077 CreaMiniTools Bug New Normal - message documentation in boxes
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / LayerCol-VolRend-SurRend_Widget.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /tmpEED/creaTools/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.PlainOrGradientColor "false"
37   set Box26.TypeControlsInterface "2"
38   set Box26.lstTransparenceBoundaries "0"
39
40 new vtk:VolumeRenderer Box32
41
42 new creaMaracasVisu:TransferFunctionView Box33
43
44 new creaVtk:Actor Box34
45
46 new vtk:UpdateRender Box35
47   set Box35.Active "true"
48
49 new wxvtk:IsoSurfaceWidget Box36
50   set Box36.Colour "1 1 0"
51
52 new vtk:vtkImageDataPointerRelay Box38
53
54 new wx:LayoutTab Box27
55
56 new wx:LayoutLine Box28
57   set Box28.WinTitle "Layer"
58
59 new wx:LayoutTab Box29
60
61 new wx:LayoutLine Box30
62   set Box30.WinTitle "Volume Rendering"
63
64 new wx:LayoutTab Box31
65
66 new wx:LayoutLine Box37
67   set Box37.WinTitle "Surface Rendering-1"
68
69 new creaMaracasVisu:ViewerNV Box39
70   set Box39.WinTitle "ups"
71
72 new wx:LayoutTab Box40
73
74 new wx:LayoutSplit Box41
75   set Box41.Proportion "10"
76   set Box41.WinTitle "Layer"
77
78 new wx:LayoutLine Box43
79   set Box43.WinTitle "Viewer"
80
81 new toolsbbtk:ImageVtkPropertiesWidget Box44
82
83 new wxvtk:IsoSurfaceWidget Box47
84   set Box47.Colour "1 0 0"
85
86 new wx:LayoutLine Box48
87   set Box48.WinTitle "Surface Rendering-2"
88
89 new wxvtk:IsoSurfaceWidget Box49
90   set Box49.Colour "0 0 1"
91
92 new wx:LayoutLine Box50
93   set Box50.WinTitle "Surface Rendering-3"
94
95 new std:MultipleInputs Box52
96
97 new wx:LayoutSplit Box53
98   set Box53.Proportion "90"
99
100 new wx:CommandButton Box54
101   set Box54.Label "Refresh"
102
103 new wx:LayoutLine Box55
104   set Box55.WinTitle "Image Properties"
105
106 new std:MagicBox Box56
107
108 new creaMaracasVisu:ImageChangeInformation Box57
109
110 new creaMaracasVisu:ImageChangeInformation Box59
111
112 new creaMaracasVisu:SliderMinMax-flexible Box60
113   set Box60.maxIn "1000"
114   set Box60.minIn "0"
115   set Box60.showactual "false"
116
117 new std:MultipleInputs Box61
118
119 new std:ConcatStrings Box62
120   set Box62.In2 " "
121
122 new std:ConcatStrings Box63
123
124
125 connect Box23.BoxChange Box24.BoxExecute
126 connect Box33.Active Box34.Active
127 connect Box33.ColorFunction Box32.ColorFunction1
128 connect Box33.OpacityFunction Box32.OpacityFunction
129 connect Box32.Out Box34.In
130 connect Box24.Out Box38.In
131 connect Box26.Widget Box28.Widget1
132 connect Box28.Widget Box27.Widget1
133 connect Box27.Widget Box06.Widget2
134 connect Box30.Widget Box29.Widget1
135 connect Box33.Widget Box30.Widget1
136 connect Box29.Widget Box06.Widget3
137 connect Box37.Widget Box31.Widget1
138 connect Box31.Widget Box06.Widget4
139 connect Box34.BoxChange Box35.BoxExecute
140 connect Box36.Widget Box37.Widget1
141 connect Box23.BoxChange Box36.BoxExecute
142 connect Box23.BoxChange Box33.BoxExecute
143 connect Box23.BoxChange Box32.BoxExecute
144 connect Box23.Widget Box41.Widget1
145 connect Box40.Widget Box41.Widget2
146 connect Box06.Widget Box40.Widget1
147 connect Box39.Widget Box43.Widget1
148 connect Box43.Widget Box40.Widget2
149 connect Box24.FileName Box44.FileName
150 connect Box23.BoxChange Box39.BoxExecute
151 connect Box47.Widget Box48.Widget1
152 connect Box23.BoxChange Box47.BoxExecute
153 connect Box48.Widget Box31.Widget2
154 connect Box49.Widget Box50.Widget1
155 connect Box50.Widget Box31.Widget3
156 connect Box23.BoxChange Box49.BoxExecute
157 connect Box23.BoxChange Box52.In1
158 connect Box52.BoxChange Box44.boxExecute
159 connect Box44.widget Box53.Widget1
160 connect Box54.Widget Box53.Widget2
161 connect Box54.BoxChange Box52.In2
162 connect Box53.Widget Box55.Widget1
163 connect Box55.Widget Box40.Widget3
164 connect Box56.Out Box34.Renderer
165 connect Box56.Out Box36.vtkRenderer
166 connect Box56.Out Box35.Renderer
167 connect Box56.Out Box47.vtkRenderer
168 connect Box56.Out Box49.vtkRenderer
169 connect Box38.Out Box57.In
170 connect Box57.Out Box26.In
171 connect Box26.NewImage Box36.In
172 connect Box26.NewImage Box47.In
173 connect Box26.NewImage Box49.In
174 connect Box26.NewImage Box44.in
175 connect Box26.NewImage Box33.In
176 connect Box26.NewImage Box32.In
177 connect Box59.Out Box39.In
178 connect Box26.NewImage Box59.In
179 connect Box60.widget Box28.Widget2
180 connect Box60.boxchange Box61.In2
181 connect Box23.BoxChange Box61.In1
182 connect Box61.BoxChange Box26.BoxExecute
183 connect Box60.outstart Box63.In1
184 connect Box63.Out Box26.lstTransparenceBoundaries
185 connect Box60.outstart Box62.In1
186 connect Box60.outend Box62.In3
187 connect Box62.Out Box26.lstRangeForColorBar
188
189 # Complex input ports
190 input Rederer3D Box56.In " "
191 input vtkbaseview1 Box26.WxVtkBaseView " "
192 input vtkbaseview2 Box26.WxVtkBaseView1 " "
193 input vtkbaseview3 Box26.WxVtkBaseView2 " "
194 input title Box41.WinTitle " "
195
196 # Complex output ports
197 output widgetLayer Box41.Widget " "
198
199
200 endefine