1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/C8/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/ManualPaint2.bbs
4 # ----------------------------------
8 include creaMaracasVisu
13 define ManualPaint2 creaMaracasVisu
16 description "Description ??"
20 new creaMaracasVisu:ManualPaint_Model Box00
22 set Box00.Active "true"
23 set Box00.BrushForm "1"
24 set Box00.BrushSize "3"
25 set Box00.DistanceFill "25"
26 set Box00.GrayLevel "1000"
27 set Box00.Range "-10000 10000"
30 new wx:RadioButton Box01
31 set Box01.In0 "Deselect"
32 set Box01.In1 "BigBlue"
33 set Box01.In2 "SmallBlue"
34 set Box01.In3 "BigClean"
35 set Box01.In4 "SmallClean"
37 new std:StringSelect Box02
39 new creaMaracasVisu:ColorLayerImageView Box03
40 set Box03.TypeControlsInterface "2"
41 set Box03.lstTransparenceBoundaries "0"
43 new std:TransposeVectorVectorString Box04
44 set Box04.In0 "Desactivate Big-Blue Small-Blue Big-Clean Small-Clean"
45 set Box04.In1 "false true true true true"
46 set Box04.In2 "-1 10 3 10 3"
47 set Box04.In3 "-1 4000 4000 0 0"
48 set Box04.In4 "-1 1200 1200 3999 3999"
49 set Box04.In5 "-1 1500 1500 4001 4001"
51 new std:GetVectorStringElement Box05
54 new wx:LayoutLine Box09
56 new std:GetVectorStringElement Box11
59 new std:GetVectorStringElement Box12
62 new std:ConcatStrings Box13
65 new std:GetVectorStringElement Box14
68 new std:GetVectorStringElement Box15
71 new std:TransposeVectorVectorString Box17
72 set Box17.In0 "Desactivate Big-Blue Small-Blue Big-Clean Small-Clean"
74 new wx:RadioButton Box18
79 new wx:LayoutLine Box19
80 set Box19.Orientation "H"
82 new std:MagicBox Box20
84 new std:GetVectorStringElement Box21
87 new vtk:vtkImageDataPointerRelay Box22
89 new vtk:UpdateRender Box23
90 set Box23.Active "true"
92 new std:MagicBox Box24
94 new std:MagicBox Box25
96 new std:MagicBox Box26
98 new vtk:UpdateRender Box27
99 set Box27.Active "true"
101 new vtk:UpdateRender Box28
102 set Box28.Active "true"
104 new wx:LayoutLine Box29
106 new wx:CommandButton Box30
107 set Box30.Label "Undo"
109 new wx:CommandButton Box31
110 set Box31.Label "Redo"
112 new creaMaracasVisu:ManualPaint_UndoRedo Box32
115 new creaMaracasVisu:ManualPaint_UndoRedo Box33
118 new vtk:UpdateRender Box34
120 new std:MagicBox Box38
122 new wx:LayoutLine Box36
123 set Box36.Orientation "H"
125 new wx:RadioButton Box37
130 new wx:RadioButton Box39
137 connect Box01.Out Box02.In
138 connect Box04.Out0 Box02.In0
139 connect Box04.Out1 Box02.In1
140 connect Box04.Out2 Box02.In2
141 connect Box04.Out3 Box02.In3
142 connect Box04.Out4 Box02.In4
143 connect Box04.Out5 Box02.In5
144 connect Box04.Out6 Box02.In6
145 connect Box04.Out7 Box02.In7
146 connect Box04.Out8 Box02.In8
147 connect Box04.Out9 Box02.In9
148 connect Box02.Out Box05.In
149 connect Box03.Widget Box09.Widget2
150 connect Box05.Out Box00.Active
151 connect Box02.Out Box11.In
152 connect Box11.Out Box00.DistanceFill
153 connect Box02.Out Box12.In
154 connect Box12.Out Box00.GrayLevel
155 connect Box02.Out Box15.In
156 connect Box02.Out Box14.In
157 connect Box15.Out Box13.In1
158 connect Box14.Out Box13.In3
159 connect Box13.Out Box00.Range
160 connect Box17.Out0 Box01.In0
161 connect Box17.Out1 Box01.In1
162 connect Box17.Out2 Box01.In2
163 connect Box17.Out3 Box01.In3
164 connect Box17.Out4 Box01.In4
165 connect Box17.Out5 Box01.In5
166 connect Box17.Out6 Box01.In6
167 connect Box17.Out7 Box01.In7
168 connect Box17.Out8 Box01.In8
169 connect Box17.Out9 Box01.In9
170 connect Box01.Widget Box19.Widget2
171 connect Box19.Widget Box09.Widget1
172 connect Box18.Out Box00.Tool
173 connect Box11.Out Box00.BrushSize
174 connect Box20.Out Box17.In0
175 connect Box20.Out Box04.In0
176 connect Box02.Out Box21.In
177 connect Box21.Out Box00.ToleranceFill
178 connect Box22.Out Box00.Image2
179 connect Box22.Out Box03.In
180 connect Box24.Out Box03.WxVtkBaseView
181 connect Box25.Out Box03.WxVtkBaseView1
182 connect Box26.Out Box03.WxVtkBaseView2
183 connect Box24.Out Box23.Renderer
184 connect Box00.BoxChange Box23.BoxExecute
185 connect Box25.Out Box27.Renderer
186 connect Box26.Out Box28.Renderer
187 connect Box00.BoxChange Box27.BoxExecute
188 connect Box00.BoxChange Box28.BoxExecute
189 connect Box29.Widget Box19.Widget1
190 connect Box30.Widget Box29.Widget2
191 connect Box31.Widget Box29.Widget3
192 connect Box00.Manualpaintmodel Box32.Manualpaintmodel
193 connect Box31.BoxChange Box32.BoxExecute
194 connect Box30.BoxChange Box33.BoxExecute
195 connect Box00.Manualpaintmodel Box33.Manualpaintmodel
196 connect Box38.Out Box00.Point
197 connect Box24.Out Box33.wxvtkbaseview
198 connect Box24.Out Box32.wxvtkbaseview
199 connect Box36.Widget Box29.Widget1
200 connect Box18.Widget Box36.Widget1
201 connect Box37.Widget Box36.Widget2
202 connect Box37.Out Box00.2D3D
203 connect Box39.Widget Box36.Widget4
204 connect Box39.Out Box00.Direction
206 # Complex input ports
207 input TitleOptions Box20.In " "
208 input Active_ManualPaint_Model Box04.In1 " "
209 input SizeDistance_ManualPaint_Model Box04.In2 " "
210 input GrayLevel_ManualPaint_Model Box04.In3 " "
211 input MinRange_ManualPaint_Model Box04.In4 " "
212 input MaxRange_ManualPaint_Model Box04.In5 " "
213 input Image_ManualPaint_Model Box00.Image " "
214 input BoxExecute_ManualPaint_Model Box00.BoxExecute " "
215 input Tolerance_Fill_ManualPaint_Model Box04.In6 " "
216 input colorBarPosition Box03.ColorBarPosition " "
217 input Image2_ManualPaint_Model Box22.In " "
218 input wxvtkbaseview1 Box24.In " "
219 input wxvtkbaseview2 Box25.In " "
220 input wxvtkbaseview3 Box26.In " "
221 input Point_ManualPaint_Model Box38.In " "
223 # Complex output ports
224 output widgetOut Box09.Widget " "