]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs
#3197 CreaMiniTools Feature New Normal - new complex box SlicesImages3D
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / SlicesImages3D.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include creaMaracasVisu
9 include std
10 include vtk
11 include creaVtk
12
13 define SlicesImages3D creaMiniTools
14
15 author "Author ??"
16 description "Description ??"
17
18 category "<VOID>"
19
20 new creaMaracasVisu:SliceImage Box00
21
22 new std:GetVectorIntElement Box03
23   set Box03.I "2"
24
25 new creaMaracasVisu:ImageActor Box04
26
27 new vtk:Transform Box05
28
29 new std:ConcatStrings Box06
30   set Box06.In1 "0 0 "
31
32 new vtk:ImageVtkProperties Box07
33
34 new std:GetVectorDoubleElement Box08
35   set Box08.I "2"
36
37 new std:Mul Box09
38
39 new vtk:vtkImageDataPointerRelay Box12
40
41 new std:MagicBox Box14
42
43 new std:MagicBox Box15
44
45 new std:MagicBox Box16
46
47 new creaMaracasVisu:SliceImage Box17
48   set Box17.TypeOrientation "1"
49
50 new std:GetVectorIntElement Box18
51   set Box18.I "1"
52
53 new creaMaracasVisu:ImageActor Box19
54
55 new vtk:Transform Box20
56   set Box20.RotateWXYZ "-90 1 0 0"
57
58 new std:ConcatStrings Box21
59   set Box21.In1 "0 "
60   set Box21.In3 " 0"
61
62 new std:GetVectorDoubleElement Box22
63   set Box22.I "1"
64
65 new std:Mul Box23
66
67 new creaMaracasVisu:SliceImage Box24
68   set Box24.TypeOrientation "2"
69
70 new std:GetVectorIntElement Box25
71   set Box25.I "0"
72
73 new creaMaracasVisu:ImageActor Box26
74
75 new vtk:Transform Box27
76   set Box27.RotateWXYZ "-90 1 0 0"
77
78 new std:ConcatStrings Box28
79   set Box28.In3 " 0 0"
80
81 new std:GetVectorDoubleElement Box29
82   set Box29.I "0"
83
84 new std:Mul Box30
85
86 new vtk:Transform Box31
87   set Box31.RotateWXYZ "-90 0 1 0"
88
89 new creaVtk:ScalarsToColors Box32
90   set Box32.Range "-1000 0"
91   set Box32.Type "0"
92
93 new std:MagicBox Box33
94
95 new creaVtk:ImageCutByAxis Box34
96   set Box34.Type "x-y-z+"
97   set Box34.TypeOrientation "0"
98
99 new std:MagicBox Box35
100
101 new creaVtk:ImageCutByAxis Box36
102   set Box36.Type "x-y-z+"
103   set Box36.TypeOrientation "1"
104
105 new creaVtk:ImageCutByAxis Box37
106   set Box37.Type "x-y-z+"
107   set Box37.TypeOrientation "2"
108
109 new std:MagicBox Box38
110
111 new std:MagicBox Box39
112
113
114 connect Box03.Out Box00.Slice
115 connect Box05.Out Box04.Transform
116 connect Box06.Out Box05.Translate
117 connect Box07.Spacing Box08.In
118 connect Box08.Out Box09.In1
119 connect Box03.Out Box09.In2
120 connect Box09.Out Box06.In2
121 connect Box12.Out Box07.In
122 connect Box12.Out Box00.In
123 connect Box14.BoxChange Box04.BoxExecute
124 connect Box15.Out Box04.Renderer
125 connect Box16.Out Box03.In
126 connect Box18.Out Box17.Slice
127 connect Box20.Out Box19.Transform
128 connect Box21.Out Box20.Translate
129 connect Box22.Out Box23.In1
130 connect Box18.Out Box23.In2
131 connect Box23.Out Box21.In2
132 connect Box07.Spacing Box22.In
133 connect Box16.Out Box18.In
134 connect Box15.Out Box19.Renderer
135 connect Box14.BoxChange Box19.BoxExecute
136 connect Box12.Out Box17.In
137 connect Box25.Out Box24.Slice
138 connect Box29.Out Box30.In1
139 connect Box25.Out Box30.In2
140 connect Box30.Out Box28.In2
141 connect Box07.Spacing Box29.In
142 connect Box16.Out Box25.In
143 connect Box12.Out Box24.In
144 connect Box15.Out Box26.Renderer
145 connect Box14.BoxChange Box26.BoxExecute
146 connect Box27.Out Box31.In
147 connect Box31.Out Box26.Transform
148 connect Box28.Out Box27.Translate
149 connect Box33.Out Box04.Opacity
150 connect Box33.Out Box19.Opacity
151 connect Box33.Out Box26.Opacity
152 connect Box34.Out Box04.In
153 connect Box00.Out Box34.In
154 connect Box16.Out Box34.Point
155 connect Box35.Out Box34.InsideVol
156 connect Box14.BoxChange Box34.BoxExecute
157 connect Box17.Out Box36.In
158 connect Box36.Out Box19.In
159 connect Box14.BoxChange Box36.BoxExecute
160 connect Box35.Out Box36.InsideVol
161 connect Box16.Out Box36.Point
162 connect Box24.Out Box37.In
163 connect Box37.Out Box26.In
164 connect Box16.Out Box37.Point
165 connect Box35.Out Box37.InsideVol
166 connect Box14.BoxChange Box37.BoxExecute
167 connect Box38.Out Box34.Type
168 connect Box38.Out Box36.Type
169 connect Box38.Out Box37.Type
170 connect Box39.Out Box04.LookupTable
171 connect Box39.Out Box19.LookupTable
172 connect Box39.Out Box26.LookupTable
173
174 # Complex input ports
175 input InputImage Box12.In " "
176 input point Box16.In " "
177 input render Box15.In " "
178 input boxExecute Box14.BoxExecute " "
179 input opacity Box33.In " "
180 input type Box32.Type " "
181 input range Box32.Range " "
182 input insidevol Box35.In " "
183 input TypeImageCutByAxis Box38.In " "
184 input lookuptable Box39.In " "
185
186 # Complex output ports
187
188
189 endefine