]> 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
112 connect Box03.Out Box00.Slice
113 connect Box05.Out Box04.Transform
114 connect Box06.Out Box05.Translate
115 connect Box07.Spacing Box08.In
116 connect Box08.Out Box09.In1
117 connect Box03.Out Box09.In2
118 connect Box09.Out Box06.In2
119 connect Box12.Out Box07.In
120 connect Box12.Out Box00.In
121 connect Box14.BoxChange Box04.BoxExecute
122 connect Box15.Out Box04.Renderer
123 connect Box16.Out Box03.In
124 connect Box18.Out Box17.Slice
125 connect Box20.Out Box19.Transform
126 connect Box21.Out Box20.Translate
127 connect Box22.Out Box23.In1
128 connect Box18.Out Box23.In2
129 connect Box23.Out Box21.In2
130 connect Box07.Spacing Box22.In
131 connect Box16.Out Box18.In
132 connect Box15.Out Box19.Renderer
133 connect Box14.BoxChange Box19.BoxExecute
134 connect Box12.Out Box17.In
135 connect Box25.Out Box24.Slice
136 connect Box29.Out Box30.In1
137 connect Box25.Out Box30.In2
138 connect Box30.Out Box28.In2
139 connect Box07.Spacing Box29.In
140 connect Box16.Out Box25.In
141 connect Box12.Out Box24.In
142 connect Box15.Out Box26.Renderer
143 connect Box14.BoxChange Box26.BoxExecute
144 connect Box27.Out Box31.In
145 connect Box31.Out Box26.Transform
146 connect Box28.Out Box27.Translate
147 connect Box32.LookupTable Box19.LookupTable
148 connect Box32.LookupTable Box26.LookupTable
149 connect Box32.LookupTable Box04.LookupTable
150 connect Box33.Out Box04.Opacity
151 connect Box33.Out Box19.Opacity
152 connect Box33.Out Box26.Opacity
153 connect Box34.Out Box04.In
154 connect Box00.Out Box34.In
155 connect Box16.Out Box34.Point
156 connect Box35.Out Box34.InsideVol
157 connect Box14.BoxChange Box34.BoxExecute
158 connect Box17.Out Box36.In
159 connect Box36.Out Box19.In
160 connect Box14.BoxChange Box36.BoxExecute
161 connect Box35.Out Box36.InsideVol
162 connect Box16.Out Box36.Point
163 connect Box24.Out Box37.In
164 connect Box37.Out Box26.In
165 connect Box16.Out Box37.Point
166 connect Box35.Out Box37.InsideVol
167 connect Box14.BoxChange Box37.BoxExecute
168 connect Box38.Out Box34.Type
169 connect Box38.Out Box36.Type
170 connect Box38.Out Box37.Type
171
172 # Complex input ports
173 input InputImage Box12.In " "
174 input point Box16.In " "
175 input render Box15.In " "
176 input boxExecute Box14.BoxExecute " "
177 input opacity Box33.In " "
178 input type Box32.Type " "
179 input range Box32.Range " "
180 input insidevol Box35.In " "
181 input TypeImageCutByAxis Box38.In " "
182
183 # Complex output ports
184
185
186 endefine