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"
105 connect Box01.Out Box02.In
106 connect Box04.Out0 Box02.In0
107 connect Box04.Out1 Box02.In1
108 connect Box04.Out2 Box02.In2
109 connect Box04.Out3 Box02.In3
110 connect Box04.Out4 Box02.In4
111 connect Box04.Out5 Box02.In5
112 connect Box04.Out6 Box02.In6
113 connect Box04.Out7 Box02.In7
114 connect Box04.Out8 Box02.In8
115 connect Box04.Out9 Box02.In9
116 connect Box02.Out Box05.In
117 connect Box03.Widget Box09.Widget2
118 connect Box05.Out Box00.Active
119 connect Box02.Out Box11.In
120 connect Box11.Out Box00.DistanceFill
121 connect Box02.Out Box12.In
122 connect Box12.Out Box00.GrayLevel
123 connect Box02.Out Box15.In
124 connect Box02.Out Box14.In
125 connect Box15.Out Box13.In1
126 connect Box14.Out Box13.In3
127 connect Box13.Out Box00.Range
128 connect Box17.Out0 Box01.In0
129 connect Box17.Out1 Box01.In1
130 connect Box17.Out2 Box01.In2
131 connect Box17.Out3 Box01.In3
132 connect Box17.Out4 Box01.In4
133 connect Box17.Out5 Box01.In5
134 connect Box17.Out6 Box01.In6
135 connect Box17.Out7 Box01.In7
136 connect Box17.Out8 Box01.In8
137 connect Box17.Out9 Box01.In9
138 connect Box18.Widget Box19.Widget1
139 connect Box01.Widget Box19.Widget2
140 connect Box19.Widget Box09.Widget1
141 connect Box18.Out Box00.Tool
142 connect Box11.Out Box00.BrushSize
143 connect Box20.Out Box17.In0
144 connect Box20.Out Box04.In0
145 connect Box02.Out Box21.In
146 connect Box21.Out Box00.ToleranceFill
147 connect Box22.Out Box00.Image2
148 connect Box22.Out Box03.In
149 connect Box24.Out Box03.WxVtkBaseView
150 connect Box25.Out Box03.WxVtkBaseView1
151 connect Box26.Out Box03.WxVtkBaseView2
152 connect Box24.Out Box23.Renderer
153 connect Box00.BoxChange Box23.BoxExecute
154 connect Box25.Out Box27.Renderer
155 connect Box26.Out Box28.Renderer
156 connect Box00.BoxChange Box27.BoxExecute
157 connect Box00.BoxChange Box28.BoxExecute
159 # Complex input ports
160 input TitleOptions Box20.In " "
161 input Active_ManualPaint_Model Box04.In1 " "
162 input SizeDistance_ManualPaint_Model Box04.In2 " "
163 input GrayLevel_ManualPaint_Model Box04.In3 " "
164 input MinRange_ManualPaint_Model Box04.In4 " "
165 input MaxRange_ManualPaint_Model Box04.In5 " "
166 input Point_ManualPaint_Model Box00.Point " "
167 input Image_ManualPaint_Model Box00.Image " "
168 input BoxExecute_ManualPaint_Model Box00.BoxExecute " "
169 input Tolerance_Fill_ManualPaint_Model Box04.In6 " "
170 input colorBarPosition Box03.ColorBarPosition " "
171 input Image2_ManualPaint_Model Box22.In " "
172 input wxvtkbaseview1 Box24.In " "
173 input wxvtkbaseview2 Box25.In " "
174 input wxvtkbaseview3 Box26.In " "
176 # Complex output ports
177 output widgetOut Box09.Widget " "