]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/bbs/boxes/CompareImagesSwitcherWidget_3Dp.bbs
#3471 Add manual option to CompareImageSwitcherWidget
[creaRigidRegistration.git] / PackRecalage / bbs / boxes / CompareImagesSwitcherWidget_3Dp.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
3 # - /Users/davila/Creatis/C23/creatools_source/creaRigidRegistration/PackRecalage/bbs/boxes/CompareImagesSwitcherWidget_3Dp.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include PackRecalage
9 include wx
10 include creaMaracasVisu
11 include vtk
12 include std
13
14 define CompareImagesSwitcherWidget_3Dp PackRecalage
15
16 author "info-dev@creatis.insa-lyon.fr"
17 description "creatisRecalage"
18
19 category "example"
20
21 new PackRecalage:ImageSwitcherBox switch
22
23 new wx:CheckBox checkS
24   set checkS.In "true"
25   set checkS.Title "Auto"
26
27 new wx:Slider sdrT
28   set sdrT.In "500"
29   set sdrT.Max "1000"
30   set sdrT.Min "0"
31   set sdrT.ReactiveOnTrack "True"
32
33 new wx:LayoutSplit switchWindow
34   set switchWindow.Proportion "95"
35   set switchWindow.WinTitle "Switcher"
36
37 new wx:LayoutLine Box47
38   set Box47.Orientation H
39
40 new wx:LayoutLine Box48
41
42 new creaMaracasVisu:ViewerNV Box49
43   set Box49.nTypeView "-1"
44
45 new wx:LayoutSplit Box10
46   set Box10.Orientation "H"
47
48 new wx:LayoutSplit Box12
49
50 new PackRecalage:ImageSwitcherFilter Box17
51
52 new vtk:GetVectorVtkImageDataElement Box19
53   set Box19.I "1"
54
55 new vtk:GetVectorVtkImageDataElement Box21
56   set Box21.I "1"
57
58 new std:MagicBox Box22
59
60 new std:MagicBox Box23
61
62 new creaMaracasVisu:ViewerNV Box24
63   set Box24.nTypeView "-1"
64
65 new PackRecalage:ImageSwitcherFilter Box25
66
67 new vtk:GetVectorVtkImageDataElement Box26
68   set Box26.I "0"
69
70 new vtk:GetVectorVtkImageDataElement Box27
71   set Box27.I "0"
72
73 new creaMaracasVisu:ViewerNV Box28
74   set Box28.nTypeView "-1"
75
76 new wx:LayoutSplit Box29
77
78 new PackRecalage:ImageSwitcherFilter Box30
79
80 new vtk:GetVectorVtkImageDataElement Box31
81   set Box31.I "2"
82
83 new vtk:GetVectorVtkImageDataElement Box32
84   set Box32.I "2"
85
86 new creaMaracasVisu:ImageChangeInformation Box37
87
88 new creaMaracasVisu:ImageChangeInformation Box38
89
90 new creaMaracasVisu:ImageChangeInformation Box39
91
92 new wx:LayoutTab Box41
93
94 new wx:LayoutLine Box42
95   set Box42.WinTitle "Plane XZ  (rotation/slice Y)"
96
97 new wx:LayoutTab Box44
98
99 new wx:LayoutLine Box45
100   set Box45.WinTitle "Plane XY  (rotation/slice Z)"
101
102 new wx:LayoutTab Box46
103
104 new wx:LayoutLine Box50
105   set Box50.WinTitle "Plane YZ  (rotation/slice X)"
106
107 new wx:LayoutTab Box51
108
109 new wx:LayoutLine Box52
110   set Box52.WinTitle "Viewer help"
111
112 new creaMaracasVisu:wxVtkBaseView_Info Box54
113   set Box54.InteractionType "12"
114
115 new std:GetVectorDoubleElement Box55
116   set Box55.I "0"
117
118 new std:GetVectorDoubleElement Box56
119   set Box56.I "1"
120
121 new std:MultipleInputs Box57
122
123 new std:MultipleInputs Box59
124
125 new creaMaracasVisu:HelpViewerNV Box60
126
127 new std:MagicBox Box61
128
129 new std:GetVectorDoubleElement Box62
130   set Box62.I "0"
131
132 new std:GetVectorDoubleElement Box63
133   set Box63.I "1"
134
135 new wx:CheckBox Box64
136   set Box64.In "true"
137   set Box64.Title "Interpolate"
138
139 new std:MultipleInputs Box65
140
141 new std:MultipleInputs Box66
142
143 new wx:CommandButton Box67
144   set Box67.Label "Switch"
145
146
147 connect checkS.Out switch.On
148 connect sdrT.Out switch.Time
149 connect sdrT.BoxChange switch.BoxExecute
150 connect switch.Widget Box47.Widget1
151 connect sdrT.Widget Box48.Widget2
152 connect Box47.Widget Box48.Widget1
153 connect Box48.Widget switchWindow.Widget2
154 connect Box12.Widget Box10.Widget1
155 connect Box10.Widget switchWindow.Widget1
156 connect Box22.Out Box19.In
157 connect Box23.Out Box21.In
158 connect Box19.Out Box17.In1
159 connect Box21.Out Box17.In2
160 connect Box26.Out Box25.In1
161 connect Box27.Out Box25.In2
162 connect Box31.Out Box30.In1
163 connect Box32.Out Box30.In2
164 connect Box29.Widget Box10.Widget2
165 connect Box22.Out Box26.In
166 connect Box23.Out Box27.In
167 connect Box22.Out Box31.In
168 connect Box23.Out Box32.In
169 connect Box17.Out Box37.In
170 connect Box37.Out Box49.In
171 connect Box25.Out Box38.In
172 connect Box38.Out Box24.In
173 connect Box30.Out Box39.In
174 connect Box39.Out Box28.In
175 connect Box41.Widget Box12.Widget1
176 connect Box49.Widget Box42.Widget1
177 connect Box42.Widget Box41.Widget1
178 connect Box45.Widget Box44.Widget1
179 connect Box24.Widget Box45.Widget1
180 connect Box44.Widget Box12.Widget2
181 connect Box50.Widget Box46.Widget1
182 connect Box52.Widget Box51.Widget1
183 connect Box28.Widget Box50.Widget1
184 connect Box46.Widget Box29.Widget1
185 connect Box51.Widget Box29.Widget2
186 connect Box54.WindowColorLevel Box55.In
187 connect Box54.WindowColorLevel Box56.In
188 connect Box55.Out Box28.WindowLevel
189 connect Box56.Out Box28.ColorLevel
190 connect Box30.BoxChange Box57.In1
191 connect Box57.BoxChange Box28.BoxExecute
192 connect Box54.BoxChange Box57.In2
193 connect Box49.wxVtkBaseView1 Box54.wxVtkBaseView
194 connect Box25.BoxChange Box59.In1
195 connect Box59.BoxChange Box24.BoxExecute
196 connect Box54.BoxChange Box59.In2
197 connect Box56.Out Box24.ColorLevel
198 connect Box55.Out Box24.WindowLevel
199 connect Box60.widget Box52.Widget2
200 connect Box61.Out Box62.In
201 connect Box61.Out Box63.In
202 connect Box64.Out Box49.Interpolate
203 connect Box64.Out Box28.Interpolate
204 connect Box64.Out Box24.Interpolate
205 connect Box64.BoxChange Box57.In3
206 connect Box64.BoxChange Box59.In3
207 connect Box17.BoxChange Box65.In1
208 connect Box65.BoxChange Box49.BoxExecute
209 connect Box64.BoxChange Box65.In3
210 connect switch.BoxChange Box66.In1
211 connect Box64.Widget Box47.Widget7
212 connect checkS.Widget Box47.Widget5
213 connect Box67.Widget Box47.Widget3
214 connect Box67.BoxChange Box66.In2
215 connect Box66.BoxChange Box25.BoxExecute
216 connect Box66.BoxChange Box17.BoxExecute
217 connect Box66.BoxChange Box30.BoxExecute
218
219 # Complex input ports
220 input ImageVector1 Box22.In " "
221 input ImageVector2 Box23.In " "
222 input windowcolorlevel Box61.In " "
223
224 # Complex output ports
225 output Widget switchWindow.Widget " "
226
227
228 endefine