]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/LayerCol-VolRend-SurRend_Widget.bbs
adbafa9c19fa541a492f45f81ddd1bb6f60e1a8e
[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.PlainOrGradientColor "false"
36   set Box26.TypeControlsInterface "2"
37   set Box26.lstTransparenceBoundaries "0"
38
39 new vtk:VolumeRenderer Box32
40
41 new creaMaracasVisu:TransferFunctionView Box33
42
43 new creaVtk:Actor Box34
44
45 new vtk:UpdateRender Box35
46   set Box35.Active "true"
47
48 new wxvtk:IsoSurfaceWidget Box36
49   set Box36.Colour "1 1 0"
50
51 new vtk:vtkImageDataPointerRelay Box38
52
53 new wx:LayoutTab Box27
54
55 new wx:LayoutLine Box28
56   set Box28.WinTitle "Layer"
57
58 new wx:LayoutTab Box29
59
60 new wx:LayoutLine Box30
61   set Box30.WinTitle "Volume Rendering"
62
63 new wx:LayoutTab Box31
64
65 new wx:LayoutLine Box37
66   set Box37.WinTitle "Surface Rendering-1"
67
68 new creaMaracasVisu:ViewerNV Box39
69   set Box39.WinTitle "ups"
70
71 new wx:LayoutTab Box40
72
73 new wx:LayoutSplit Box41
74   set Box41.Proportion "10"
75   set Box41.WinTitle "Layer"
76
77 new wx:LayoutLine Box43
78   set Box43.WinTitle "Viewer"
79
80 new toolsbbtk:ImageVtkPropertiesWidget Box44
81
82 new creaMaracasVisu:ImageChangeInformation Box45
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
112 connect Box23.BoxChange Box24.BoxExecute
113 connect Box23.BoxChange Box26.BoxExecute
114 connect Box33.Active Box34.Active
115 connect Box33.ColorFunction Box32.ColorFunction1
116 connect Box33.OpacityFunction Box32.OpacityFunction
117 connect Box32.Out Box34.In
118 connect Box24.Out Box38.In
119 connect Box38.Out Box33.In
120 connect Box38.Out Box32.In
121 connect Box38.Out Box36.In
122 connect Box26.Widget Box28.Widget1
123 connect Box28.Widget Box27.Widget1
124 connect Box27.Widget Box06.Widget2
125 connect Box30.Widget Box29.Widget1
126 connect Box33.Widget Box30.Widget1
127 connect Box29.Widget Box06.Widget3
128 connect Box37.Widget Box31.Widget1
129 connect Box31.Widget Box06.Widget4
130 connect Box34.BoxChange Box35.BoxExecute
131 connect Box36.Widget Box37.Widget1
132 connect Box23.BoxChange Box36.BoxExecute
133 connect Box23.BoxChange Box33.BoxExecute
134 connect Box23.BoxChange Box32.BoxExecute
135 connect Box23.Widget Box41.Widget1
136 connect Box40.Widget Box41.Widget2
137 connect Box06.Widget Box40.Widget1
138 connect Box39.Widget Box43.Widget1
139 connect Box43.Widget Box40.Widget2
140 connect Box24.FileName Box44.FileName
141 connect Box23.BoxChange Box39.BoxExecute
142 connect Box45.Out Box39.In
143 connect Box38.Out Box45.In
144 connect Box47.Widget Box48.Widget1
145 connect Box23.BoxChange Box47.BoxExecute
146 connect Box38.Out Box47.In
147 connect Box48.Widget Box31.Widget2
148 connect Box49.Widget Box50.Widget1
149 connect Box50.Widget Box31.Widget3
150 connect Box23.BoxChange Box49.BoxExecute
151 connect Box38.Out Box49.In
152 connect Box23.BoxChange Box52.In1
153 connect Box52.BoxChange Box44.boxExecute
154 connect Box45.Out Box44.in
155 connect Box44.widget Box53.Widget1
156 connect Box54.Widget Box53.Widget2
157 connect Box54.BoxChange Box52.In2
158 connect Box53.Widget Box55.Widget1
159 connect Box55.Widget Box40.Widget3
160 connect Box56.Out Box34.Renderer
161 connect Box56.Out Box36.vtkRenderer
162 connect Box56.Out Box35.Renderer
163 connect Box56.Out Box47.vtkRenderer
164 connect Box56.Out Box49.vtkRenderer
165 connect Box38.Out Box57.In
166 connect Box57.Out Box26.In
167
168 # Complex input ports
169 input Rederer3D Box56.In " "
170 input vtkbaseview1 Box26.WxVtkBaseView " "
171 input vtkbaseview2 Box26.WxVtkBaseView1 " "
172 input vtkbaseview3 Box26.WxVtkBaseView2 " "
173 input title Box41.WinTitle " "
174
175 # Complex output ports
176 output widgetLayer Box41.Widget " "
177
178 message    
179
180 endefine