]> Creatis software - creaRigidRegistration.git/blob - PackRecalage/bbs/boxes/CompareImagesWidget3D.bbs
2075 creaRigidRegistration Feature New Normal Registration 3D 1P
[creaRigidRegistration.git] / PackRecalage / bbs / boxes / CompareImagesWidget3D.bbs
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 # ----------------------------------
5
6 include std
7 include itkvtk
8 include creaMaracasVisu
9 include vtk
10 include wx
11 include wxvtk
12 include std
13
14 define CompareImagesWidget3D PackRecalage
15
16 author "info-dev@creatis.insa-lyon.fr"
17 description "Recalage3D 1-point"
18
19 category "example"
20
21 new ViewerNV viewerResult
22   set viewerResult.nTypeView "6"
23
24 new vtkImageDataPointerRelay Box23
25
26 new LayoutTab Box26
27   set Box26.WinTitle "2D-Compare"
28
29 new LayoutSplit Box28
30   set Box28.Orientation "H"
31   set Box28.Proportion "50"
32   set Box28.WinTitle "3D-Comparing"
33
34 new LayoutLine Box29
35
36 new IsoSurfaceWidget Box30
37   set Box30.Colour "1 1 0"
38   set Box30.Title "1. Reference image"
39   set Box30.Vertical "V"
40
41 new IsoSurfaceWidget Box31
42   set Box31.Colour "1 1 1"
43   set Box31.Title "2. Registration image"
44   set Box31.Vertical "V"
45
46 new LayoutTab Box38
47
48 new LayoutTab Box39
49
50 new MultipleInputs Box19
51
52 new vtkImageDataPointerRelay Box20
53
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"
59
60 new LayoutTab Box12
61
62 new MagicBox Box13
63
64 new GetVectorIntElement Box14
65   set Box14.I "0"
66
67 new ConcatStrings Box15
68
69 new GetVectorIntElement Box16
70   set Box16.I "1"
71
72 new ConcatStrings Box17
73
74 new GetVectorIntElement Box18
75   set Box18.I "2"
76
77 new ConcatStrings Box21
78
79 new ImageVtkProperties Box22
80
81 new ConcatStrings Box24
82
83
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
114
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 " "
121
122 # Complex output ports
123 output Widget Box26.Widget " "
124 output Point viewerResult.Point " "
125 output BoxChange viewerResult.BoxChange " "
126
127
128 endefine