1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/CompareImagesByRGB-Widget.bbs
4 # ----------------------------------
8 include creaMaracasVisu
15 define CompareImagesByRGB-Widget creaVtk
18 description "Description ??"
22 new creaMaracasVisu:ViewerNV Box00
23 set Box00.nTypeView "1 2 0"
25 new creaVtk:ImageAppendComponents Box02
27 new vtk:RescaleSlopeIntercept Box05
30 set Box05.OutputFormat "VTK_UNSIGNED_CHAR"
33 new creaMaracasVisu:SetwxVtkBaseViewLookupTable Box06
35 new wx:LayoutSplit Box07
36 set Box07.Proportion "50"
38 new creaVtk:ScalarsToColors Box10
41 new vtk:RescaleSlopeIntercept Box13
44 set Box13.OutputFormat "VTK_UNSIGNED_CHAR"
47 new std:StringSelect Box18
57 new PackRecalage:AddImageToVector Box19
59 new std:GetVectorStringElement Box20
62 new std:GetVectorStringElement Box21
65 new std:GetVectorStringElement Box22
68 new vtk:GetVectorVtkImageDataElement Box23
70 new vtk:GetVectorVtkImageDataElement Box24
72 new vtk:GetVectorVtkImageDataElement Box25
78 new vtk:vtkImageDataPointerRelay Box29
80 new vtk:vtkImageDataPointerRelay Box30
82 new wx:LayoutLine Box31
83 set Box31.Orientation "H"
86 set Box32.Title "Interpolation"
89 connect Box02.Out Box00.In
90 connect Box10.LookupTable Box06.ScalarToColors
91 connect Box05.Out Box19.In0
92 connect Box13.Out Box19.In1
93 connect Box18.Out Box20.In
94 connect Box18.Out Box21.In
95 connect Box18.Out Box22.In
96 connect Box19.Out Box23.In
97 connect Box20.Out Box23.I
98 connect Box19.Out Box24.In
99 connect Box19.Out Box25.In
100 connect Box21.Out Box24.I
101 connect Box22.Out Box25.I
102 connect Box23.Out Box02.In0
103 connect Box24.Out Box02.In1
104 connect Box25.Out Box02.In2
105 connect Box26.Out Box18.In
106 connect Box00.wxVtkBaseView1 Box06.BaseView1
107 connect Box00.wxVtkBaseView2 Box06.BaseView2
108 connect Box00.wxVtkBaseView3 Box06.BaseView3
109 connect Box29.Out Box05.In
110 connect Box30.Out Box13.In
111 connect Box26.BoxChange Box06.BoxExecute
112 connect Box26.Widget Box31.Widget1
113 connect Box32.Widget Box31.Widget2
114 connect Box32.Out Box00.Interpolate
115 connect Box32.BoxChange Box00.BoxExecute
116 connect Box00.Widget Box07.Widget1
117 connect Box31.Widget Box07.Widget2
119 # Complex input ports
120 input Image1 Box29.In " "
121 input Image2 Box30.In " "
123 # Complex output ports
124 output OutWidget Box07.Widget " "