1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/All/creatools_source/creaRigidRegistration/PackRecalage/bbs/boxes/CompareImagesWidget3D.bbs
4 # ----------------------------------
8 include creaMaracasVisu
14 define CompareImagesWidget3D PackRecalage
16 author "info-dev@creatis.insa-lyon.fr"
17 description "Recalage3D 1-point"
21 new ViewerNV viewerResult
22 set viewerResult.nTypeView "6"
24 new vtkImageDataPointerRelay Box23
27 set Box26.WinTitle "2D-Compare"
30 set Box28.Orientation "H"
31 set Box28.Proportion "50"
32 set Box28.WinTitle "3D-Comparing"
36 new IsoSurfaceWidget Box30
37 set Box30.Colour "1 1 0"
38 set Box30.Title "1. Reference image"
39 set Box30.Vertical "V"
41 new IsoSurfaceWidget Box31
42 set Box31.Colour "1 1 1"
43 set Box31.Title "2. Registration image"
44 set Box31.Vertical "V"
50 new MultipleInputs Box19
52 new vtkImageDataPointerRelay Box20
54 new SphereListWidget Box11
55 set Box11.WinTitle "3. Center Point"
56 set Box11.lstPointX "10 10"
57 set Box11.lstPointY "10 20"
58 set Box11.lstPointZ "10 30"
64 new GetVectorIntElement Box14
67 new ConcatStrings Box15
69 new GetVectorIntElement Box16
72 new ConcatStrings Box17
74 new GetVectorIntElement Box18
77 new ConcatStrings Box21
79 new ImageVtkProperties Box22
81 new ConcatStrings Box24
84 connect viewerResult.Widget Box28.Widget2
85 connect Box28.Widget Box26.Widget1
86 connect Box29.Widget Box28.Widget1
87 connect Box31.Widget Box38.Widget2
88 connect Box38.Widget Box29.Widget2
89 connect Box39.Widget Box29.Widget1
90 connect Box30.Widget Box39.Widget1
91 connect Box23.Out Box30.In
92 connect viewerResult.Renderer1 Box30.vtkRenderer
93 connect viewerResult.Renderer1 Box31.vtkRenderer
94 connect Box30.BoxChange Box19.In1
95 connect Box31.BoxChange Box19.In2
96 connect Box19.BoxChange viewerResult.BoxExecute
97 connect Box20.Out viewerResult.In
98 connect Box20.Out Box31.In
99 connect Box11.Widget Box12.Widget1
100 connect Box12.Widget Box29.Widget3
101 connect viewerResult.Renderer1 Box11.Renderer
102 connect Box13.Out Box14.In
103 connect Box14.Out Box15.In1
104 connect Box15.Out Box11.lstPointX
105 connect Box16.Out Box17.In1
106 connect Box18.Out Box21.In1
107 connect Box13.Out Box16.In
108 connect Box17.Out Box11.lstPointY
109 connect Box13.Out Box18.In
110 connect Box21.Out Box11.lstPointZ
111 connect Box23.Out Box22.In
112 connect Box22.Spacing Box24.In1
113 connect Box24.Out Box11.spc
115 # Complex input ports
116 input BoxExecute Box19.In3 " "
117 input Image1 Box23.In " "
118 input Image2 Box20.In " "
119 input CenterPoint Box13.In " "
120 input WinTitle Box28.WinTitle " "
122 # Complex output ports
123 output Widget Box26.Widget " "
124 output Point viewerResult.Point " "
125 output BoxChange viewerResult.BoxChange " "