]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs
a7e21b66781b1d12037e4dc2f6ad95ecd16323b4
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / imageToolsMenu.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include std
10 include creaMiniToolsBase
11
12 define ImageToolsMenu creaMiniTools
13
14 author "Author ??"
15 description "Description ??"
16
17 category "<VOID>"
18
19 new wx:CommandButton Box00
20   set Box00.Label "Image Writer"
21
22 new wx:CommandButton Box02
23   set Box02.Label "Viewer NV"
24
25 new std:ExecSystemCommand Box04
26
27 new std:ExecSystemCommand Box06
28
29 new std:ExecSystemCommand Box09
30
31 new wx:CommandButton Box10
32   set Box10.Label "Synchronize 2 Images"
33
34 new wx:CommandButton Box11
35   set Box11.Label "Manual paint"
36
37 new std:ExecSystemCommand Box12
38
39 new wx:CommandButton Box13
40   set Box13.Label "Extract Planes"
41
42 new std:ExecSystemCommand Box14
43
44 new wx:LayoutTab Box15
45   set Box15.WinTitle "Images Tools"
46
47 new wx:LayoutLine Box18
48
49 new wx:LayoutLine Box19
50
51 new creaMiniToolsBase:RegistrationMenu Box20
52
53 new creaMiniToolsBase:RescaleSlopeInterceptMenu Box21
54
55 new wx:CommandButton Box22
56   set Box22.Label "Resampling Image"
57
58 new std:ExecSystemCommand Box23
59
60 new wx:CommandButton Box25
61   set Box25.Label "Crop image"
62
63 new std:ExecSystemCommand Box26
64
65 new wx:LayoutCenter Box27
66   set Box27.WinTitle "Viewers"
67
68 new wx:LayoutCenter Box28
69   set Box28.WinTitle "Modify image"
70
71 new wx:CommandButton Box29
72   set Box29.Label "Flip Image"
73
74 new std:ExecSystemCommand Box30
75
76 new wx:CommandButton Box31
77   set Box31.Label "Viewer NV (Vol. Rendering)"
78
79 new std:ExecSystemCommand Box32
80
81 new std:Configuration Box33
82
83 new std:StringSelect Box34
84   set Box34.In0 "bbi creaMiniTools/appli/viewerNVwithVolRenExample.bbs &"
85   set Box34.In1 "start /b bbi creaMiniTools/appli/viewerNVwithVolRenExample.bbs &"
86
87 new std:StringSelect Box35
88   set Box35.In0 "bbi creaMiniTools/appli/viewerNVExample.bbs &"
89   set Box35.In1 "start /b bbi creaMiniTools/appli/viewerNVExample.bbs &"
90
91 new std:StringSelect Box36
92   set Box36.In0 "bbi creaMiniTools/appli/synchro2ImageExample.bbs &"
93   set Box36.In1 "start /b bbi creaMiniTools/appli/synchro2ImageExample.bbs &"
94
95 new std:StringSelect Box37
96   set Box37.In0 "bbi creaMiniTools/appli/imageWriterExample.bbs &"
97   set Box37.In1 "start /b bbi creaMiniTools/appli/imageWriterExample.bbs &"
98
99 new std:StringSelect Box38
100   set Box38.In0 "bbi creaMiniTools/appli/resampling.bbs &"
101   set Box38.In1 "start /b bbi creaMiniTools/appli/resampling.bbs &"
102
103 new std:StringSelect Box39
104   set Box39.In0 "bbi creaMiniTools/appli/crop.bbs &"
105   set Box39.In1 "start /b bbi creaMiniTools/appli/crop.bbs &"
106
107 new std:StringSelect Box40
108   set Box40.In0 "bbi creaMiniTools/appli/SaveImagePlanes.bbs &"
109   set Box40.In1 "start /b bbi creaMiniTools/appli/SaveImagePlanes.bbs &"
110
111 new std:StringSelect Box41
112   set Box41.In0 "bbi creaMiniTools/appli/manualPaint.bbs &"
113   set Box41.In1 "start /b bbi creaMiniTools/appli/manualPaint.bbs &"
114
115 new std:StringSelect Box42
116   set Box42.In0 "bbi creaMiniTools/appli/flipImageY.bbs &"
117   set Box42.In1 "start /b bbi creaMiniTools/appli/flipImageY.bbs &"
118
119 new wx:CommandButton Box43
120   set Box43.Label "Viewer Plane MHD"
121
122 new std:ExecSystemCommand Box44
123
124 new std:StringSelect Box45
125   set Box45.In0 "bbi creaMiniTools/appli/PlaneViewer-MHD.bbs &"
126   set Box45.In1 "start /b bbi creaMiniTools/appli/PlaneViewer-MHD.bbs &"
127
128
129 connect Box00.BoxChange Box04.BoxExecute
130 connect Box02.BoxChange Box06.BoxExecute
131 connect Box10.BoxChange Box09.BoxExecute
132 connect Box11.BoxChange Box12.BoxExecute
133 connect Box13.BoxChange Box14.BoxExecute
134 connect Box02.Widget Box18.Widget1
135 connect Box11.Widget Box19.Widget2
136 connect Box00.Widget Box19.Widget1
137 connect Box20.widget Box15.Widget3
138 connect Box21.widget Box15.Widget4
139 connect Box22.Widget Box19.Widget3
140 connect Box22.BoxChange Box23.BoxExecute
141 connect Box25.Widget Box19.Widget4
142 connect Box25.BoxChange Box26.BoxExecute
143 connect Box18.Widget Box27.Widget2
144 connect Box27.Widget Box15.Widget1
145 connect Box19.Widget Box28.Widget2
146 connect Box28.Widget Box15.Widget2
147 connect Box13.Widget Box19.Widget5
148 connect Box29.Widget Box19.Widget6
149 connect Box29.BoxChange Box30.BoxExecute
150 connect Box10.Widget Box18.Widget3
151 connect Box31.BoxChange Box32.BoxExecute
152 connect Box31.Widget Box18.Widget2
153 connect Box33.SystemType Box34.In
154 connect Box34.Out Box32.In
155 connect Box33.SystemType Box35.In
156 connect Box35.Out Box06.In
157 connect Box36.Out Box09.In
158 connect Box33.SystemType Box36.In
159 connect Box37.Out Box04.In
160 connect Box33.SystemType Box37.In
161 connect Box38.Out Box23.In
162 connect Box33.SystemType Box38.In
163 connect Box33.SystemType Box41.In
164 connect Box33.SystemType Box39.In
165 connect Box33.SystemType Box40.In
166 connect Box33.SystemType Box42.In
167 connect Box41.Out Box12.In
168 connect Box39.Out Box26.In
169 connect Box40.Out Box14.In
170 connect Box42.Out Box30.In
171 connect Box43.BoxChange Box44.BoxExecute
172 connect Box45.Out Box44.In
173 connect Box33.SystemType Box45.In
174 connect Box43.Widget Box18.Widget4
175
176 # Complex input ports
177
178 # Complex output ports
179 output widget Box15.Widget " "
180
181 message    
182 exec Box15
183
184 endefine