]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/bbs/boxes/CompareImagesSwitcherWidget_3Dp.bbs
2020 Feature Comparing Images in XY XZ YZ planes
[creaRigidRegistration.git] / PackRecalage / bbs / boxes / CompareImagesSwitcherWidget_3Dp.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/All/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 ImageSwitcherBox switch
22
23 new CheckBox checkS
24   set checkS.In "true"
25   set checkS.Title "On"
26
27 new 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 LayoutSplit switchWindow
34   set switchWindow.Proportion "90"
35
36 new LayoutLine Box47
37   set Box47.Orientation H
38
39 new LayoutLine Box48
40
41 new ViewerNV Box49
42   set Box49.nTypeView "-1"
43
44 new LayoutSplit Box10
45   set Box10.Orientation "H"
46
47 new LayoutSplit Box12
48
49 new ImageSwitcherFilter Box17
50
51 new GetVectorVtkImageDataElement Box19
52   set Box19.I "1"
53
54 new GetVectorVtkImageDataElement Box21
55   set Box21.I "1"
56
57 new MagicBox Box22
58
59 new MagicBox Box23
60
61 new ViewerNV Box24
62   set Box24.nTypeView "-1"
63
64 new ImageSwitcherFilter Box25
65
66 new GetVectorVtkImageDataElement Box26
67   set Box26.I "0"
68
69 new GetVectorVtkImageDataElement Box27
70   set Box27.I "0"
71
72 new ViewerNV Box28
73   set Box28.nTypeView "-1"
74
75 new LayoutSplit Box29
76
77 new ImageSwitcherFilter Box30
78
79 new GetVectorVtkImageDataElement Box31
80   set Box31.I "2"
81
82 new GetVectorVtkImageDataElement Box32
83   set Box32.I "2"
84
85 new ViewerNV Box33
86   set Box33.nTypeView "-1"
87
88 new ImageSwitcherFilter Box34
89
90 new GetVectorVtkImageDataElement Box35
91   set Box35.I "2"
92
93 new GetVectorVtkImageDataElement Box36
94   set Box36.I "2"
95
96 new ImageChangeInformation Box37
97
98 new ImageChangeInformation Box38
99
100 new ImageChangeInformation Box39
101
102 new ImageChangeInformation Box40
103
104 new LayoutTab Box41
105
106 new LayoutLine Box42
107   set Box42.WinTitle "Plane XZ  (rotation/slice Y)"
108
109 new LayoutTab Box44
110
111 new LayoutLine Box45
112   set Box45.WinTitle "Plane XY  (rotation/slice Z)"
113
114 new LayoutTab Box46
115
116 new LayoutLine Box50
117   set Box50.WinTitle "Plane YZ  (rotation/slice X)"
118
119 new LayoutTab Box51
120
121 new LayoutLine Box52
122   set Box52.WinTitle "Plane YZ  (rotation/slice X)"
123
124
125 connect checkS.Out switch.On
126 connect sdrT.Out switch.Time
127 connect sdrT.BoxChange switch.BoxExecute
128 connect checkS.Widget Box47.Widget2
129 connect switch.Widget Box47.Widget1
130 connect sdrT.Widget Box48.Widget2
131 connect Box47.Widget Box48.Widget1
132 connect Box48.Widget switchWindow.Widget2
133 connect Box12.Widget Box10.Widget1
134 connect Box10.Widget switchWindow.Widget1
135 connect switch.BoxChange Box17.BoxExecute
136 connect Box17.BoxChange Box49.BoxExecute
137 connect Box22.Out Box19.In
138 connect Box23.Out Box21.In
139 connect Box19.Out Box17.In1
140 connect Box21.Out Box17.In2
141 connect Box25.BoxChange Box24.BoxExecute
142 connect Box26.Out Box25.In1
143 connect Box27.Out Box25.In2
144 connect Box30.BoxChange Box28.BoxExecute
145 connect Box31.Out Box30.In1
146 connect Box32.Out Box30.In2
147 connect Box34.BoxChange Box33.BoxExecute
148 connect Box35.Out Box34.In1
149 connect Box36.Out Box34.In2
150 connect switch.BoxChange Box30.BoxExecute
151 connect switch.BoxChange Box34.BoxExecute
152 connect Box29.Widget Box10.Widget2
153 connect Box22.Out Box26.In
154 connect Box23.Out Box27.In
155 connect switch.BoxChange Box25.BoxExecute
156 connect Box22.Out Box31.In
157 connect Box23.Out Box32.In
158 connect Box22.Out Box35.In
159 connect Box23.Out Box36.In
160 connect Box17.Out Box37.In
161 connect Box37.Out Box49.In
162 connect Box25.Out Box38.In
163 connect Box38.Out Box24.In
164 connect Box30.Out Box39.In
165 connect Box39.Out Box28.In
166 connect Box34.Out Box40.In
167 connect Box40.Out Box33.In
168 connect Box41.Widget Box12.Widget1
169 connect Box49.Widget Box42.Widget1
170 connect Box42.Widget Box41.Widget1
171 connect Box45.Widget Box44.Widget1
172 connect Box24.Widget Box45.Widget1
173 connect Box44.Widget Box12.Widget2
174 connect Box50.Widget Box46.Widget1
175 connect Box52.Widget Box51.Widget1
176 connect Box28.Widget Box50.Widget1
177 connect Box46.Widget Box29.Widget1
178 connect Box33.Widget Box52.Widget1
179 connect Box51.Widget Box29.Widget2
180
181 # Complex input ports
182 input ImageVector1 Box22.In " "
183 input ImageVector2 Box23.In " "
184
185 # Complex output ports
186 output Widget switchWindow.Widget " "
187
188
189 endefine