]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/boxes/ManualPaint2.bbs
#3470merge vtk8itk5wx3-mingw64
[creaMaracasVisu.git] / bbtk / bbs / boxes / ManualPaint2.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/C10/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/ManualPaint2.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include creaMaracasVisu
9 include wx
10 include std
11 include vtk
12
13 define ManualPaint2 creaMaracasVisu
14
15 author "Author ??"
16 description "Description ??"
17
18 category "<VOID>"
19
20 new creaMaracasVisu:ManualPaint_Model Box00
21   set Box00.2D3D "1"
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"
28   set Box00.Tool "1"
29
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"
36
37 new std:StringSelect Box02
38
39 new creaMaracasVisu:ColorLayerImageView Box03
40   set Box03.TypeControlsInterface "2"
41   set Box03.lstTransparenceBoundaries "0"
42
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"
50
51 new std:GetVectorStringElement Box05
52   set Box05.I "1"
53
54 new wx:LayoutLine Box09
55
56 new std:GetVectorStringElement Box11
57   set Box11.I "2"
58
59 new std:GetVectorStringElement Box12
60   set Box12.I "3"
61
62 new std:ConcatStrings Box13
63   set Box13.In2 " "
64
65 new std:GetVectorStringElement Box14
66   set Box14.I "5"
67
68 new std:GetVectorStringElement Box15
69   set Box15.I "4"
70
71 new std:TransposeVectorVectorString Box17
72   set Box17.In0 "Desactivate Big-Blue Small-Blue Big-Clean Small-Clean"
73
74 new wx:RadioButton Box18
75   set Box18.In "1"
76   set Box18.In0 "Brush"
77   set Box18.In1 "Fill"
78
79 new wx:LayoutLine Box19
80   set Box19.Orientation "H"
81
82 new std:MagicBox Box20
83
84 new std:GetVectorStringElement Box21
85   set Box21.I "6"
86
87 new vtk:vtkImageDataPointerRelay Box22
88
89 new vtk:UpdateRender Box23
90   set Box23.Active "true"
91
92 new std:MagicBox Box24
93
94 new std:MagicBox Box25
95
96 new std:MagicBox Box26
97
98 new vtk:UpdateRender Box27
99   set Box27.Active "true"
100
101 new vtk:UpdateRender Box28
102   set Box28.Active "true"
103
104 new wx:LayoutLine Box29
105
106 new wx:CommandButton Box30
107   set Box30.Label "Undo"
108
109 new wx:CommandButton Box31
110   set Box31.Label "Redo"
111
112 new creaMaracasVisu:ManualPaint_UndoRedo Box32
113   set Box32.Type "2"
114
115 new creaMaracasVisu:ManualPaint_UndoRedo Box33
116   set Box33.Type "1"
117
118 new vtk:UpdateRender Box34
119
120 new std:MagicBox Box38
121
122 new wx:LayoutLine Box36
123   set Box36.Orientation "H"
124
125 new wx:RadioButton Box37
126   set Box37.In "1"
127   set Box37.In0 "2D"
128   set Box37.In1 "3D"
129
130 new wx:RadioButton Box39
131   set Box39.In "1"
132   set Box39.In0 "YZ"
133   set Box39.In1 "XZ"
134   set Box39.In2 "XY"
135
136
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
205
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 " "
222
223 # Complex output ports
224 output widgetOut Box09.Widget " "
225 output boxChange Box01.BoxChange " "
226
227
228 endefine