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
123 connect Box01.Out Box02.In
124 connect Box04.Out0 Box02.In0
125 connect Box04.Out1 Box02.In1
126 connect Box04.Out2 Box02.In2
127 connect Box04.Out3 Box02.In3
128 connect Box04.Out4 Box02.In4
129 connect Box04.Out5 Box02.In5
130 connect Box04.Out6 Box02.In6
131 connect Box04.Out7 Box02.In7
132 connect Box04.Out8 Box02.In8
133 connect Box04.Out9 Box02.In9
134 connect Box02.Out Box05.In
135 connect Box03.Widget Box09.Widget2
136 connect Box05.Out Box00.Active
137 connect Box02.Out Box11.In
138 connect Box11.Out Box00.DistanceFill
139 connect Box02.Out Box12.In
140 connect Box12.Out Box00.GrayLevel
141 connect Box02.Out Box15.In
142 connect Box02.Out Box14.In
143 connect Box15.Out Box13.In1
144 connect Box14.Out Box13.In3
145 connect Box13.Out Box00.Range
146 connect Box17.Out0 Box01.In0
147 connect Box17.Out1 Box01.In1
148 connect Box17.Out2 Box01.In2
149 connect Box17.Out3 Box01.In3
150 connect Box17.Out4 Box01.In4
151 connect Box17.Out5 Box01.In5
152 connect Box17.Out6 Box01.In6
153 connect Box17.Out7 Box01.In7
154 connect Box17.Out8 Box01.In8
155 connect Box17.Out9 Box01.In9
156 connect Box01.Widget Box19.Widget2
157 connect Box19.Widget Box09.Widget1
158 connect Box18.Out Box00.Tool
159 connect Box11.Out Box00.BrushSize
160 connect Box20.Out Box17.In0
161 connect Box20.Out Box04.In0
162 connect Box02.Out Box21.In
163 connect Box21.Out Box00.ToleranceFill
164 connect Box22.Out Box00.Image2
165 connect Box22.Out Box03.In
166 connect Box24.Out Box03.WxVtkBaseView
167 connect Box25.Out Box03.WxVtkBaseView1
168 connect Box26.Out Box03.WxVtkBaseView2
169 connect Box24.Out Box23.Renderer
170 connect Box00.BoxChange Box23.BoxExecute
171 connect Box25.Out Box27.Renderer
172 connect Box26.Out Box28.Renderer
173 connect Box00.BoxChange Box27.BoxExecute
174 connect Box00.BoxChange Box28.BoxExecute
175 connect Box18.Widget Box29.Widget1
176 connect Box29.Widget Box19.Widget1
177 connect Box30.Widget Box29.Widget2
178 connect Box31.Widget Box29.Widget3
179 connect Box00.Manualpaintmodel Box32.Manualpaintmodel
180 connect Box31.BoxChange Box32.BoxExecute
181 connect Box30.BoxChange Box33.BoxExecute
182 connect Box00.Manualpaintmodel Box33.Manualpaintmodel
183 connect Box38.Out Box00.Point
184 connect Box24.Out Box33.wxvtkbaseview
185 connect Box24.Out Box32.wxvtkbaseview
187 # Complex input ports
188 input TitleOptions Box20.In " "
189 input Active_ManualPaint_Model Box04.In1 " "
190 input SizeDistance_ManualPaint_Model Box04.In2 " "
191 input GrayLevel_ManualPaint_Model Box04.In3 " "
192 input MinRange_ManualPaint_Model Box04.In4 " "
193 input MaxRange_ManualPaint_Model Box04.In5 " "
194 input Image_ManualPaint_Model Box00.Image " "
195 input BoxExecute_ManualPaint_Model Box00.BoxExecute " "
196 input Tolerance_Fill_ManualPaint_Model Box04.In6 " "
197 input colorBarPosition Box03.ColorBarPosition " "
198 input Image2_ManualPaint_Model Box22.In " "
199 input wxvtkbaseview1 Box24.In " "
200 input wxvtkbaseview2 Box25.In " "
201 input wxvtkbaseview3 Box26.In " "
202 input Point_ManualPaint_Model Box38.In " "
204 # Complex output ports
205 output widgetOut Box09.Widget " "